]>
Commit | Line | Data |
---|---|---|
f98da3fb VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
f98da3fb VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
9a29912f | 6 | |
f98da3fb | 7 | !include ../../../build/msw/config.wat |
9a29912f | 8 | |
f98da3fb VS |
9 | # ------------------------------------------------------------------------- |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
9a29912f | 12 | |
f98da3fb VS |
13 | # Speed up compilation a bit: |
14 | !ifdef __LOADDLL__ | |
15 | ! loaddll wcc wccd | |
16 | ! loaddll wccaxp wccdaxp | |
17 | ! loaddll wcc386 wccd386 | |
18 | ! loaddll wpp wppdi86 | |
19 | ! loaddll wppaxp wppdaxp | |
20 | ! loaddll wpp386 wppd386 | |
21 | ! loaddll wlink wlink | |
22 | ! loaddll wlib wlibd | |
23 | !endif | |
9a29912f | 24 | |
f98da3fb VS |
25 | # We need these variables in some bakefile-made rules: |
26 | WATCOM_CWD = $+ $(%cdrive):$(%cwd) $- | |
9a29912f | 27 | |
f98da3fb VS |
28 | ### Conditionally set variables: ### |
29 | ||
30 | PORTNAME = | |
31 | !ifeq USE_GUI 0 | |
32 | PORTNAME = base | |
33 | !endif | |
34 | !ifeq USE_GUI 1 | |
35 | PORTNAME = msw | |
36 | !endif | |
37 | WXDEBUGFLAG = | |
38 | !ifeq BUILD debug | |
39 | !ifeq DEBUG_FLAG default | |
40 | WXDEBUGFLAG = d | |
41 | !endif | |
42 | !endif | |
43 | !ifeq DEBUG_FLAG 1 | |
44 | WXDEBUGFLAG = d | |
45 | !endif | |
f98da3fb VS |
46 | WXUNICODEFLAG = |
47 | !ifeq UNICODE 1 | |
48 | WXUNICODEFLAG = u | |
49 | !endif | |
50 | WXUNIVNAME = | |
51 | !ifeq WXUNIV 1 | |
52 | WXUNIVNAME = univ | |
53 | !endif | |
b17c1746 DE |
54 | WXDLLFLAG = |
55 | !ifeq SHARED 1 | |
56 | WXDLLFLAG = dll | |
57 | !endif | |
58 | __tex2rtf_gui___depname = | |
59 | !ifeq USE_GUI 1 | |
60 | __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe | |
61 | !endif | |
5259a417 RL |
62 | __WXLIB_HTML_p = |
63 | !ifeq MONOLITHIC 0 | |
64 | __WXLIB_HTML_p = & | |
c33fae85 | 65 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib |
5259a417 | 66 | !endif |
b17c1746 DE |
67 | __WXLIB_CORE_p = |
68 | !ifeq MONOLITHIC 0 | |
69 | __WXLIB_CORE_p = & | |
c33fae85 | 70 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib |
b17c1746 | 71 | !endif |
f98da3fb VS |
72 | __DEBUGINFO = |
73 | !ifeq BUILD debug | |
74 | !ifeq DEBUG_INFO default | |
ec08d395 | 75 | __DEBUGINFO = -d2 |
f98da3fb VS |
76 | !endif |
77 | !endif | |
78 | !ifeq BUILD release | |
79 | !ifeq DEBUG_INFO default | |
ec08d395 | 80 | __DEBUGINFO = -d0 |
f98da3fb VS |
81 | !endif |
82 | !endif | |
83 | !ifeq DEBUG_INFO 0 | |
ec08d395 | 84 | __DEBUGINFO = -d0 |
f98da3fb VS |
85 | !endif |
86 | !ifeq DEBUG_INFO 1 | |
ec08d395 | 87 | __DEBUGINFO = -d2 |
f98da3fb | 88 | !endif |
a4ad36cd | 89 | __DEBUGINFO_1 = |
f98da3fb VS |
90 | !ifeq BUILD debug |
91 | !ifeq DEBUG_INFO default | |
a4ad36cd | 92 | __DEBUGINFO_1 = debug all |
f98da3fb VS |
93 | !endif |
94 | !endif | |
95 | !ifeq BUILD release | |
96 | !ifeq DEBUG_INFO default | |
a4ad36cd | 97 | __DEBUGINFO_1 = |
f98da3fb VS |
98 | !endif |
99 | !endif | |
100 | !ifeq DEBUG_INFO 0 | |
a4ad36cd | 101 | __DEBUGINFO_1 = |
f98da3fb VS |
102 | !endif |
103 | !ifeq DEBUG_INFO 1 | |
a4ad36cd | 104 | __DEBUGINFO_1 = debug all |
f98da3fb | 105 | !endif |
b17c1746 | 106 | __OPTIMIZEFLAG = |
f98da3fb | 107 | !ifeq BUILD debug |
b17c1746 | 108 | __OPTIMIZEFLAG = -od |
f98da3fb | 109 | !endif |
b17c1746 DE |
110 | !ifeq BUILD release |
111 | __OPTIMIZEFLAG = -ot -ox | |
f98da3fb | 112 | !endif |
b17c1746 DE |
113 | __RUNTIME_LIBS = |
114 | !ifeq RUNTIME_LIBS dynamic | |
115 | __RUNTIME_LIBS = -br | |
f98da3fb | 116 | !endif |
b17c1746 DE |
117 | !ifeq RUNTIME_LIBS static |
118 | __RUNTIME_LIBS = | |
f98da3fb | 119 | !endif |
a4ad36cd VS |
120 | __EXCEPTIONSFLAG = |
121 | !ifeq USE_EXCEPTIONS 0 | |
122 | __EXCEPTIONSFLAG = | |
123 | !endif | |
124 | !ifeq USE_EXCEPTIONS 1 | |
125 | __EXCEPTIONSFLAG = -xs | |
126 | !endif | |
b17c1746 DE |
127 | LIBDIRNAME = |
128 | !ifeq SHARED 0 | |
129 | LIBDIRNAME = .\..\..\..\lib\wat_lib$(CFG) | |
130 | !endif | |
131 | !ifeq SHARED 1 | |
132 | LIBDIRNAME = .\..\..\..\lib\wat_dll$(CFG) | |
133 | !endif | |
134 | __WXLIB_BASE_p = | |
135 | !ifeq MONOLITHIC 0 | |
c33fae85 RN |
136 | __WXLIB_BASE_p = & |
137 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
b17c1746 DE |
138 | !endif |
139 | __WXLIB_MONO_p = | |
140 | !ifeq MONOLITHIC 1 | |
141 | __WXLIB_MONO_p = & | |
c33fae85 | 142 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
b17c1746 DE |
143 | !endif |
144 | __LIB_TIFF_p = | |
145 | !ifeq USE_GUI 1 | |
c33fae85 | 146 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib |
b17c1746 | 147 | !endif |
f98da3fb VS |
148 | __LIB_JPEG_p = |
149 | !ifeq USE_GUI 1 | |
c33fae85 | 150 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib |
f98da3fb VS |
151 | !endif |
152 | __LIB_PNG_p = | |
153 | !ifeq USE_GUI 1 | |
c33fae85 | 154 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib |
f98da3fb | 155 | !endif |
b17c1746 DE |
156 | __WXUNIV_DEFINE_p = |
157 | !ifeq WXUNIV 1 | |
158 | __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__ | |
f98da3fb | 159 | !endif |
b17c1746 | 160 | __DEBUG_DEFINE_p = |
f98da3fb | 161 | !ifeq BUILD debug |
b17c1746 DE |
162 | !ifeq DEBUG_FLAG default |
163 | __DEBUG_DEFINE_p = -d__WXDEBUG__ | |
f98da3fb | 164 | !endif |
f98da3fb | 165 | !endif |
b17c1746 DE |
166 | !ifeq DEBUG_FLAG 1 |
167 | __DEBUG_DEFINE_p = -d__WXDEBUG__ | |
f98da3fb VS |
168 | !endif |
169 | __UNICODE_DEFINE_p = | |
170 | !ifeq UNICODE 1 | |
ec08d395 | 171 | __UNICODE_DEFINE_p = -d_UNICODE |
f98da3fb | 172 | !endif |
b17c1746 DE |
173 | __DLLFLAG_p = |
174 | !ifeq SHARED 1 | |
175 | __DLLFLAG_p = -dWXUSINGDLL | |
8be1c2c5 | 176 | !endif |
f98da3fb VS |
177 | |
178 | ### Variables: ### | |
179 | ||
c33fae85 | 180 | WX_RELEASE_NODOT = 25 |
f98da3fb VS |
181 | OBJS = & |
182 | wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
75a0a7b7 VS |
183 | SETUPHDIR = & |
184 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
185 | TEX2RTF_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) & |
186 | -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) & | |
187 | -i=.\..\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -dNO_GUI & | |
188 | $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS) | |
b17c1746 DE |
189 | TEX2RTF_OBJECTS = & |
190 | $(OBJS)\tex2rtf_tex2rtf.obj & | |
191 | $(OBJS)\tex2rtf_tex2any.obj & | |
192 | $(OBJS)\tex2rtf_texutils.obj & | |
193 | $(OBJS)\tex2rtf_rtfutils.obj & | |
194 | $(OBJS)\tex2rtf_xlputils.obj & | |
195 | $(OBJS)\tex2rtf_htmlutil.obj & | |
196 | $(OBJS)\tex2rtf_readshg.obj & | |
197 | $(OBJS)\tex2rtf_table.obj | |
9bfe7ad9 VS |
198 | TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) & |
199 | -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) & | |
200 | -i=.\..\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) & | |
c33fae85 | 201 | -i=.\..\..\..\samples -dNOPCH $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS) |
f98da3fb VS |
202 | TEX2RTF_GUI_OBJECTS = & |
203 | $(OBJS)\tex2rtf_gui_tex2rtf.obj & | |
204 | $(OBJS)\tex2rtf_gui_tex2any.obj & | |
205 | $(OBJS)\tex2rtf_gui_texutils.obj & | |
206 | $(OBJS)\tex2rtf_gui_rtfutils.obj & | |
207 | $(OBJS)\tex2rtf_gui_xlputils.obj & | |
208 | $(OBJS)\tex2rtf_gui_htmlutil.obj & | |
209 | $(OBJS)\tex2rtf_gui_readshg.obj & | |
210 | $(OBJS)\tex2rtf_gui_table.obj | |
f98da3fb VS |
211 | |
212 | ||
213 | all : $(OBJS) | |
214 | $(OBJS) : | |
215 | -if not exist $(OBJS) mkdir $(OBJS) | |
216 | ||
217 | ### Targets: ### | |
218 | ||
8be1c2c5 | 219 | all : .SYMBOLIC $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname) |
f98da3fb | 220 | |
f98da3fb VS |
221 | clean : .SYMBOLIC |
222 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
223 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
224 | -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc | |
225 | -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk | |
226 | -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe | |
227 | -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe | |
228 | ||
229 | $(OBJS)\tex2rtf.exe : $(TEX2RTF_OBJECTS) | |
230 | @%create $(OBJS)\tex2rtf.lbc | |
231 | @%append $(OBJS)\tex2rtf.lbc option quiet | |
232 | @%append $(OBJS)\tex2rtf.lbc name $^@ | |
75a0a7b7 | 233 | @%append $(OBJS)\tex2rtf.lbc option caseexact |
a4ad36cd | 234 | @%append $(OBJS)\tex2rtf.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' |
f98da3fb | 235 | @for %i in ($(TEX2RTF_OBJECTS)) do @%append $(OBJS)\tex2rtf.lbc file %i |
c33fae85 | 236 | @for %i in ( $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib) do @%append $(OBJS)\tex2rtf.lbc library %i |
f98da3fb VS |
237 | @%append $(OBJS)\tex2rtf.lbc |
238 | wlink @$(OBJS)\tex2rtf.lbc | |
239 | ||
8be1c2c5 | 240 | !ifeq USE_GUI 1 |
f98da3fb VS |
241 | $(OBJS)\tex2rtf_gui.exe : $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res |
242 | @%create $(OBJS)\tex2rtf_gui.lbc | |
243 | @%append $(OBJS)\tex2rtf_gui.lbc option quiet | |
244 | @%append $(OBJS)\tex2rtf_gui.lbc name $^@ | |
75a0a7b7 | 245 | @%append $(OBJS)\tex2rtf_gui.lbc option caseexact |
a4ad36cd | 246 | @%append $(OBJS)\tex2rtf_gui.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' |
f98da3fb | 247 | @for %i in ($(TEX2RTF_GUI_OBJECTS)) do @%append $(OBJS)\tex2rtf_gui.lbc file %i |
c33fae85 | 248 | @for %i in ( $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib ) do @%append $(OBJS)\tex2rtf_gui.lbc library %i |
f98da3fb VS |
249 | @%append $(OBJS)\tex2rtf_gui.lbc option resource=$(OBJS)\tex2rtf_gui_sample.res |
250 | wlink @$(OBJS)\tex2rtf_gui.lbc | |
8be1c2c5 | 251 | !endif |
b17c1746 DE |
252 | |
253 | $(OBJS)\tex2rtf_tex2rtf.obj : .AUTODEPEND .\tex2rtf.cpp | |
254 | $(CXX) -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $< | |
255 | ||
256 | $(OBJS)\tex2rtf_tex2any.obj : .AUTODEPEND .\tex2any.cpp | |
257 | $(CXX) -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $< | |
258 | ||
259 | $(OBJS)\tex2rtf_texutils.obj : .AUTODEPEND .\texutils.cpp | |
260 | $(CXX) -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $< | |
261 | ||
262 | $(OBJS)\tex2rtf_rtfutils.obj : .AUTODEPEND .\rtfutils.cpp | |
263 | $(CXX) -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $< | |
264 | ||
265 | $(OBJS)\tex2rtf_xlputils.obj : .AUTODEPEND .\xlputils.cpp | |
266 | $(CXX) -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $< | |
267 | ||
268 | $(OBJS)\tex2rtf_htmlutil.obj : .AUTODEPEND .\htmlutil.cpp | |
269 | $(CXX) -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $< | |
270 | ||
271 | $(OBJS)\tex2rtf_readshg.obj : .AUTODEPEND .\readshg.cpp | |
272 | $(CXX) -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $< | |
273 | ||
274 | $(OBJS)\tex2rtf_table.obj : .AUTODEPEND .\table.cpp | |
275 | $(CXX) -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $< | |
276 | ||
277 | $(OBJS)\tex2rtf_gui_sample.res : .AUTODEPEND .\..\..\..\samples\sample.rc | |
278 | wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\..\..\samples $< | |
279 | ||
280 | $(OBJS)\tex2rtf_gui_tex2rtf.obj : .AUTODEPEND .\tex2rtf.cpp | |
281 | $(CXX) -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $< | |
282 | ||
283 | $(OBJS)\tex2rtf_gui_tex2any.obj : .AUTODEPEND .\tex2any.cpp | |
284 | $(CXX) -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $< | |
285 | ||
286 | $(OBJS)\tex2rtf_gui_texutils.obj : .AUTODEPEND .\texutils.cpp | |
287 | $(CXX) -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $< | |
288 | ||
289 | $(OBJS)\tex2rtf_gui_rtfutils.obj : .AUTODEPEND .\rtfutils.cpp | |
290 | $(CXX) -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $< | |
291 | ||
292 | $(OBJS)\tex2rtf_gui_xlputils.obj : .AUTODEPEND .\xlputils.cpp | |
293 | $(CXX) -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $< | |
294 | ||
295 | $(OBJS)\tex2rtf_gui_htmlutil.obj : .AUTODEPEND .\htmlutil.cpp | |
296 | $(CXX) -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $< | |
297 | ||
298 | $(OBJS)\tex2rtf_gui_readshg.obj : .AUTODEPEND .\readshg.cpp | |
299 | $(CXX) -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $< | |
300 | ||
301 | $(OBJS)\tex2rtf_gui_table.obj : .AUTODEPEND .\table.cpp | |
302 | $(CXX) -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $< |