1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.3 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 !include <../../../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
20 .\..\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 TEX2RTF_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) \
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
40 TEX2RTF_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)
48 TEX2RTF_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
59 ### Conditionally set variables: ###
61 !if "$(USE_GUI)" == "0"
64 !if "$(USE_GUI)" == "1"
67 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
70 !if "$(DEBUG_FLAG)" == "1"
73 !if "$(UNICODE)" == "1"
76 !if "$(WXUNIV)" == "1"
79 !if "$(TARGET_CPU)" == "amd64"
80 DIR_SUFFIX_CPU = _amd64
82 !if "$(TARGET_CPU)" == "amd64"
83 DIR_SUFFIX_CPU = _amd64
85 !if "$(TARGET_CPU)" == "ia64"
86 DIR_SUFFIX_CPU = _ia64
88 !if "$(TARGET_CPU)" == "ia64"
89 DIR_SUFFIX_CPU = _ia64
91 !if "$(SHARED)" == "1"
94 !if "$(SHARED)" == "0"
97 !if "$(SHARED)" == "1"
100 !if "$(TARGET_CPU)" == "amd64"
101 LINK_TARGET_CPU = /MACHINE:AMD64
103 !if "$(TARGET_CPU)" == "amd64"
104 LINK_TARGET_CPU = /MACHINE:AMD64
106 !if "$(TARGET_CPU)" == "ia64"
107 LINK_TARGET_CPU = /MACHINE:IA64
109 !if "$(TARGET_CPU)" == "ia64"
110 LINK_TARGET_CPU = /MACHINE:IA64
112 !if "$(MONOLITHIC)" == "0"
115 !if "$(MONOLITHIC)" == "1"
118 !if "$(RUNTIME_LIBS)" == "dynamic"
121 !if "$(RUNTIME_LIBS)" == "static"
122 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
124 !if "$(USE_GUI)" == "1"
125 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
127 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
128 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
130 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
131 ____DEBUGRUNTIME_16_p_1 =
133 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
134 ____DEBUGRUNTIME_16_p_1 =
136 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
137 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
139 !if "$(RUNTIME_LIBS)" == "dynamic"
140 __RUNTIME_LIBS_22 = D
142 !if "$(RUNTIME_LIBS)" == "static"
143 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
145 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
146 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
148 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
149 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
151 !if "$(WXUNIV)" == "1"
152 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
154 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
155 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
157 !if "$(DEBUG_FLAG)" == "1"
158 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
160 !if "$(USE_EXCEPTIONS)" == "0"
161 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
163 !if "$(USE_RTTI)" == "0"
164 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
166 !if "$(USE_THREADS)" == "0"
167 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
169 !if "$(UNICODE)" == "0"
170 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=0
172 !if "$(UNICODE)" == "1"
173 __UNICODE_DEFINE_p_3 = /d _UNICODE
176 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
178 !if "$(USE_GDIPLUS)" == "1"
179 __GFXCTX_DEFINE_p_3 = /d wxUSE_GRAPHICS_CONTEXT=1
181 !if "$(SHARED)" == "1"
182 __DLLFLAG_p_3 = /d WXUSINGDLL
184 !if "$(MONOLITHIC)" == "0"
186 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
188 !if "$(MONOLITHIC)" == "0"
190 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
192 !if "$(USE_GUI)" == "1"
193 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
195 !if "$(USE_GUI)" == "1"
196 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
198 !if "$(USE_GUI)" == "1"
199 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
201 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
204 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
207 !if "$(DEBUG_INFO)" == "0"
210 !if "$(DEBUG_INFO)" == "1"
213 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
214 __DEBUGINFO_1 = /DEBUG
216 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
219 !if "$(DEBUG_INFO)" == "0"
222 !if "$(DEBUG_INFO)" == "1"
223 __DEBUGINFO_1 = /DEBUG
225 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
226 ____DEBUGRUNTIME = /D_DEBUG
228 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
231 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
234 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
235 ____DEBUGRUNTIME = /D_DEBUG
237 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
240 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
243 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
246 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
249 !if "$(BUILD)" == "debug"
252 !if "$(BUILD)" == "release"
255 !if "$(USE_THREADS)" == "0"
258 !if "$(USE_THREADS)" == "1"
261 !if "$(USE_RTTI)" == "0"
264 !if "$(USE_RTTI)" == "1"
267 !if "$(USE_EXCEPTIONS)" == "0"
270 !if "$(USE_EXCEPTIONS)" == "1"
271 __EXCEPTIONSFLAG = /EHsc
273 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
274 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
276 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
277 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
279 !if "$(WXUNIV)" == "1"
280 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
282 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
283 __DEBUG_DEFINE_p = /D__WXDEBUG__
285 !if "$(DEBUG_FLAG)" == "1"
286 __DEBUG_DEFINE_p = /D__WXDEBUG__
288 !if "$(USE_EXCEPTIONS)" == "0"
289 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
291 !if "$(USE_RTTI)" == "0"
292 __RTTI_DEFINE_p = /DwxNO_RTTI
294 !if "$(USE_THREADS)" == "0"
295 __THREAD_DEFINE_p = /DwxNO_THREADS
297 !if "$(UNICODE)" == "0"
298 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
300 !if "$(UNICODE)" == "1"
301 __UNICODE_DEFINE_p = /D_UNICODE
304 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
306 !if "$(USE_GDIPLUS)" == "1"
307 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
309 !if "$(SHARED)" == "1"
310 __DLLFLAG_p = /DWXUSINGDLL
312 !if "$(MONOLITHIC)" == "0"
314 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
316 !if "$(MONOLITHIC)" == "1"
318 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
321 __UNICOWS_LIB_p = unicows.lib
323 !if "$(USE_GDIPLUS)" == "1"
324 __GDIPLUS_LIB_p = gdiplus.lib
330 -if not exist $(OBJS) mkdir $(OBJS)
334 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
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
347 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
348 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /pdb:"$(OBJS)\tex2rtf.pdb" $(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
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) /pdb:"$(OBJS)\tex2rtf_gui.pdb" $(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
359 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
360 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) .\tex2rtf.cpp
362 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
363 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) .\tex2any.cpp
365 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
366 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) .\texutils.cpp
368 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
369 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) .\rtfutils.cpp
371 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
372 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) .\xlputils.cpp
374 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
375 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) .\htmlutil.cpp
377 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
378 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) .\readshg.cpp
380 $(OBJS)\tex2rtf_table.obj: .\table.cpp
381 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) .\table.cpp
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 .\..\..\..\samples\sample.rc
386 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
387 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) .\tex2rtf.cpp
389 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
390 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) .\tex2any.cpp
392 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
393 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) .\texutils.cpp
395 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
396 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) .\rtfutils.cpp
398 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
399 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) .\xlputils.cpp
401 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
402 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) .\htmlutil.cpp
404 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
405 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) .\readshg.cpp
407 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
408 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) .\table.cpp