1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.2 (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 = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
20 $(__DEBUGINFO) /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 $(__EXCEPTIONSFLAG) \
24 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
26 $(OBJS)\tex2rtf_tex2rtf.obj \
27 $(OBJS)\tex2rtf_tex2any.obj \
28 $(OBJS)\tex2rtf_texutils.obj \
29 $(OBJS)\tex2rtf_rtfutils.obj \
30 $(OBJS)\tex2rtf_xlputils.obj \
31 $(OBJS)\tex2rtf_htmlutil.obj \
32 $(OBJS)\tex2rtf_readshg.obj \
33 $(OBJS)\tex2rtf_table.obj
34 TEX2RTF_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_16) /DWIN32 \
35 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf_gui.pdb $(____DEBUGRUNTIME_15_p) \
36 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
37 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
38 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples \
39 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
40 TEX2RTF_GUI_OBJECTS = \
41 $(OBJS)\tex2rtf_gui_sample.res \
42 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
43 $(OBJS)\tex2rtf_gui_tex2any.obj \
44 $(OBJS)\tex2rtf_gui_texutils.obj \
45 $(OBJS)\tex2rtf_gui_rtfutils.obj \
46 $(OBJS)\tex2rtf_gui_xlputils.obj \
47 $(OBJS)\tex2rtf_gui_htmlutil.obj \
48 $(OBJS)\tex2rtf_gui_readshg.obj \
49 $(OBJS)\tex2rtf_gui_table.obj
51 ### Conditionally set variables: ###
53 !if "$(USE_GUI)" == "0"
56 !if "$(USE_GUI)" == "1"
59 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
62 !if "$(DEBUG_FLAG)" == "1"
65 !if "$(UNICODE)" == "1"
68 !if "$(WXUNIV)" == "1"
71 !if "$(SHARED)" == "1"
74 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
75 ____DEBUGRUNTIME_2_p =
77 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
78 ____DEBUGRUNTIME_2_p = /D_DEBUG
80 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
81 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
83 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
86 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
89 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
90 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
92 !if "$(USE_GUI)" == "1"
93 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
95 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
96 ____DEBUGRUNTIME_15_p =
98 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
99 ____DEBUGRUNTIME_15_p = /D_DEBUG
101 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
102 ____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
104 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
105 ____DEBUGRUNTIME_15_p_1 =
107 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
108 ____DEBUGRUNTIME_15_p_1 = /d _DEBUG
110 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
111 ____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_15_p_1)
113 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
114 ____DEBUGINFO_15_p_1 = /d _DEBUG
116 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
117 ____DEBUGINFO_15_p_1 =
119 !if "$(DEBUG_INFO)" == "0"
120 ____DEBUGINFO_15_p_1 =
122 !if "$(DEBUG_INFO)" == "1"
123 ____DEBUGINFO_15_p_1 = /d _DEBUG
125 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
128 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
129 __DEBUGRUNTIME_16 = d
131 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
132 __DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
134 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
135 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
137 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
138 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
140 !if "$(WXUNIV)" == "1"
141 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
143 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
144 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
146 !if "$(DEBUG_FLAG)" == "1"
147 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
149 !if "$(UNICODE)" == "1"
150 __UNICODE_DEFINE_p_3 = /d _UNICODE
152 !if "$(SHARED)" == "1"
153 __DLLFLAG_p_3 = /d WXUSINGDLL
155 !if "$(MONOLITHIC)" == "0"
157 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
159 !if "$(MONOLITHIC)" == "0"
161 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
163 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
166 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
169 !if "$(DEBUG_INFO)" == "0"
172 !if "$(DEBUG_INFO)" == "1"
175 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
176 __DEBUGINFO_1 = /DEBUG
178 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
181 !if "$(DEBUG_INFO)" == "0"
184 !if "$(DEBUG_INFO)" == "1"
185 __DEBUGINFO_1 = /DEBUG
187 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
188 ____DEBUGINFO = /D_DEBUG
190 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
193 !if "$(DEBUG_INFO)" == "0"
196 !if "$(DEBUG_INFO)" == "1"
197 ____DEBUGINFO = /D_DEBUG
199 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
202 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
205 !if "$(DEBUG_INFO)" == "0"
208 !if "$(DEBUG_INFO)" == "1"
211 !if "$(BUILD)" == "debug"
214 !if "$(BUILD)" == "release"
217 !if "$(RUNTIME_LIBS)" == "dynamic"
220 !if "$(RUNTIME_LIBS)" == "static"
223 !if "$(USE_EXCEPTIONS)" == "0"
226 !if "$(USE_EXCEPTIONS)" == "1"
227 __EXCEPTIONSFLAG = /GR
229 !if "$(USE_EXCEPTIONS)" == "0"
232 !if "$(USE_EXCEPTIONS)" == "1"
233 __EXCEPTIONSFLAG_0 = /GX
235 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
236 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
238 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
239 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
241 !if "$(WXUNIV)" == "1"
242 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
244 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
245 __DEBUG_DEFINE_p = /D__WXDEBUG__
247 !if "$(DEBUG_FLAG)" == "1"
248 __DEBUG_DEFINE_p = /D__WXDEBUG__
250 !if "$(UNICODE)" == "1"
251 __UNICODE_DEFINE_p = /D_UNICODE
253 !if "$(SHARED)" == "0"
254 LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
256 !if "$(SHARED)" == "1"
257 LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
259 !if "$(SHARED)" == "1"
260 __DLLFLAG_p = /DWXUSINGDLL
262 !if "$(MONOLITHIC)" == "0"
263 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
265 !if "$(MONOLITHIC)" == "1"
267 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
269 !if "$(USE_GUI)" == "1"
270 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
272 !if "$(USE_GUI)" == "1"
273 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
275 !if "$(USE_GUI)" == "1"
276 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
279 __UNICOWS_LIB_p = unicows.lib
285 -if not exist $(OBJS) mkdir $(OBJS)
289 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
292 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
293 -if exist $(OBJS)\*.res del $(OBJS)\*.res
294 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
295 -if exist $(OBJS)\tex2rtf.ilk del $(OBJS)\tex2rtf.ilk
296 -if exist $(OBJS)\tex2rtf.pdb del $(OBJS)\tex2rtf.pdb
297 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
298 -if exist $(OBJS)\tex2rtf_gui.ilk del $(OBJS)\tex2rtf_gui.ilk
299 -if exist $(OBJS)\tex2rtf_gui.pdb del $(OBJS)\tex2rtf_gui.pdb
301 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
302 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
303 $(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 ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib
306 !if "$(USE_GUI)" == "1"
307 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
308 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
309 $(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 ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib
313 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
314 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
316 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
317 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
319 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
320 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
322 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
323 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
325 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
326 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
328 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
329 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
331 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
332 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
334 $(OBJS)\tex2rtf_table.obj: .\table.cpp
335 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
337 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
338 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 $**
340 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
341 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
343 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
344 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
346 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
347 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
349 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
350 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
352 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
353 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
355 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
356 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
358 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
359 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
361 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
362 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**