]> git.saurik.com Git - wxWidgets.git/blame - utils/tex2rtf/src/makefile.wat
remove @ingroup; use @category instead
[wxWidgets.git] / utils / tex2rtf / src / makefile.wat
CommitLineData
f98da3fb
VS
1# =========================================================================
2# This makefile was generated by
6e0fbb3d 3# Bakefile 0.2.3 (http://www.bakefile.org)
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:
26WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
9a29912f 27
f98da3fb
VS
28### Conditionally set variables: ###
29
30PORTNAME =
31!ifeq USE_GUI 0
32PORTNAME = base
33!endif
34!ifeq USE_GUI 1
35PORTNAME = msw
36!endif
37WXDEBUGFLAG =
38!ifeq BUILD debug
39!ifeq DEBUG_FLAG default
40WXDEBUGFLAG = d
41!endif
42!endif
43!ifeq DEBUG_FLAG 1
44WXDEBUGFLAG = d
45!endif
f98da3fb
VS
46WXUNICODEFLAG =
47!ifeq UNICODE 1
48WXUNICODEFLAG = u
49!endif
50WXUNIVNAME =
51!ifeq WXUNIV 1
52WXUNIVNAME = univ
53!endif
b17c1746
DE
54WXDLLFLAG =
55!ifeq SHARED 1
56WXDLLFLAG = dll
57!endif
162a956b
JS
58LIBTYPE_SUFFIX =
59!ifeq SHARED 0
60LIBTYPE_SUFFIX = lib
61!endif
62!ifeq SHARED 1
63LIBTYPE_SUFFIX = dll
64!endif
dd65d8c8
RN
65EXTRALIBS_FOR_BASE =
66!ifeq MONOLITHIC 0
67EXTRALIBS_FOR_BASE =
68!endif
69!ifeq MONOLITHIC 1
70EXTRALIBS_FOR_BASE =
71!endif
b17c1746
DE
72__tex2rtf_gui___depname =
73!ifeq USE_GUI 1
74__tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
75!endif
5259a417
RL
76__WXLIB_HTML_p =
77!ifeq MONOLITHIC 0
78__WXLIB_HTML_p = &
c33fae85 79 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
5259a417 80!endif
b17c1746
DE
81__WXLIB_CORE_p =
82!ifeq MONOLITHIC 0
83__WXLIB_CORE_p = &
c33fae85 84 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
b17c1746 85!endif
3b2cb431
JS
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
f98da3fb
VS
98__DEBUGINFO =
99!ifeq BUILD debug
100!ifeq DEBUG_INFO default
ec08d395 101__DEBUGINFO = -d2
f98da3fb
VS
102!endif
103!endif
104!ifeq BUILD release
105!ifeq DEBUG_INFO default
ec08d395 106__DEBUGINFO = -d0
f98da3fb
VS
107!endif
108!endif
109!ifeq DEBUG_INFO 0
ec08d395 110__DEBUGINFO = -d0
f98da3fb
VS
111!endif
112!ifeq DEBUG_INFO 1
ec08d395 113__DEBUGINFO = -d2
f98da3fb 114!endif
a4ad36cd 115__DEBUGINFO_1 =
f98da3fb
VS
116!ifeq BUILD debug
117!ifeq DEBUG_INFO default
a4ad36cd 118__DEBUGINFO_1 = debug all
f98da3fb
VS
119!endif
120!endif
121!ifeq BUILD release
122!ifeq DEBUG_INFO default
a4ad36cd 123__DEBUGINFO_1 =
f98da3fb
VS
124!endif
125!endif
126!ifeq DEBUG_INFO 0
a4ad36cd 127__DEBUGINFO_1 =
f98da3fb
VS
128!endif
129!ifeq DEBUG_INFO 1
a4ad36cd 130__DEBUGINFO_1 = debug all
f98da3fb 131!endif
b17c1746 132__OPTIMIZEFLAG =
f98da3fb 133!ifeq BUILD debug
b17c1746 134__OPTIMIZEFLAG = -od
f98da3fb 135!endif
b17c1746
DE
136!ifeq BUILD release
137__OPTIMIZEFLAG = -ot -ox
f98da3fb 138!endif
8c9f8f91
JS
139__THREADSFLAG =
140!ifeq USE_THREADS 0
141__THREADSFLAG =
142!endif
143!ifeq USE_THREADS 1
144__THREADSFLAG = -bm
145!endif
b17c1746
DE
146__RUNTIME_LIBS =
147!ifeq RUNTIME_LIBS dynamic
148__RUNTIME_LIBS = -br
f98da3fb 149!endif
b17c1746
DE
150!ifeq RUNTIME_LIBS static
151__RUNTIME_LIBS =
f98da3fb 152!endif
8c9f8f91
JS
153__RTTIFLAG =
154!ifeq USE_RTTI 0
155__RTTIFLAG =
a4ad36cd 156!endif
8c9f8f91
JS
157!ifeq USE_RTTI 1
158__RTTIFLAG = -xr
a4ad36cd 159!endif
8c9f8f91 160__EXCEPTIONSFLAG =
162a956b 161!ifeq USE_EXCEPTIONS 0
8c9f8f91 162__EXCEPTIONSFLAG =
b17c1746 163!endif
162a956b 164!ifeq USE_EXCEPTIONS 1
8c9f8f91 165__EXCEPTIONSFLAG = -xs
b17c1746
DE
166!endif
167__WXLIB_BASE_p =
168!ifeq MONOLITHIC 0
c33fae85
RN
169__WXLIB_BASE_p = &
170 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
171!endif
172__WXLIB_MONO_p =
173!ifeq MONOLITHIC 1
174__WXLIB_MONO_p = &
c33fae85 175 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 176!endif
3abcf424
RD
177__GDIPLUS_LIB_p =
178!ifeq USE_GDIPLUS 1
179__GDIPLUS_LIB_p = gdiplus.lib
180!endif
b17c1746
DE
181__WXUNIV_DEFINE_p =
182!ifeq WXUNIV 1
183__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
f98da3fb 184!endif
b17c1746 185__DEBUG_DEFINE_p =
f98da3fb 186!ifeq BUILD debug
b17c1746
DE
187!ifeq DEBUG_FLAG default
188__DEBUG_DEFINE_p = -d__WXDEBUG__
f98da3fb 189!endif
f98da3fb 190!endif
b17c1746
DE
191!ifeq DEBUG_FLAG 1
192__DEBUG_DEFINE_p = -d__WXDEBUG__
f98da3fb 193!endif
8c9f8f91
JS
194__EXCEPTIONS_DEFINE_p =
195!ifeq USE_EXCEPTIONS 0
196__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
197!endif
198__RTTI_DEFINE_p =
199!ifeq USE_RTTI 0
200__RTTI_DEFINE_p = -dwxNO_RTTI
201!endif
202__THREAD_DEFINE_p =
203!ifeq USE_THREADS 0
204__THREAD_DEFINE_p = -dwxNO_THREADS
205!endif
f98da3fb 206__UNICODE_DEFINE_p =
7379e476
VZ
207!ifeq UNICODE 0
208__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
209!endif
f98da3fb 210!ifeq UNICODE 1
ec08d395 211__UNICODE_DEFINE_p = -d_UNICODE
f98da3fb 212!endif
3abcf424
RD
213__GFXCTX_DEFINE_p =
214!ifeq USE_GDIPLUS 1
215__GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1
216!endif
b17c1746
DE
217__DLLFLAG_p =
218!ifeq SHARED 1
219__DLLFLAG_p = -dWXUSINGDLL
8be1c2c5 220!endif
f98da3fb
VS
221
222### Variables: ###
223
ae4ccf12 224WX_RELEASE_NODOT = 29
7379e476 225COMPILER_PREFIX = wat
f98da3fb 226OBJS = &
7379e476
VZ
227 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
228LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
229SETUPHDIR = &
230 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
231TEX2RTF_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
232 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
233 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
3abcf424
RD
234 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
235 -i=.\..\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. &
236 $(__DLLFLAG_p) -dwxUSE_GUI=0 -dNO_GUI $(__RTTIFLAG) $(__EXCEPTIONSFLAG) &
237 $(CPPFLAGS) $(CXXFLAGS)
b17c1746
DE
238TEX2RTF_OBJECTS = &
239 $(OBJS)\tex2rtf_tex2rtf.obj &
240 $(OBJS)\tex2rtf_tex2any.obj &
241 $(OBJS)\tex2rtf_texutils.obj &
242 $(OBJS)\tex2rtf_rtfutils.obj &
243 $(OBJS)\tex2rtf_xlputils.obj &
244 $(OBJS)\tex2rtf_htmlutil.obj &
245 $(OBJS)\tex2rtf_readshg.obj &
246 $(OBJS)\tex2rtf_table.obj
8c9f8f91
JS
247TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
248 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
249 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
3abcf424
RD
250 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
251 -i=.\..\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. &
252 $(__DLLFLAG_p) -i=.\..\..\..\samples -dNOPCH $(__RTTIFLAG) &
253 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
f98da3fb
VS
254TEX2RTF_GUI_OBJECTS = &
255 $(OBJS)\tex2rtf_gui_tex2rtf.obj &
256 $(OBJS)\tex2rtf_gui_tex2any.obj &
257 $(OBJS)\tex2rtf_gui_texutils.obj &
258 $(OBJS)\tex2rtf_gui_rtfutils.obj &
259 $(OBJS)\tex2rtf_gui_xlputils.obj &
260 $(OBJS)\tex2rtf_gui_htmlutil.obj &
261 $(OBJS)\tex2rtf_gui_readshg.obj &
262 $(OBJS)\tex2rtf_gui_table.obj
f98da3fb
VS
263
264
265all : $(OBJS)
266$(OBJS) :
267 -if not exist $(OBJS) mkdir $(OBJS)
268
269### Targets: ###
270
8be1c2c5 271all : .SYMBOLIC $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
f98da3fb 272
f98da3fb
VS
273clean : .SYMBOLIC
274 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
275 -if exist $(OBJS)\*.res del $(OBJS)\*.res
276 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
277 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
162a956b 278 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
f98da3fb
VS
279 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
280 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
281
282$(OBJS)\tex2rtf.exe : $(TEX2RTF_OBJECTS)
283 @%create $(OBJS)\tex2rtf.lbc
284 @%append $(OBJS)\tex2rtf.lbc option quiet
285 @%append $(OBJS)\tex2rtf.lbc name $^@
75a0a7b7 286 @%append $(OBJS)\tex2rtf.lbc option caseexact
a4ad36cd 287 @%append $(OBJS)\tex2rtf.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_'
f98da3fb 288 @for %i in ($(TEX2RTF_OBJECTS)) do @%append $(OBJS)\tex2rtf.lbc file %i
7379e476 289 @for %i in ( $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__GDIPLUS_LIB_p) 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) do @%append $(OBJS)\tex2rtf.lbc library %i
f98da3fb 290 @%append $(OBJS)\tex2rtf.lbc
cf9b63b3 291 @for %i in () do @%append $(OBJS)\tex2rtf.lbc option stack=%i
f98da3fb
VS
292 wlink @$(OBJS)\tex2rtf.lbc
293
8be1c2c5 294!ifeq USE_GUI 1
f98da3fb
VS
295$(OBJS)\tex2rtf_gui.exe : $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
296 @%create $(OBJS)\tex2rtf_gui.lbc
297 @%append $(OBJS)\tex2rtf_gui.lbc option quiet
298 @%append $(OBJS)\tex2rtf_gui.lbc name $^@
75a0a7b7 299 @%append $(OBJS)\tex2rtf_gui.lbc option caseexact
a4ad36cd 300 @%append $(OBJS)\tex2rtf_gui.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
f98da3fb 301 @for %i in ($(TEX2RTF_GUI_OBJECTS)) do @%append $(OBJS)\tex2rtf_gui.lbc file %i
7379e476 302 @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) $(__GDIPLUS_LIB_p) 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) do @%append $(OBJS)\tex2rtf_gui.lbc library %i
f98da3fb 303 @%append $(OBJS)\tex2rtf_gui.lbc option resource=$(OBJS)\tex2rtf_gui_sample.res
cf9b63b3 304 @for %i in () do @%append $(OBJS)\tex2rtf_gui.lbc option stack=%i
f98da3fb 305 wlink @$(OBJS)\tex2rtf_gui.lbc
8be1c2c5 306!endif
b17c1746
DE
307
308$(OBJS)\tex2rtf_tex2rtf.obj : .AUTODEPEND .\tex2rtf.cpp
4cbcfb73 309 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
b17c1746
DE
310
311$(OBJS)\tex2rtf_tex2any.obj : .AUTODEPEND .\tex2any.cpp
4cbcfb73 312 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
b17c1746
DE
313
314$(OBJS)\tex2rtf_texutils.obj : .AUTODEPEND .\texutils.cpp
4cbcfb73 315 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
b17c1746
DE
316
317$(OBJS)\tex2rtf_rtfutils.obj : .AUTODEPEND .\rtfutils.cpp
4cbcfb73 318 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
b17c1746
DE
319
320$(OBJS)\tex2rtf_xlputils.obj : .AUTODEPEND .\xlputils.cpp
4cbcfb73 321 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
b17c1746
DE
322
323$(OBJS)\tex2rtf_htmlutil.obj : .AUTODEPEND .\htmlutil.cpp
4cbcfb73 324 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
b17c1746
DE
325
326$(OBJS)\tex2rtf_readshg.obj : .AUTODEPEND .\readshg.cpp
4cbcfb73 327 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
b17c1746
DE
328
329$(OBJS)\tex2rtf_table.obj : .AUTODEPEND .\table.cpp
4cbcfb73 330 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_CXXFLAGS) $<
b17c1746
DE
331
332$(OBJS)\tex2rtf_gui_sample.res : .AUTODEPEND .\..\..\..\samples\sample.rc
7379e476 333 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) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\..\include -i=. $(__DLLFLAG_p) -i=.\..\..\..\samples -dNOPCH $<
b17c1746
DE
334
335$(OBJS)\tex2rtf_gui_tex2rtf.obj : .AUTODEPEND .\tex2rtf.cpp
4cbcfb73 336 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
b17c1746
DE
337
338$(OBJS)\tex2rtf_gui_tex2any.obj : .AUTODEPEND .\tex2any.cpp
4cbcfb73 339 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
b17c1746
DE
340
341$(OBJS)\tex2rtf_gui_texutils.obj : .AUTODEPEND .\texutils.cpp
4cbcfb73 342 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
b17c1746
DE
343
344$(OBJS)\tex2rtf_gui_rtfutils.obj : .AUTODEPEND .\rtfutils.cpp
4cbcfb73 345 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
b17c1746
DE
346
347$(OBJS)\tex2rtf_gui_xlputils.obj : .AUTODEPEND .\xlputils.cpp
4cbcfb73 348 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
b17c1746
DE
349
350$(OBJS)\tex2rtf_gui_htmlutil.obj : .AUTODEPEND .\htmlutil.cpp
4cbcfb73 351 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
b17c1746
DE
352
353$(OBJS)\tex2rtf_gui_readshg.obj : .AUTODEPEND .\readshg.cpp
4cbcfb73 354 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
b17c1746
DE
355
356$(OBJS)\tex2rtf_gui_table.obj : .AUTODEPEND .\table.cpp
4cbcfb73 357 $(CXX) -bt=nt -zq -fo=$^@ $(TEX2RTF_GUI_CXXFLAGS) $<
162a956b 358