]> git.saurik.com Git - wxWidgets.git/blob - utils/tex2rtf/src/makefile.wat
Fix missing 3rd party builtin libs for static monolithic builds.
[wxWidgets.git] / utils / tex2rtf / src / makefile.wat
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !include ../../../build/msw/config.wat
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
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
24
25 # We need these variables in some bakefile-made rules:
26 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
27
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
46 WXUNICODEFLAG =
47 !ifeq UNICODE 1
48 WXUNICODEFLAG = u
49 !endif
50 WXUNIVNAME =
51 !ifeq WXUNIV 1
52 WXUNIVNAME = univ
53 !endif
54 WXDLLFLAG =
55 !ifeq SHARED 1
56 WXDLLFLAG = dll
57 !endif
58 LIBTYPE_SUFFIX =
59 !ifeq SHARED 0
60 LIBTYPE_SUFFIX = lib
61 !endif
62 !ifeq SHARED 1
63 LIBTYPE_SUFFIX = dll
64 !endif
65 EXTRALIBS_FOR_BASE =
66 !ifeq MONOLITHIC 0
67 EXTRALIBS_FOR_BASE =
68 !endif
69 !ifeq MONOLITHIC 1
70 EXTRALIBS_FOR_BASE =
71 !endif
72 __tex2rtf_gui___depname =
73 !ifeq USE_GUI 1
74 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
75 !endif
76 __WXLIB_HTML_p =
77 !ifeq MONOLITHIC 0
78 __WXLIB_HTML_p = &
79 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
80 !endif
81 __WXLIB_CORE_p =
82 !ifeq MONOLITHIC 0
83 __WXLIB_CORE_p = &
84 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
85 !endif
86 __LIB_TIFF_p =
87 !ifeq USE_GUI 1
88 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
89 !endif
90 __LIB_JPEG_p =
91 !ifeq USE_GUI 1
92 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
93 !endif
94 __LIB_PNG_p =
95 !ifeq USE_GUI 1
96 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
97 !endif
98 __DEBUGINFO =
99 !ifeq BUILD debug
100 !ifeq DEBUG_INFO default
101 __DEBUGINFO = -d2
102 !endif
103 !endif
104 !ifeq BUILD release
105 !ifeq DEBUG_INFO default
106 __DEBUGINFO = -d0
107 !endif
108 !endif
109 !ifeq DEBUG_INFO 0
110 __DEBUGINFO = -d0
111 !endif
112 !ifeq DEBUG_INFO 1
113 __DEBUGINFO = -d2
114 !endif
115 __DEBUGINFO_1 =
116 !ifeq BUILD debug
117 !ifeq DEBUG_INFO default
118 __DEBUGINFO_1 = debug all
119 !endif
120 !endif
121 !ifeq BUILD release
122 !ifeq DEBUG_INFO default
123 __DEBUGINFO_1 =
124 !endif
125 !endif
126 !ifeq DEBUG_INFO 0
127 __DEBUGINFO_1 =
128 !endif
129 !ifeq DEBUG_INFO 1
130 __DEBUGINFO_1 = debug all
131 !endif
132 __OPTIMIZEFLAG =
133 !ifeq BUILD debug
134 __OPTIMIZEFLAG = -od
135 !endif
136 !ifeq BUILD release
137 __OPTIMIZEFLAG = -ot -ox
138 !endif
139 __THREADSFLAG =
140 !ifeq USE_THREADS 0
141 __THREADSFLAG =
142 !endif
143 !ifeq USE_THREADS 1
144 __THREADSFLAG = -bm
145 !endif
146 __RUNTIME_LIBS =
147 !ifeq RUNTIME_LIBS dynamic
148 __RUNTIME_LIBS = -br
149 !endif
150 !ifeq RUNTIME_LIBS static
151 __RUNTIME_LIBS =
152 !endif
153 __RTTIFLAG =
154 !ifeq USE_RTTI 0
155 __RTTIFLAG =
156 !endif
157 !ifeq USE_RTTI 1
158 __RTTIFLAG = -xr
159 !endif
160 __EXCEPTIONSFLAG =
161 !ifeq USE_EXCEPTIONS 0
162 __EXCEPTIONSFLAG =
163 !endif
164 !ifeq USE_EXCEPTIONS 1
165 __EXCEPTIONSFLAG = -xs
166 !endif
167 __WXLIB_BASE_p =
168 !ifeq MONOLITHIC 0
169 __WXLIB_BASE_p = &
170 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
171 !endif
172 __WXLIB_MONO_p =
173 !ifeq MONOLITHIC 1
174 __WXLIB_MONO_p = &
175 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
176 !endif
177 __WXUNIV_DEFINE_p =
178 !ifeq WXUNIV 1
179 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
180 !endif
181 __DEBUG_DEFINE_p =
182 !ifeq BUILD debug
183 !ifeq DEBUG_FLAG default
184 __DEBUG_DEFINE_p = -d__WXDEBUG__
185 !endif
186 !endif
187 !ifeq DEBUG_FLAG 1
188 __DEBUG_DEFINE_p = -d__WXDEBUG__
189 !endif
190 __EXCEPTIONS_DEFINE_p =
191 !ifeq USE_EXCEPTIONS 0
192 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
193 !endif
194 __RTTI_DEFINE_p =
195 !ifeq USE_RTTI 0
196 __RTTI_DEFINE_p = -dwxNO_RTTI
197 !endif
198 __THREAD_DEFINE_p =
199 !ifeq USE_THREADS 0
200 __THREAD_DEFINE_p = -dwxNO_THREADS
201 !endif
202 __UNICODE_DEFINE_p =
203 !ifeq UNICODE 1
204 __UNICODE_DEFINE_p = -d_UNICODE
205 !endif
206 __DLLFLAG_p =
207 !ifeq SHARED 1
208 __DLLFLAG_p = -dWXUSINGDLL
209 !endif
210
211 ### Variables: ###
212
213 WX_RELEASE_NODOT = 27
214 OBJS = &
215 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
216 LIBDIRNAME = .\..\..\..\lib\wat_$(LIBTYPE_SUFFIX)$(CFG)
217 SETUPHDIR = &
218 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
219 TEX2RTF_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
220 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
221 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
222 $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\..\include -wx -wcd=549 &
223 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 -dNO_GUI &
224 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
225 TEX2RTF_OBJECTS = &
226 $(OBJS)\tex2rtf_tex2rtf.obj &
227 $(OBJS)\tex2rtf_tex2any.obj &
228 $(OBJS)\tex2rtf_texutils.obj &
229 $(OBJS)\tex2rtf_rtfutils.obj &
230 $(OBJS)\tex2rtf_xlputils.obj &
231 $(OBJS)\tex2rtf_htmlutil.obj &
232 $(OBJS)\tex2rtf_readshg.obj &
233 $(OBJS)\tex2rtf_table.obj
234 TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
235 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
236 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
237 $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\..\include -wx -wcd=549 &
238 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\..\samples -dNOPCH &
239 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
240 TEX2RTF_GUI_OBJECTS = &
241 $(OBJS)\tex2rtf_gui_tex2rtf.obj &
242 $(OBJS)\tex2rtf_gui_tex2any.obj &
243 $(OBJS)\tex2rtf_gui_texutils.obj &
244 $(OBJS)\tex2rtf_gui_rtfutils.obj &
245 $(OBJS)\tex2rtf_gui_xlputils.obj &
246 $(OBJS)\tex2rtf_gui_htmlutil.obj &
247 $(OBJS)\tex2rtf_gui_readshg.obj &
248 $(OBJS)\tex2rtf_gui_table.obj
249
250
251 all : $(OBJS)
252 $(OBJS) :
253 -if not exist $(OBJS) mkdir $(OBJS)
254
255 ### Targets: ###
256
257 all : .SYMBOLIC $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
258
259 clean : .SYMBOLIC
260 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
261 -if exist $(OBJS)\*.res del $(OBJS)\*.res
262 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
263 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
264 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
265 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
266 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
267
268 $(OBJS)\tex2rtf.exe : $(TEX2RTF_OBJECTS)
269 @%create $(OBJS)\tex2rtf.lbc
270 @%append $(OBJS)\tex2rtf.lbc option quiet
271 @%append $(OBJS)\tex2rtf.lbc name $^@
272 @%append $(OBJS)\tex2rtf.lbc option caseexact
273 @%append $(OBJS)\tex2rtf.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_'
274 @for %i in ($(TEX2RTF_OBJECTS)) do @%append $(OBJS)\tex2rtf.lbc file %i
275 @for %i in ( $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) 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
276 @%append $(OBJS)\tex2rtf.lbc
277 @for %i in () do @%append $(OBJS)\tex2rtf.lbc option stack=%i
278 wlink @$(OBJS)\tex2rtf.lbc
279
280 !ifeq USE_GUI 1
281 $(OBJS)\tex2rtf_gui.exe : $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
282 @%create $(OBJS)\tex2rtf_gui.lbc
283 @%append $(OBJS)\tex2rtf_gui.lbc option quiet
284 @%append $(OBJS)\tex2rtf_gui.lbc name $^@
285 @%append $(OBJS)\tex2rtf_gui.lbc option caseexact
286 @%append $(OBJS)\tex2rtf_gui.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
287 @for %i in ($(TEX2RTF_GUI_OBJECTS)) do @%append $(OBJS)\tex2rtf_gui.lbc file %i
288 @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).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) 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
289 @%append $(OBJS)\tex2rtf_gui.lbc option resource=$(OBJS)\tex2rtf_gui_sample.res
290 @for %i in () do @%append $(OBJS)\tex2rtf_gui.lbc option stack=%i
291 wlink @$(OBJS)\tex2rtf_gui.lbc
292 !endif
293
294 $(OBJS)\tex2rtf_tex2rtf.obj : .AUTODEPEND .\tex2rtf.cpp
295 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
296
297 $(OBJS)\tex2rtf_tex2any.obj : .AUTODEPEND .\tex2any.cpp
298 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
299
300 $(OBJS)\tex2rtf_texutils.obj : .AUTODEPEND .\texutils.cpp
301 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
302
303 $(OBJS)\tex2rtf_rtfutils.obj : .AUTODEPEND .\rtfutils.cpp
304 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
305
306 $(OBJS)\tex2rtf_xlputils.obj : .AUTODEPEND .\xlputils.cpp
307 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
308
309 $(OBJS)\tex2rtf_htmlutil.obj : .AUTODEPEND .\htmlutil.cpp
310 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
311
312 $(OBJS)\tex2rtf_readshg.obj : .AUTODEPEND .\readshg.cpp
313 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
314
315 $(OBJS)\tex2rtf_table.obj : .AUTODEPEND .\table.cpp
316 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
317
318 $(OBJS)\tex2rtf_gui_sample.res : .AUTODEPEND .\..\..\..\samples\sample.rc
319 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\..\include -i=. $(__DLLFLAG_p) -i=.\..\..\..\samples $<
320
321 $(OBJS)\tex2rtf_gui_tex2rtf.obj : .AUTODEPEND .\tex2rtf.cpp
322 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
323
324 $(OBJS)\tex2rtf_gui_tex2any.obj : .AUTODEPEND .\tex2any.cpp
325 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
326
327 $(OBJS)\tex2rtf_gui_texutils.obj : .AUTODEPEND .\texutils.cpp
328 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
329
330 $(OBJS)\tex2rtf_gui_rtfutils.obj : .AUTODEPEND .\rtfutils.cpp
331 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
332
333 $(OBJS)\tex2rtf_gui_xlputils.obj : .AUTODEPEND .\xlputils.cpp
334 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
335
336 $(OBJS)\tex2rtf_gui_htmlutil.obj : .AUTODEPEND .\htmlutil.cpp
337 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
338
339 $(OBJS)\tex2rtf_gui_readshg.obj : .AUTODEPEND .\readshg.cpp
340 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
341
342 $(OBJS)\tex2rtf_gui_table.obj : .AUTODEPEND .\table.cpp
343 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
344