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) /DWIN32 \
22 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
23 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) /I.\..\..\..\include /I$(SETUPHDIR) /W4 /I. \
26 $(__DLLFLAG_p) /D_CONSOLE /DwxUSE_GUI=0 /DNO_GUI $(__RTTIFLAG) \
27 $(__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) /DWIN32 \
38 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf_gui.pdb $(____DEBUGRUNTIME) \
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 "$(RUNTIME_LIBS)" == "dynamic"
93 !if "$(RUNTIME_LIBS)" == "static"
94 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
96 !if "$(USE_GUI)" == "1"
97 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
99 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
100 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
102 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
103 ____DEBUGRUNTIME_16_p_1 =
105 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
106 ____DEBUGRUNTIME_16_p_1 =
108 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
109 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
111 !if "$(RUNTIME_LIBS)" == "dynamic"
112 __RUNTIME_LIBS_22 = D
114 !if "$(RUNTIME_LIBS)" == "static"
115 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
117 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
118 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
120 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
121 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
123 !if "$(WXUNIV)" == "1"
124 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
126 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
127 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
129 !if "$(DEBUG_FLAG)" == "1"
130 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
132 !if "$(USE_EXCEPTIONS)" == "0"
133 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
135 !if "$(USE_RTTI)" == "0"
136 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
138 !if "$(USE_THREADS)" == "0"
139 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
141 !if "$(UNICODE)" == "1"
142 __UNICODE_DEFINE_p_3 = /d _UNICODE
144 !if "$(SHARED)" == "1"
145 __DLLFLAG_p_3 = /d WXUSINGDLL
147 !if "$(MONOLITHIC)" == "0"
149 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
151 !if "$(MONOLITHIC)" == "0"
153 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
155 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
158 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
161 !if "$(DEBUG_INFO)" == "0"
164 !if "$(DEBUG_INFO)" == "1"
167 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
168 __DEBUGINFO_1 = /DEBUG
170 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
173 !if "$(DEBUG_INFO)" == "0"
176 !if "$(DEBUG_INFO)" == "1"
177 __DEBUGINFO_1 = /DEBUG
179 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
180 ____DEBUGRUNTIME = /D_DEBUG
182 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
185 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
188 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
189 ____DEBUGRUNTIME = /D_DEBUG
191 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
194 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
197 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
200 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
203 !if "$(BUILD)" == "debug"
206 !if "$(BUILD)" == "release"
209 !if "$(USE_THREADS)" == "0"
212 !if "$(USE_THREADS)" == "1"
215 !if "$(USE_RTTI)" == "0"
218 !if "$(USE_RTTI)" == "1"
221 !if "$(USE_EXCEPTIONS)" == "0"
224 !if "$(USE_EXCEPTIONS)" == "1"
225 __EXCEPTIONSFLAG = /EHsc
227 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
228 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
230 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
231 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
233 !if "$(WXUNIV)" == "1"
234 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
236 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
237 __DEBUG_DEFINE_p = /D__WXDEBUG__
239 !if "$(DEBUG_FLAG)" == "1"
240 __DEBUG_DEFINE_p = /D__WXDEBUG__
242 !if "$(USE_EXCEPTIONS)" == "0"
243 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
245 !if "$(USE_RTTI)" == "0"
246 __RTTI_DEFINE_p = /DwxNO_RTTI
248 !if "$(USE_THREADS)" == "0"
249 __THREAD_DEFINE_p = /DwxNO_THREADS
251 !if "$(UNICODE)" == "1"
252 __UNICODE_DEFINE_p = /D_UNICODE
254 !if "$(SHARED)" == "1"
255 __DLLFLAG_p = /DWXUSINGDLL
257 !if "$(MONOLITHIC)" == "0"
259 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
261 !if "$(MONOLITHIC)" == "1"
263 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
265 !if "$(USE_GUI)" == "1"
266 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
268 !if "$(USE_GUI)" == "1"
269 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
271 !if "$(USE_GUI)" == "1"
272 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
275 __UNICOWS_LIB_p = unicows.lib
281 -if not exist $(OBJS) mkdir $(OBJS)
285 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
288 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
289 -if exist $(OBJS)\*.res del $(OBJS)\*.res
290 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
291 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
292 -if exist $(OBJS)\tex2rtf.ilk del $(OBJS)\tex2rtf.ilk
293 -if exist $(OBJS)\tex2rtf.pdb del $(OBJS)\tex2rtf.pdb
294 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
295 -if exist $(OBJS)\tex2rtf_gui.ilk del $(OBJS)\tex2rtf_gui.ilk
296 -if exist $(OBJS)\tex2rtf_gui.pdb del $(OBJS)\tex2rtf_gui.pdb
298 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
299 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
300 $(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
303 !if "$(USE_GUI)" == "1"
304 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
305 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
306 $(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
310 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
311 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
313 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
314 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
316 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
317 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
319 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
320 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
322 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
323 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
325 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
326 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
328 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
329 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
331 $(OBJS)\tex2rtf_table.obj: .\table.cpp
332 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
334 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
335 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 $**
337 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
338 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
340 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
341 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
343 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
344 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
346 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
347 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
349 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
350 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
352 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
353 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
355 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
356 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
358 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
359 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**