regenerated makefiles
[wxWidgets.git] / utils / tex2rtf / src / makefile.bcc
1 # =========================================================================
2 #     This makefile was generated by
3 #     Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 #     Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 .autodepend
8
9 !ifndef BCCDIR
10 !ifndef MAKEDIR
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12 !endif
13 BCCDIR = $(MAKEDIR)\..
14 !endif
15
16 !include ../../../build/msw/config.bcc
17
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
21
22 ### Variables: ###
23
24 OBJS = \
25         bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 SETUPHDIR = \
27         $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
28 TEX2RTF_CXXFLAGS = $(__RUNTIME_LIBS_0) -I$(BCCDIR)\include $(__DEBUGINFO) \
29         $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30         $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
31         -DNO_GUI $(CPPFLAGS) $(CXXFLAGS)
32 TEX2RTF_GUI_CXXFLAGS = $(__RUNTIME_LIBS_0) -I$(BCCDIR)\include $(__DEBUGINFO) \
33         $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34         $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
35         -I.\..\..\..\samples $(CPPFLAGS) $(CXXFLAGS)
36 TEX2RTF_GUI_OBJECTS =  \
37         $(OBJS)\tex2rtf_gui_tex2rtf.obj \
38         $(OBJS)\tex2rtf_gui_tex2any.obj \
39         $(OBJS)\tex2rtf_gui_texutils.obj \
40         $(OBJS)\tex2rtf_gui_rtfutils.obj \
41         $(OBJS)\tex2rtf_gui_xlputils.obj \
42         $(OBJS)\tex2rtf_gui_htmlutil.obj \
43         $(OBJS)\tex2rtf_gui_readshg.obj \
44         $(OBJS)\tex2rtf_gui_table.obj
45 TEX2RTF_OBJECTS =  \
46         $(OBJS)\tex2rtf_tex2rtf.obj \
47         $(OBJS)\tex2rtf_tex2any.obj \
48         $(OBJS)\tex2rtf_texutils.obj \
49         $(OBJS)\tex2rtf_rtfutils.obj \
50         $(OBJS)\tex2rtf_xlputils.obj \
51         $(OBJS)\tex2rtf_htmlutil.obj \
52         $(OBJS)\tex2rtf_readshg.obj \
53         $(OBJS)\tex2rtf_table.obj
54
55 ### Conditionally set variables: ###
56
57 !if "$(SHARED)" == "0"
58 LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG)
59 !endif
60 !if "$(SHARED)" == "1"
61 LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG)
62 !endif
63 !if "$(USE_GUI)" == "0"
64 PORTNAME = base
65 !endif
66 !if "$(USE_GUI)" == "1"
67 PORTNAME = msw
68 !endif
69 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
70 WXDEBUGFLAG = d
71 !endif
72 !if "$(DEBUG_FLAG)" == "1"
73 WXDEBUGFLAG = d
74 !endif
75 !if "$(SHARED)" == "1"
76 WXDLLFLAG = dll
77 !endif
78 !if "$(UNICODE)" == "1"
79 WXUNICODEFLAG = u
80 !endif
81 !if "$(WXUNIV)" == "1"
82 WXUNIVNAME = univ
83 !endif
84 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
85 __DEBUGINFO = -v
86 !endif
87 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
88 __DEBUGINFO = -v-
89 !endif
90 !if "$(DEBUG_INFO)" == "0"
91 __DEBUGINFO = -v-
92 !endif
93 !if "$(DEBUG_INFO)" == "1"
94 __DEBUGINFO = -v
95 !endif
96 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
98 !endif
99 !if "$(DEBUG_FLAG)" == "1"
100 __DEBUG_DEFINE_p = -D__WXDEBUG__
101 !endif
102 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
103 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
104 !endif
105 !if "$(DEBUG_FLAG)" == "1"
106 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
107 !endif
108 !if "$(SHARED)" == "1"
109 __DLLFLAG_p = -DWXUSINGDLL
110 !endif
111 !if "$(SHARED)" == "1"
112 __DLLFLAG_p_3 = -dWXUSINGDLL
113 !endif
114 !if "$(USE_GUI)" == "1"
115 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
116 !endif
117 !if "$(USE_GUI)" == "1"
118 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
119 !endif
120 !if "$(USE_GUI)" == "1"
121 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
122 !endif
123 !if "$(BUILD)" == "debug"
124 __OPTIMIZEFLAG = -Od
125 !endif
126 !if "$(BUILD)" == "release"
127 __OPTIMIZEFLAG = -O2
128 !endif
129 !if "$(RUNTIME_LIBS)" == "dynamic"
130 __RUNTIME_LIBS = i
131 !endif
132 !if "$(RUNTIME_LIBS)" == "static"
133 __RUNTIME_LIBS = 
134 !endif
135 !if "$(RUNTIME_LIBS)" == "dynamic"
136 __RUNTIME_LIBS_0 = -tWR
137 !endif
138 !if "$(RUNTIME_LIBS)" == "static"
139 __RUNTIME_LIBS_0 = 
140 !endif
141 !if "$(UNICODE)" == "1"
142 __UNICODE_DEFINE_p = -D_UNICODE
143 !endif
144 !if "$(UNICODE)" == "1"
145 __UNICODE_DEFINE_p_3 = -d_UNICODE
146 !endif
147 !if "$(MSLU)" == "1"
148 __UNICOWS_LIB_p = unicows.lib
149 !endif
150 !if "$(MONOLITHIC)" == "0"
151 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
152 !endif
153 !if "$(MONOLITHIC)" == "0"
154 __WXLIB_CORE_p = \
155         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
156 !endif
157 !if "$(MONOLITHIC)" == "0"
158 __WXLIB_HTML_p = \
159         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
160 !endif
161 !if "$(MONOLITHIC)" == "1"
162 __WXLIB_MONO_p = \
163         wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
164 !endif
165 !if "$(WXUNIV)" == "1"
166 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
167 !endif
168 !if "$(WXUNIV)" == "1"
169 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
170 !endif
171 !if "$(USE_GUI)" == "1"
172 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
173 !endif
174
175
176 all: $(OBJS)
177 $(OBJS):
178         -if not exist $(OBJS) mkdir $(OBJS)
179
180 ### Targets: ###
181
182 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
183
184 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
185         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
186
187 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
188         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
189
190 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
191         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
192
193 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
194         brcc32 -32 -r -fo$@ -i$(BCCDIR)\include  -d__WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_3) -i.\..\..\..\samples $**
195
196 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
197         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
198
199 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
200         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
201
202 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
203         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
204
205 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
206         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
207
208 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
209         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
210
211 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
212         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
213
214 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
215         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
216
217 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
218         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
219
220 $(OBJS)\tex2rtf_table.obj: .\table.cpp
221         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
222
223 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
224         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
225
226 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
227         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
228
229 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
230         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
231
232 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
233         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
234
235 clean: 
236         -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
237         -if exist $(OBJS)\*.res del $(OBJS)\*.res
238         -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
239         -if exist $(OBJS)\tex2rtf.tds del $(OBJS)\tex2rtf.tds
240         -if exist $(OBJS)\tex2rtf.ilc del $(OBJS)\tex2rtf.ilc
241         -if exist $(OBJS)\tex2rtf.ild del $(OBJS)\tex2rtf.ild
242         -if exist $(OBJS)\tex2rtf.ilf del $(OBJS)\tex2rtf.ilf
243         -if exist $(OBJS)\tex2rtf.ils del $(OBJS)\tex2rtf.ils
244         -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
245         -if exist $(OBJS)\tex2rtf_gui.tds del $(OBJS)\tex2rtf_gui.tds
246         -if exist $(OBJS)\tex2rtf_gui.ilc del $(OBJS)\tex2rtf_gui.ilc
247         -if exist $(OBJS)\tex2rtf_gui.ild del $(OBJS)\tex2rtf_gui.ild
248         -if exist $(OBJS)\tex2rtf_gui.ilf del $(OBJS)\tex2rtf_gui.ilf
249         -if exist $(OBJS)\tex2rtf_gui.ils del $(OBJS)\tex2rtf_gui.ils
250
251 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
252         ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO)  -L$(LIBDIRNAME) -ap @&&|
253         c0x32.obj $(TEX2RTF_OBJECTS),$@,, $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib  wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib  $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS).lib,,
254 |
255
256 !if "$(USE_GUI)" == "1"
257 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS)  $(OBJS)\tex2rtf_gui_sample.res
258         ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO)  -L$(LIBDIRNAME) -aa @&&|
259         c0w32.obj $(TEX2RTF_GUI_OBJECTS),$@,, $(__WXLIB_HTML_p)  $(__WXLIB_CORE_p)  $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib  wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib  $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib  import32.lib cw32mt$(__RUNTIME_LIBS).lib,, $(OBJS)\tex2rtf_gui_sample.res
260 |
261 !endif