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 "$(DEBUG_RUNTIME_LIBS)" == "0"
76 ____DEBUGRUNTIME_2_p =
78 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
79 ____DEBUGRUNTIME_2_p = /D_DEBUG
81 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
82 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
84 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
87 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
90 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
91 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
93 !if "$(USE_GUI)" == "1"
94 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
96 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
97 ____DEBUGRUNTIME_15_p =
99 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
100 ____DEBUGRUNTIME_15_p = /D_DEBUG
102 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
103 ____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
105 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
106 ____DEBUGRUNTIME_15_p_1 =
108 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
109 ____DEBUGRUNTIME_15_p_1 = /d _DEBUG
111 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
112 ____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_15_p_1)
114 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
115 ____DEBUGINFO_15_p_1 = /d _DEBUG
117 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
118 ____DEBUGINFO_15_p_1 =
120 !if "$(DEBUG_INFO)" == "0"
121 ____DEBUGINFO_15_p_1 =
123 !if "$(DEBUG_INFO)" == "1"
124 ____DEBUGINFO_15_p_1 = /d _DEBUG
126 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
129 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
130 __DEBUGRUNTIME_16 = d
132 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
133 __DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
135 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
136 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
138 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
139 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
141 !if "$(WXUNIV)" == "1"
142 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
144 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
145 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
147 !if "$(DEBUG_FLAG)" == "1"
148 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
150 !if "$(UNICODE)" == "1"
151 __UNICODE_DEFINE_p_3 = /d _UNICODE
153 !if "$(SHARED)" == "1"
154 __DLLFLAG_p_3 = /d WXUSINGDLL
156 !if "$(MONOLITHIC)" == "0"
158 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
160 !if "$(MONOLITHIC)" == "0"
162 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
164 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
167 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
170 !if "$(DEBUG_INFO)" == "0"
173 !if "$(DEBUG_INFO)" == "1"
176 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
177 __DEBUGINFO_1 = /DEBUG
179 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
182 !if "$(DEBUG_INFO)" == "0"
185 !if "$(DEBUG_INFO)" == "1"
186 __DEBUGINFO_1 = /DEBUG
188 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
189 ____DEBUGINFO = /D_DEBUG
191 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
194 !if "$(DEBUG_INFO)" == "0"
197 !if "$(DEBUG_INFO)" == "1"
198 ____DEBUGINFO = /D_DEBUG
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"
215 !if "$(BUILD)" == "release"
218 !if "$(RUNTIME_LIBS)" == "dynamic"
221 !if "$(RUNTIME_LIBS)" == "static"
224 !if "$(USE_EXCEPTIONS)" == "0"
227 !if "$(USE_EXCEPTIONS)" == "1"
228 __EXCEPTIONSFLAG = /GR
230 !if "$(USE_EXCEPTIONS)" == "0"
233 !if "$(USE_EXCEPTIONS)" == "1"
234 __EXCEPTIONSFLAG_0 = /GX
236 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
237 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
239 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
240 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
242 !if "$(WXUNIV)" == "1"
243 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
245 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
246 __DEBUG_DEFINE_p = /D__WXDEBUG__
248 !if "$(DEBUG_FLAG)" == "1"
249 __DEBUG_DEFINE_p = /D__WXDEBUG__
251 !if "$(UNICODE)" == "1"
252 __UNICODE_DEFINE_p = /D_UNICODE
254 !if "$(SHARED)" == "0"
255 LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
257 !if "$(SHARED)" == "1"
258 LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
260 !if "$(SHARED)" == "1"
261 __DLLFLAG_p = /DWXUSINGDLL
263 !if "$(MONOLITHIC)" == "0"
265 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
267 !if "$(MONOLITHIC)" == "1"
269 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
271 !if "$(USE_GUI)" == "1"
272 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
274 !if "$(USE_GUI)" == "1"
275 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
277 !if "$(USE_GUI)" == "1"
278 __LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
281 __UNICOWS_LIB_p = unicows.lib
287 -if not exist $(OBJS) mkdir $(OBJS)
291 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
294 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
295 -if exist $(OBJS)\*.res del $(OBJS)\*.res
296 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
297 -if exist $(OBJS)\tex2rtf.ilk del $(OBJS)\tex2rtf.ilk
298 -if exist $(OBJS)\tex2rtf.pdb del $(OBJS)\tex2rtf.pdb
299 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
300 -if exist $(OBJS)\tex2rtf_gui.ilk del $(OBJS)\tex2rtf_gui.ilk
301 -if exist $(OBJS)\tex2rtf_gui.pdb del $(OBJS)\tex2rtf_gui.pdb
303 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
304 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
305 $(TEX2RTF_OBJECTS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__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
308 !if "$(USE_GUI)" == "1"
309 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
310 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
311 $(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)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__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
315 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
316 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
318 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
319 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
321 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
324 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
327 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
328 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
330 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
331 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
333 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
334 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
336 $(OBJS)\tex2rtf_table.obj: .\table.cpp
337 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
339 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
340 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 $**
342 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
343 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
345 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
346 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
348 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
349 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
351 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
352 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
354 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
355 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
357 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
358 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
360 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
361 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
363 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
364 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**