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 .\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 TEX2RTF_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
20 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf.pdb $(____DEBUGRUNTIME_2_p) \
21 $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22 $(__UNICODE_DEFINE_p) /I.\..\..\..\include /I$(LIBDIRNAME) \
23 /I.\..\..\..\src\tiff /I.\..\..\..\src\jpeg /I.\..\..\..\src\png \
24 /I.\..\..\..\src\zlib /I.\..\..\..\src\regex /I.\..\..\..\src\expat\lib /I. \
25 $(__DLLFLAG_p) /D_CONSOLE /DNO_GUI $(CXXFLAGS)
26 TEX2RTF_GUI_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_13) \
27 /DWIN32 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf_gui.pdb $(____DEBUGRUNTIME_12_p) \
28 $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
29 $(__UNICODE_DEFINE_p) /I.\..\..\..\include /I$(LIBDIRNAME) \
30 /I.\..\..\..\src\tiff /I.\..\..\..\src\jpeg /I.\..\..\..\src\png \
31 /I.\..\..\..\src\zlib /I.\..\..\..\src\regex /I.\..\..\..\src\expat\lib /I. \
32 $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples $(CXXFLAGS)
33 TEX2RTF_GUI_OBJECTS = \
34 $(OBJS)\tex2rtf_gui_sample.res \
35 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
36 $(OBJS)\tex2rtf_gui_tex2any.obj \
37 $(OBJS)\tex2rtf_gui_texutils.obj \
38 $(OBJS)\tex2rtf_gui_rtfutils.obj \
39 $(OBJS)\tex2rtf_gui_xlputils.obj \
40 $(OBJS)\tex2rtf_gui_htmlutil.obj \
41 $(OBJS)\tex2rtf_gui_readshg.obj \
42 $(OBJS)\tex2rtf_gui_table.obj
44 $(OBJS)\tex2rtf_tex2rtf.obj \
45 $(OBJS)\tex2rtf_tex2any.obj \
46 $(OBJS)\tex2rtf_texutils.obj \
47 $(OBJS)\tex2rtf_rtfutils.obj \
48 $(OBJS)\tex2rtf_xlputils.obj \
49 $(OBJS)\tex2rtf_htmlutil.obj \
50 $(OBJS)\tex2rtf_readshg.obj \
51 $(OBJS)\tex2rtf_table.obj
53 ### Conditionally set variables: ###
55 !if "$(USE_GUI)" == "0"
58 !if "$(USE_GUI)" == "1"
61 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
64 !if "$(DEBUG_FLAG)" == "1"
67 !if "$(SHARED)" == "1"
70 !if "$(UNICODE)" == "1"
73 !if "$(WXUNIV)" == "1"
76 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
79 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
82 !if "$(DEBUG_INFO)" == "0"
85 !if "$(DEBUG_INFO)" == "1"
88 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
89 __DEBUGINFO_1 = /DEBUG
91 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
94 !if "$(DEBUG_INFO)" == "0"
97 !if "$(DEBUG_INFO)" == "1"
98 __DEBUGINFO_1 = /DEBUG
100 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
103 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
106 !if "$(DEBUG_INFO)" == "0"
109 !if "$(DEBUG_INFO)" == "1"
112 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
115 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
116 __DEBUGRUNTIME_13 = d
118 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
119 __DEBUGRUNTIME_13 = $(__DEBUGINFO_2)
121 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
124 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
127 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
128 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
130 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
131 __DEBUG_DEFINE_p = /D__WXDEBUG__
133 !if "$(DEBUG_FLAG)" == "1"
134 __DEBUG_DEFINE_p = /D__WXDEBUG__
136 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
137 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
139 !if "$(DEBUG_FLAG)" == "1"
140 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
142 !if "$(SHARED)" == "1"
143 __DLLFLAG_p = /DWXUSINGDLL
145 !if "$(SHARED)" == "1"
146 __DLLFLAG_p_3 = /d WXUSINGDLL
148 !if "$(USE_GUI)" == "1"
149 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
151 !if "$(USE_GUI)" == "1"
152 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
154 !if "$(USE_GUI)" == "1"
155 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
157 !if "$(BUILD)" == "debug"
160 !if "$(BUILD)" == "release"
163 !if "$(RUNTIME_LIBS)" == "dynamic"
166 !if "$(RUNTIME_LIBS)" == "static"
169 !if "$(UNICODE)" == "1"
170 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
172 !if "$(UNICODE)" == "1"
173 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=1
176 __UNICOWS_LIB_p = unicows.lib
178 !if "$(MONOLITHIC)" == "0"
179 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
181 !if "$(MONOLITHIC)" == "0"
183 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
185 !if "$(MONOLITHIC)" == "0"
187 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
189 !if "$(MONOLITHIC)" == "1"
191 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
193 !if "$(WXUNIV)" == "1"
194 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
196 !if "$(WXUNIV)" == "1"
197 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
199 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
200 ____DEBUGINFO = /D_DEBUG
202 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
205 !if "$(DEBUG_INFO)" == "0"
208 !if "$(DEBUG_INFO)" == "1"
209 ____DEBUGINFO = /D_DEBUG
211 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
212 ____DEBUGINFO_12_p_1 = /d _DEBUG
214 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
215 ____DEBUGINFO_12_p_1 =
217 !if "$(DEBUG_INFO)" == "0"
218 ____DEBUGINFO_12_p_1 =
220 !if "$(DEBUG_INFO)" == "1"
221 ____DEBUGINFO_12_p_1 = /d _DEBUG
223 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
224 ____DEBUGRUNTIME_12_p =
226 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
227 ____DEBUGRUNTIME_12_p = /D_DEBUG
229 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
230 ____DEBUGRUNTIME_12_p = $(____DEBUGINFO)
232 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
233 ____DEBUGRUNTIME_12_p_1 =
235 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
236 ____DEBUGRUNTIME_12_p_1 = /d _DEBUG
238 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
239 ____DEBUGRUNTIME_12_p_1 = $(____DEBUGINFO_12_p_1)
241 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
242 ____DEBUGRUNTIME_2_p =
244 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
245 ____DEBUGRUNTIME_2_p = /D_DEBUG
247 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
248 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
254 -if not exist $(OBJS) mkdir $(OBJS)
258 all: $(OBJS)\tex2rtf.exe $(OBJS)\tex2rtf_gui.exe
260 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
261 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
263 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
264 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
266 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
267 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
269 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
270 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_12_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) /i .\..\..\..\include /i $(LIBDIRNAME) /i .\..\..\..\src\tiff /i .\..\..\..\src\jpeg /i .\..\..\..\src\png /i .\..\..\..\src\zlib /i .\..\..\..\src\regex /i .\..\..\..\src\expat\lib /i . $(__DLLFLAG_p_3) /d _WINDOWS /i .\..\..\..\samples $**
272 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
273 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
275 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
276 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
278 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
279 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
281 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
282 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
284 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
285 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
287 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
288 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
290 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
291 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
293 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
294 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
296 $(OBJS)\tex2rtf_table.obj: .\table.cpp
297 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
299 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
300 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
302 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
303 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
305 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
306 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
308 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
309 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
312 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
313 -if exist $(OBJS)\*.res del $(OBJS)\*.res
314 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
315 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
317 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
318 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
319 $(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
322 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
323 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
324 $(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