1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (http://bakefile.sourceforge.net)
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 # -------------------------------------------------------------------------
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\..\lib\vc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 TEX2RTF_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
22 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf.pdb $(____DEBUGRUNTIME_2_p) \
23 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
26 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE /DwxUSE_GUI=0 /DNO_GUI \
27 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\tex2rtf_tex2rtf.obj \
30 $(OBJS)\tex2rtf_tex2any.obj \
31 $(OBJS)\tex2rtf_texutils.obj \
32 $(OBJS)\tex2rtf_rtfutils.obj \
33 $(OBJS)\tex2rtf_xlputils.obj \
34 $(OBJS)\tex2rtf_htmlutil.obj \
35 $(OBJS)\tex2rtf_readshg.obj \
36 $(OBJS)\tex2rtf_table.obj
37 TEX2RTF_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS_22)$(__DEBUGRUNTIME_17) /DWIN32 \
38 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf_gui.pdb $(____DEBUGRUNTIME_16_p) \
39 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
40 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
41 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
42 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH \
43 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
44 TEX2RTF_GUI_OBJECTS = \
45 $(OBJS)\tex2rtf_gui_sample.res \
46 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
47 $(OBJS)\tex2rtf_gui_tex2any.obj \
48 $(OBJS)\tex2rtf_gui_texutils.obj \
49 $(OBJS)\tex2rtf_gui_rtfutils.obj \
50 $(OBJS)\tex2rtf_gui_xlputils.obj \
51 $(OBJS)\tex2rtf_gui_htmlutil.obj \
52 $(OBJS)\tex2rtf_gui_readshg.obj \
53 $(OBJS)\tex2rtf_gui_table.obj
55 ### Conditionally set variables: ###
57 !if "$(USE_GUI)" == "0"
60 !if "$(USE_GUI)" == "1"
63 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
66 !if "$(DEBUG_FLAG)" == "1"
69 !if "$(UNICODE)" == "1"
72 !if "$(WXUNIV)" == "1"
75 !if "$(SHARED)" == "1"
78 !if "$(SHARED)" == "0"
81 !if "$(SHARED)" == "1"
84 !if "$(MONOLITHIC)" == "0"
87 !if "$(MONOLITHIC)" == "1"
90 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
91 ____DEBUGRUNTIME_2_p =
93 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
94 ____DEBUGRUNTIME_2_p = /D_DEBUG
96 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
97 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
99 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
102 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
105 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
106 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
108 !if "$(RUNTIME_LIBS)" == "dynamic"
111 !if "$(RUNTIME_LIBS)" == "static"
112 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
114 !if "$(USE_GUI)" == "1"
115 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
117 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
118 ____DEBUGRUNTIME_16_p =
120 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
121 ____DEBUGRUNTIME_16_p = /D_DEBUG
123 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
124 ____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
126 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
127 ____DEBUGRUNTIME_16_p_1 =
129 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
130 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
132 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
133 ____DEBUGRUNTIME_16_p_1 = $(____DEBUGINFO_16_p_1)
135 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
136 ____DEBUGINFO_16_p_1 = /d _DEBUG
138 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
139 ____DEBUGINFO_16_p_1 =
141 !if "$(DEBUG_INFO)" == "0"
142 ____DEBUGINFO_16_p_1 =
144 !if "$(DEBUG_INFO)" == "1"
145 ____DEBUGINFO_16_p_1 = /d _DEBUG
147 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
150 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
151 __DEBUGRUNTIME_17 = d
153 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
154 __DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
156 !if "$(RUNTIME_LIBS)" == "dynamic"
157 __RUNTIME_LIBS_22 = D
159 !if "$(RUNTIME_LIBS)" == "static"
160 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
162 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
163 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
165 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
166 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
168 !if "$(WXUNIV)" == "1"
169 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
171 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
172 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
174 !if "$(DEBUG_FLAG)" == "1"
175 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
177 !if "$(USE_EXCEPTIONS)" == "0"
178 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
180 !if "$(USE_RTTI)" == "0"
181 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
183 !if "$(USE_THREADS)" == "0"
184 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
186 !if "$(UNICODE)" == "1"
187 __UNICODE_DEFINE_p_3 = /d _UNICODE
189 !if "$(SHARED)" == "1"
190 __DLLFLAG_p_3 = /d WXUSINGDLL
192 !if "$(MONOLITHIC)" == "0"
194 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
196 !if "$(MONOLITHIC)" == "0"
198 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
200 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
203 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
206 !if "$(DEBUG_INFO)" == "0"
209 !if "$(DEBUG_INFO)" == "1"
212 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
213 __DEBUGINFO_1 = /DEBUG
215 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
218 !if "$(DEBUG_INFO)" == "0"
221 !if "$(DEBUG_INFO)" == "1"
222 __DEBUGINFO_1 = /DEBUG
224 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
225 ____DEBUGINFO = /D_DEBUG
227 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
230 !if "$(DEBUG_INFO)" == "0"
233 !if "$(DEBUG_INFO)" == "1"
234 ____DEBUGINFO = /D_DEBUG
236 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
239 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
242 !if "$(DEBUG_INFO)" == "0"
245 !if "$(DEBUG_INFO)" == "1"
248 !if "$(BUILD)" == "debug"
251 !if "$(BUILD)" == "release"
254 !if "$(USE_THREADS)" == "0"
257 !if "$(USE_THREADS)" == "1"
260 !if "$(USE_RTTI)" == "0"
263 !if "$(USE_RTTI)" == "1"
266 !if "$(USE_EXCEPTIONS)" == "0"
269 !if "$(USE_EXCEPTIONS)" == "1"
270 __EXCEPTIONSFLAG = /EHsc
272 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
273 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
275 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
276 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
278 !if "$(WXUNIV)" == "1"
279 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
281 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
282 __DEBUG_DEFINE_p = /D__WXDEBUG__
284 !if "$(DEBUG_FLAG)" == "1"
285 __DEBUG_DEFINE_p = /D__WXDEBUG__
287 !if "$(USE_EXCEPTIONS)" == "0"
288 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
290 !if "$(USE_RTTI)" == "0"
291 __RTTI_DEFINE_p = /DwxNO_RTTI
293 !if "$(USE_THREADS)" == "0"
294 __THREAD_DEFINE_p = /DwxNO_THREADS
296 !if "$(UNICODE)" == "1"
297 __UNICODE_DEFINE_p = /D_UNICODE
299 !if "$(SHARED)" == "1"
300 __DLLFLAG_p = /DWXUSINGDLL
302 !if "$(MONOLITHIC)" == "0"
304 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
306 !if "$(MONOLITHIC)" == "1"
308 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
310 !if "$(USE_GUI)" == "1"
311 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
313 !if "$(USE_GUI)" == "1"
314 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
316 !if "$(USE_GUI)" == "1"
317 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
320 __UNICOWS_LIB_p = unicows.lib
326 -if not exist $(OBJS) mkdir $(OBJS)
330 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
333 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
334 -if exist $(OBJS)\*.res del $(OBJS)\*.res
335 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
336 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
337 -if exist $(OBJS)\tex2rtf.ilk del $(OBJS)\tex2rtf.ilk
338 -if exist $(OBJS)\tex2rtf.pdb del $(OBJS)\tex2rtf.pdb
339 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
340 -if exist $(OBJS)\tex2rtf_gui.ilk del $(OBJS)\tex2rtf_gui.ilk
341 -if exist $(OBJS)\tex2rtf_gui.pdb del $(OBJS)\tex2rtf_gui.pdb
343 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
344 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
345 $(TEX2RTF_OBJECTS) $(__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) 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 oleacc.lib odbc32.lib
348 !if "$(USE_GUI)" == "1"
349 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
350 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
351 $(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) 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 oleacc.lib odbc32.lib
355 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
356 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
358 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
359 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
361 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
362 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
364 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
365 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
367 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
368 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
370 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
371 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
373 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
374 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
376 $(OBJS)\tex2rtf_table.obj: .\table.cpp
377 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
379 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
380 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) /i .\..\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_3) /d _WINDOWS /i .\..\..\..\samples $**
382 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
383 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
385 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
386 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
388 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
389 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
391 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
392 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
394 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
395 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
397 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
398 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
400 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
401 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
403 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
404 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**