1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (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 # -------------------------------------------------------------------------
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 TEX2RTF_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
20 $(__DEBUGINFO_2) /Fd$(OBJS)\tex2rtf.pdb $(____DEBUGRUNTIME_2_p) \
21 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
22 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
23 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE /DNO_GUI $(CXXFLAGS) /GR /GX
24 TEX2RTF_GUI_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_14) \
25 /DWIN32 $(__DEBUGINFO_2) /Fd$(OBJS)\tex2rtf_gui.pdb \
26 $(____DEBUGRUNTIME_13_p) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
27 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 /I.\..\..\..\include /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
29 /I.\..\..\..\samples $(CXXFLAGS) /GR /GX
30 TEX2RTF_GUI_OBJECTS = \
31 $(OBJS)\tex2rtf_gui_sample.res \
32 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
33 $(OBJS)\tex2rtf_gui_tex2any.obj \
34 $(OBJS)\tex2rtf_gui_texutils.obj \
35 $(OBJS)\tex2rtf_gui_rtfutils.obj \
36 $(OBJS)\tex2rtf_gui_xlputils.obj \
37 $(OBJS)\tex2rtf_gui_htmlutil.obj \
38 $(OBJS)\tex2rtf_gui_readshg.obj \
39 $(OBJS)\tex2rtf_gui_table.obj
41 $(OBJS)\tex2rtf_tex2rtf.obj \
42 $(OBJS)\tex2rtf_tex2any.obj \
43 $(OBJS)\tex2rtf_texutils.obj \
44 $(OBJS)\tex2rtf_rtfutils.obj \
45 $(OBJS)\tex2rtf_xlputils.obj \
46 $(OBJS)\tex2rtf_htmlutil.obj \
47 $(OBJS)\tex2rtf_readshg.obj \
48 $(OBJS)\tex2rtf_table.obj
50 ### Conditionally set variables: ###
52 !if "$(SHARED)" == "0"
53 LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
55 !if "$(SHARED)" == "1"
56 LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
58 !if "$(USE_GUI)" == "0"
61 !if "$(USE_GUI)" == "1"
64 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
67 !if "$(DEBUG_FLAG)" == "1"
70 !if "$(SHARED)" == "1"
73 !if "$(UNICODE)" == "1"
76 !if "$(WXUNIV)" == "1"
79 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
82 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
85 !if "$(DEBUG_INFO)" == "0"
88 !if "$(DEBUG_INFO)" == "1"
91 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
92 __DEBUGINFO_1 = /DEBUG
94 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
97 !if "$(DEBUG_INFO)" == "0"
100 !if "$(DEBUG_INFO)" == "1"
101 __DEBUGINFO_1 = /DEBUG
103 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
106 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
109 !if "$(DEBUG_INFO)" == "0"
112 !if "$(DEBUG_INFO)" == "1"
115 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
118 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
119 __DEBUGRUNTIME_14 = d
121 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
122 __DEBUGRUNTIME_14 = $(__DEBUGINFO)
124 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
127 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
130 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
131 __DEBUGRUNTIME_3 = $(__DEBUGINFO)
133 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
134 __DEBUG_DEFINE_p = /D__WXDEBUG__
136 !if "$(DEBUG_FLAG)" == "1"
137 __DEBUG_DEFINE_p = /D__WXDEBUG__
139 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
140 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
142 !if "$(DEBUG_FLAG)" == "1"
143 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
145 !if "$(SHARED)" == "1"
146 __DLLFLAG_p = /DWXUSINGDLL
148 !if "$(SHARED)" == "1"
149 __DLLFLAG_p_3 = /d WXUSINGDLL
151 !if "$(USE_GUI)" == "1"
152 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
154 !if "$(USE_GUI)" == "1"
155 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
157 !if "$(USE_GUI)" == "1"
158 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
160 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
161 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
163 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
164 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
166 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
167 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
169 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
170 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
172 !if "$(BUILD)" == "debug"
175 !if "$(BUILD)" == "release"
178 !if "$(RUNTIME_LIBS)" == "dynamic"
181 !if "$(RUNTIME_LIBS)" == "static"
184 !if "$(UNICODE)" == "1"
185 __UNICODE_DEFINE_p = /D_UNICODE
187 !if "$(UNICODE)" == "1"
188 __UNICODE_DEFINE_p_3 = /d _UNICODE
191 __UNICOWS_LIB_p = unicows.lib
193 !if "$(MONOLITHIC)" == "0"
194 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
196 !if "$(MONOLITHIC)" == "0"
198 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
200 !if "$(MONOLITHIC)" == "0"
202 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
204 !if "$(MONOLITHIC)" == "1"
206 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
208 !if "$(WXUNIV)" == "1"
209 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
211 !if "$(WXUNIV)" == "1"
212 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
214 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
215 ____DEBUGINFO = /D_DEBUG
217 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
220 !if "$(DEBUG_INFO)" == "0"
223 !if "$(DEBUG_INFO)" == "1"
224 ____DEBUGINFO = /D_DEBUG
226 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
227 ____DEBUGINFO_13_p_1 = /d _DEBUG
229 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
230 ____DEBUGINFO_13_p_1 =
232 !if "$(DEBUG_INFO)" == "0"
233 ____DEBUGINFO_13_p_1 =
235 !if "$(DEBUG_INFO)" == "1"
236 ____DEBUGINFO_13_p_1 = /d _DEBUG
238 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
239 ____DEBUGRUNTIME_13_p =
241 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
242 ____DEBUGRUNTIME_13_p = /D_DEBUG
244 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
245 ____DEBUGRUNTIME_13_p = $(____DEBUGINFO)
247 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
248 ____DEBUGRUNTIME_13_p_1 =
250 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
251 ____DEBUGRUNTIME_13_p_1 = /d _DEBUG
253 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
254 ____DEBUGRUNTIME_13_p_1 = $(____DEBUGINFO_13_p_1)
256 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
257 ____DEBUGRUNTIME_2_p =
259 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
260 ____DEBUGRUNTIME_2_p = /D_DEBUG
262 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
263 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
269 -if not exist $(OBJS) mkdir $(OBJS)
273 all: $(OBJS)\tex2rtf.exe $(OBJS)\tex2rtf_gui.exe
275 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
276 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
278 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
279 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
281 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
282 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
284 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
285 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_13_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 $**
287 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
288 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
290 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
291 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
293 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
294 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
296 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
297 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
299 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
300 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
302 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
303 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
305 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
306 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
308 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
309 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
311 $(OBJS)\tex2rtf_table.obj: .\table.cpp
312 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
314 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
315 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
317 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
318 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
320 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
321 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
323 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
324 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
327 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
328 -if exist $(OBJS)\*.res del $(OBJS)\*.res
329 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
330 -if exist $(OBJS)\tex2rtf.ilk del $(OBJS)\tex2rtf.ilk
331 -if exist $(OBJS)\tex2rtf.pdb del $(OBJS)\tex2rtf.pdb
332 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
333 -if exist $(OBJS)\tex2rtf_gui.ilk del $(OBJS)\tex2rtf_gui.ilk
334 -if exist $(OBJS)\tex2rtf_gui.pdb del $(OBJS)\tex2rtf_gui.pdb
336 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
337 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
338 $(TEX2RTF_OBJECTS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib
341 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
342 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
343 $(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$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib