1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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)
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 TEX2RTF_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
21 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf.pdb $(____DEBUGRUNTIME_2_p) \
22 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
24 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE /DNO_GUI $(__EXCEPTIONSFLAG) \
25 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\tex2rtf_tex2rtf.obj \
28 $(OBJS)\tex2rtf_tex2any.obj \
29 $(OBJS)\tex2rtf_texutils.obj \
30 $(OBJS)\tex2rtf_rtfutils.obj \
31 $(OBJS)\tex2rtf_xlputils.obj \
32 $(OBJS)\tex2rtf_htmlutil.obj \
33 $(OBJS)\tex2rtf_readshg.obj \
34 $(OBJS)\tex2rtf_table.obj
35 TEX2RTF_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_16) /DWIN32 \
36 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf_gui.pdb $(____DEBUGRUNTIME_15_p) \
37 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
38 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
39 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH \
40 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
41 TEX2RTF_GUI_OBJECTS = \
42 $(OBJS)\tex2rtf_gui_sample.res \
43 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
44 $(OBJS)\tex2rtf_gui_tex2any.obj \
45 $(OBJS)\tex2rtf_gui_texutils.obj \
46 $(OBJS)\tex2rtf_gui_rtfutils.obj \
47 $(OBJS)\tex2rtf_gui_xlputils.obj \
48 $(OBJS)\tex2rtf_gui_htmlutil.obj \
49 $(OBJS)\tex2rtf_gui_readshg.obj \
50 $(OBJS)\tex2rtf_gui_table.obj
52 ### Conditionally set variables: ###
54 !if "$(USE_GUI)" == "0"
57 !if "$(USE_GUI)" == "1"
60 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
63 !if "$(DEBUG_FLAG)" == "1"
66 !if "$(UNICODE)" == "1"
69 !if "$(WXUNIV)" == "1"
72 !if "$(SHARED)" == "1"
75 !if "$(MONOLITHIC)" == "0"
78 !if "$(MONOLITHIC)" == "1"
81 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
82 ____DEBUGRUNTIME_2_p =
84 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
85 ____DEBUGRUNTIME_2_p = /D_DEBUG
87 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
88 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
90 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
93 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
96 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
97 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
99 !if "$(USE_GUI)" == "1"
100 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
102 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
103 ____DEBUGRUNTIME_15_p =
105 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
106 ____DEBUGRUNTIME_15_p = /D_DEBUG
108 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
109 ____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
111 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
112 ____DEBUGRUNTIME_15_p_1 =
114 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
115 ____DEBUGRUNTIME_15_p_1 = /d _DEBUG
117 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
118 ____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_15_p_1)
120 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
121 ____DEBUGINFO_15_p_1 = /d _DEBUG
123 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
124 ____DEBUGINFO_15_p_1 =
126 !if "$(DEBUG_INFO)" == "0"
127 ____DEBUGINFO_15_p_1 =
129 !if "$(DEBUG_INFO)" == "1"
130 ____DEBUGINFO_15_p_1 = /d _DEBUG
132 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
135 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
136 __DEBUGRUNTIME_16 = d
138 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
139 __DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
141 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
142 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
144 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
145 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
147 !if "$(WXUNIV)" == "1"
148 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
150 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
151 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
153 !if "$(DEBUG_FLAG)" == "1"
154 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
156 !if "$(UNICODE)" == "1"
157 __UNICODE_DEFINE_p_3 = /d _UNICODE
159 !if "$(SHARED)" == "1"
160 __DLLFLAG_p_3 = /d WXUSINGDLL
162 !if "$(MONOLITHIC)" == "0"
164 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
166 !if "$(MONOLITHIC)" == "0"
168 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
170 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
173 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
176 !if "$(DEBUG_INFO)" == "0"
179 !if "$(DEBUG_INFO)" == "1"
182 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
183 __DEBUGINFO_1 = /DEBUG
185 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
188 !if "$(DEBUG_INFO)" == "0"
191 !if "$(DEBUG_INFO)" == "1"
192 __DEBUGINFO_1 = /DEBUG
194 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
195 ____DEBUGINFO = /D_DEBUG
197 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
200 !if "$(DEBUG_INFO)" == "0"
203 !if "$(DEBUG_INFO)" == "1"
204 ____DEBUGINFO = /D_DEBUG
206 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
209 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
212 !if "$(DEBUG_INFO)" == "0"
215 !if "$(DEBUG_INFO)" == "1"
218 !if "$(BUILD)" == "debug"
221 !if "$(BUILD)" == "release"
224 !if "$(RUNTIME_LIBS)" == "dynamic"
227 !if "$(RUNTIME_LIBS)" == "static"
230 !if "$(USE_EXCEPTIONS)" == "0"
233 !if "$(USE_EXCEPTIONS)" == "1"
234 __EXCEPTIONSFLAG = /GR
236 !if "$(USE_EXCEPTIONS)" == "0"
239 !if "$(USE_EXCEPTIONS)" == "1"
240 __EXCEPTIONSFLAG_0 = /GX
242 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
243 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
245 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
246 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
248 !if "$(WXUNIV)" == "1"
249 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
251 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
252 __DEBUG_DEFINE_p = /D__WXDEBUG__
254 !if "$(DEBUG_FLAG)" == "1"
255 __DEBUG_DEFINE_p = /D__WXDEBUG__
257 !if "$(UNICODE)" == "1"
258 __UNICODE_DEFINE_p = /D_UNICODE
260 !if "$(SHARED)" == "0"
261 LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
263 !if "$(SHARED)" == "1"
264 LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
266 !if "$(SHARED)" == "1"
267 __DLLFLAG_p = /DWXUSINGDLL
269 !if "$(MONOLITHIC)" == "0"
271 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
273 !if "$(MONOLITHIC)" == "1"
275 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
277 !if "$(USE_GUI)" == "1"
278 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
280 !if "$(USE_GUI)" == "1"
281 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
283 !if "$(USE_GUI)" == "1"
284 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
287 __UNICOWS_LIB_p = unicows.lib
293 -if not exist $(OBJS) mkdir $(OBJS)
297 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
300 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
301 -if exist $(OBJS)\*.res del $(OBJS)\*.res
302 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
303 -if exist $(OBJS)\tex2rtf.ilk del $(OBJS)\tex2rtf.ilk
304 -if exist $(OBJS)\tex2rtf.pdb del $(OBJS)\tex2rtf.pdb
305 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
306 -if exist $(OBJS)\tex2rtf_gui.ilk del $(OBJS)\tex2rtf_gui.ilk
307 -if exist $(OBJS)\tex2rtf_gui.pdb del $(OBJS)\tex2rtf_gui.pdb
309 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
310 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
311 $(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
314 !if "$(USE_GUI)" == "1"
315 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
316 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
317 $(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
321 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
324 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
327 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
328 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
330 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
331 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
333 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
334 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
336 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
337 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
339 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
340 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
342 $(OBJS)\tex2rtf_table.obj: .\table.cpp
343 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
345 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
346 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_15_p_1) $(__NO_VC_CRTDBG_p_3) /d __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) /i .\..\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_3) /d _WINDOWS /i .\..\..\..\samples $**
348 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
349 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
351 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
352 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
354 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
355 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
357 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
358 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
360 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
361 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
363 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
364 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
366 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
367 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
369 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
370 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**