]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/tex2rtf/src/makefile.vc
compilation fix for !wxUSE_THREADS
[wxWidgets.git] / utils / tex2rtf / src / makefile.vc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.2 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!include <../../../build/msw/config.vc>
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15WX_RELEASE_NODOT = 29
16COMPILER_PREFIX = vc
17OBJS = \
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
19LIBDIRNAME = \
20 .\..\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23TEX2RTF_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME) /DWIN32 \
24 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
25 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
27 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
28 /I$(SETUPHDIR) /I.\..\..\..\include /W4 /I. $(__DLLFLAG_p) /D_CONSOLE \
29 /DwxUSE_GUI=0 /DNO_GUI $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
30 $(CXXFLAGS)
31TEX2RTF_OBJECTS = \
32 $(OBJS)\tex2rtf_tex2rtf.obj \
33 $(OBJS)\tex2rtf_tex2any.obj \
34 $(OBJS)\tex2rtf_texutils.obj \
35 $(OBJS)\tex2rtf_rtfutils.obj \
36 $(OBJS)\tex2rtf_xlputils.obj \
37 $(OBJS)\tex2rtf_htmlutil.obj \
38 $(OBJS)\tex2rtf_readshg.obj \
39 $(OBJS)\tex2rtf_table.obj
40TEX2RTF_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS_22)$(__DEBUGRUNTIME) /DWIN32 \
41 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf_gui.pdb $(____DEBUGRUNTIME) \
42 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
43 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
44 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
45 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\..\include /W4 /I. \
46 $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH $(__RTTIFLAG) \
47 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
48TEX2RTF_GUI_OBJECTS = \
49 $(OBJS)\tex2rtf_gui_sample.res \
50 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
51 $(OBJS)\tex2rtf_gui_tex2any.obj \
52 $(OBJS)\tex2rtf_gui_texutils.obj \
53 $(OBJS)\tex2rtf_gui_rtfutils.obj \
54 $(OBJS)\tex2rtf_gui_xlputils.obj \
55 $(OBJS)\tex2rtf_gui_htmlutil.obj \
56 $(OBJS)\tex2rtf_gui_readshg.obj \
57 $(OBJS)\tex2rtf_gui_table.obj
58
59### Conditionally set variables: ###
60
61!if "$(USE_GUI)" == "0"
62PORTNAME = base
63!endif
64!if "$(USE_GUI)" == "1"
65PORTNAME = msw
66!endif
67!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
68WXDEBUGFLAG = d
69!endif
70!if "$(DEBUG_FLAG)" == "1"
71WXDEBUGFLAG = d
72!endif
73!if "$(UNICODE)" == "1"
74WXUNICODEFLAG = u
75!endif
76!if "$(WXUNIV)" == "1"
77WXUNIVNAME = univ
78!endif
79!if "$(TARGET_CPU)" == "amd64"
80DIR_SUFFIX_CPU = _amd64
81!endif
82!if "$(TARGET_CPU)" == "amd64"
83DIR_SUFFIX_CPU = _amd64
84!endif
85!if "$(TARGET_CPU)" == "ia64"
86DIR_SUFFIX_CPU = _ia64
87!endif
88!if "$(TARGET_CPU)" == "ia64"
89DIR_SUFFIX_CPU = _ia64
90!endif
91!if "$(SHARED)" == "1"
92WXDLLFLAG = dll
93!endif
94!if "$(SHARED)" == "0"
95LIBTYPE_SUFFIX = lib
96!endif
97!if "$(SHARED)" == "1"
98LIBTYPE_SUFFIX = dll
99!endif
100!if "$(TARGET_CPU)" == "amd64"
101LINK_TARGET_CPU = /MACHINE:AMD64
102!endif
103!if "$(TARGET_CPU)" == "amd64"
104LINK_TARGET_CPU = /MACHINE:AMD64
105!endif
106!if "$(TARGET_CPU)" == "ia64"
107LINK_TARGET_CPU = /MACHINE:IA64
108!endif
109!if "$(TARGET_CPU)" == "ia64"
110LINK_TARGET_CPU = /MACHINE:IA64
111!endif
112!if "$(MONOLITHIC)" == "0"
113EXTRALIBS_FOR_BASE =
114!endif
115!if "$(MONOLITHIC)" == "1"
116EXTRALIBS_FOR_BASE =
117!endif
118!if "$(RUNTIME_LIBS)" == "dynamic"
119__RUNTIME_LIBS_8 = D
120!endif
121!if "$(RUNTIME_LIBS)" == "static"
122__RUNTIME_LIBS_8 = $(__THREADSFLAG)
123!endif
124!if "$(USE_GUI)" == "1"
125__tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
126!endif
127!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
128____DEBUGRUNTIME_16_p_1 = /d _DEBUG
129!endif
130!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
131____DEBUGRUNTIME_16_p_1 =
132!endif
133!if "$(DEBUG_RUNTIME_LIBS)" == "0"
134____DEBUGRUNTIME_16_p_1 =
135!endif
136!if "$(DEBUG_RUNTIME_LIBS)" == "1"
137____DEBUGRUNTIME_16_p_1 = /d _DEBUG
138!endif
139!if "$(RUNTIME_LIBS)" == "dynamic"
140__RUNTIME_LIBS_22 = D
141!endif
142!if "$(RUNTIME_LIBS)" == "static"
143__RUNTIME_LIBS_22 = $(__THREADSFLAG)
144!endif
145!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
146__NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
147!endif
148!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
149__NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
150!endif
151!if "$(WXUNIV)" == "1"
152__WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
153!endif
154!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
155__DEBUG_DEFINE_p_3 = /d __WXDEBUG__
156!endif
157!if "$(DEBUG_FLAG)" == "1"
158__DEBUG_DEFINE_p_3 = /d __WXDEBUG__
159!endif
160!if "$(USE_EXCEPTIONS)" == "0"
161__EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
162!endif
163!if "$(USE_RTTI)" == "0"
164__RTTI_DEFINE_p_3 = /d wxNO_RTTI
165!endif
166!if "$(USE_THREADS)" == "0"
167__THREAD_DEFINE_p_3 = /d wxNO_THREADS
168!endif
169!if "$(UNICODE)" == "0"
170__UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=0
171!endif
172!if "$(UNICODE)" == "1"
173__UNICODE_DEFINE_p_3 = /d _UNICODE
174!endif
175!if "$(MSLU)" == "1"
176__MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
177!endif
178!if "$(USE_GDIPLUS)" == "1"
179__GFXCTX_DEFINE_p_3 = /d wxUSE_GRAPHICS_CONTEXT=1
180!endif
181!if "$(SHARED)" == "1"
182__DLLFLAG_p_3 = /d WXUSINGDLL
183!endif
184!if "$(MONOLITHIC)" == "0"
185__WXLIB_HTML_p = \
186 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
187!endif
188!if "$(MONOLITHIC)" == "0"
189__WXLIB_CORE_p = \
190 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
191!endif
192!if "$(USE_GUI)" == "1"
193__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
194!endif
195!if "$(USE_GUI)" == "1"
196__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
197!endif
198!if "$(USE_GUI)" == "1"
199__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
200!endif
201!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
202__DEBUGINFO = /Zi
203!endif
204!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
205__DEBUGINFO =
206!endif
207!if "$(DEBUG_INFO)" == "0"
208__DEBUGINFO =
209!endif
210!if "$(DEBUG_INFO)" == "1"
211__DEBUGINFO = /Zi
212!endif
213!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
214__DEBUGINFO_1 = /DEBUG
215!endif
216!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
217__DEBUGINFO_1 =
218!endif
219!if "$(DEBUG_INFO)" == "0"
220__DEBUGINFO_1 =
221!endif
222!if "$(DEBUG_INFO)" == "1"
223__DEBUGINFO_1 = /DEBUG
224!endif
225!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
226____DEBUGRUNTIME = /D_DEBUG
227!endif
228!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
229____DEBUGRUNTIME =
230!endif
231!if "$(DEBUG_RUNTIME_LIBS)" == "0"
232____DEBUGRUNTIME =
233!endif
234!if "$(DEBUG_RUNTIME_LIBS)" == "1"
235____DEBUGRUNTIME = /D_DEBUG
236!endif
237!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
238__DEBUGRUNTIME = d
239!endif
240!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
241__DEBUGRUNTIME =
242!endif
243!if "$(DEBUG_RUNTIME_LIBS)" == "0"
244__DEBUGRUNTIME =
245!endif
246!if "$(DEBUG_RUNTIME_LIBS)" == "1"
247__DEBUGRUNTIME = d
248!endif
249!if "$(BUILD)" == "debug"
250__OPTIMIZEFLAG = /Od
251!endif
252!if "$(BUILD)" == "release"
253__OPTIMIZEFLAG = /O2
254!endif
255!if "$(USE_THREADS)" == "0"
256__THREADSFLAG = L
257!endif
258!if "$(USE_THREADS)" == "1"
259__THREADSFLAG = T
260!endif
261!if "$(USE_RTTI)" == "0"
262__RTTIFLAG =
263!endif
264!if "$(USE_RTTI)" == "1"
265__RTTIFLAG = /GR
266!endif
267!if "$(USE_EXCEPTIONS)" == "0"
268__EXCEPTIONSFLAG =
269!endif
270!if "$(USE_EXCEPTIONS)" == "1"
271__EXCEPTIONSFLAG = /EHsc
272!endif
273!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
274__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
275!endif
276!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
277__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
278!endif
279!if "$(WXUNIV)" == "1"
280__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
281!endif
282!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
283__DEBUG_DEFINE_p = /D__WXDEBUG__
284!endif
285!if "$(DEBUG_FLAG)" == "1"
286__DEBUG_DEFINE_p = /D__WXDEBUG__
287!endif
288!if "$(USE_EXCEPTIONS)" == "0"
289__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
290!endif
291!if "$(USE_RTTI)" == "0"
292__RTTI_DEFINE_p = /DwxNO_RTTI
293!endif
294!if "$(USE_THREADS)" == "0"
295__THREAD_DEFINE_p = /DwxNO_THREADS
296!endif
297!if "$(UNICODE)" == "0"
298__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
299!endif
300!if "$(UNICODE)" == "1"
301__UNICODE_DEFINE_p = /D_UNICODE
302!endif
303!if "$(MSLU)" == "1"
304__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
305!endif
306!if "$(USE_GDIPLUS)" == "1"
307__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
308!endif
309!if "$(SHARED)" == "1"
310__DLLFLAG_p = /DWXUSINGDLL
311!endif
312!if "$(MONOLITHIC)" == "0"
313__WXLIB_BASE_p = \
314 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
315!endif
316!if "$(MONOLITHIC)" == "1"
317__WXLIB_MONO_p = \
318 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
319!endif
320!if "$(MSLU)" == "1"
321__UNICOWS_LIB_p = unicows.lib
322!endif
323!if "$(USE_GDIPLUS)" == "1"
324__GDIPLUS_LIB_p = gdiplus.lib
325!endif
326
327
328all: $(OBJS)
329$(OBJS):
330 -if not exist $(OBJS) mkdir $(OBJS)
331
332### Targets: ###
333
334all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
335
336clean:
337 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
338 -if exist $(OBJS)\*.res del $(OBJS)\*.res
339 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
340 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
341 -if exist $(OBJS)\tex2rtf.ilk del $(OBJS)\tex2rtf.ilk
342 -if exist $(OBJS)\tex2rtf.pdb del $(OBJS)\tex2rtf.pdb
343 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
344 -if exist $(OBJS)\tex2rtf_gui.ilk del $(OBJS)\tex2rtf_gui.ilk
345 -if exist $(OBJS)\tex2rtf_gui.pdb del $(OBJS)\tex2rtf_gui.pdb
346
347$(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
348 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
349 $(TEX2RTF_OBJECTS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__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
350<<
351
352!if "$(USE_GUI)" == "1"
353$(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
354 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
355 $(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$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__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
356<<
357!endif
358
359$(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
360 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
361
362$(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
363 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
364
365$(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
366 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
367
368$(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
369 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
370
371$(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
372 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
373
374$(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
375 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
376
377$(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
378 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
379
380$(OBJS)\tex2rtf_table.obj: .\table.cpp
381 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
382
383$(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
384 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_16_p_1) $(__NO_VC_CRTDBG_p_3) /d __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) $(__GFXCTX_DEFINE_p_3) /i $(SETUPHDIR) /i .\..\..\..\include /i . $(__DLLFLAG_p_3) /d _WINDOWS /i .\..\..\..\samples /d NOPCH $**
385
386$(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
387 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
388
389$(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
390 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
391
392$(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
393 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
394
395$(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
396 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
397
398$(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
399 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
400
401$(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
402 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
403
404$(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
405 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
406
407$(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
408 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
409