1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.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 # -------------------------------------------------------------------------
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
18 LIBDIRNAME = .\..\..\..\lib\vc$(DIR_SUFFIX_CPU)_$(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) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
26 /I$(SETUPHDIR) /I.\..\..\..\include /W4 /I. $(__DLLFLAG_p) /D_CONSOLE \
27 /DwxUSE_GUI=0 /DNO_GUI $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
30 $(OBJS)\tex2rtf_tex2rtf.obj \
31 $(OBJS)\tex2rtf_tex2any.obj \
32 $(OBJS)\tex2rtf_texutils.obj \
33 $(OBJS)\tex2rtf_rtfutils.obj \
34 $(OBJS)\tex2rtf_xlputils.obj \
35 $(OBJS)\tex2rtf_htmlutil.obj \
36 $(OBJS)\tex2rtf_readshg.obj \
37 $(OBJS)\tex2rtf_table.obj
38 TEX2RTF_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS_22)$(__DEBUGRUNTIME) /DWIN32 \
39 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf_gui.pdb $(____DEBUGRUNTIME) \
40 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
41 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
42 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
43 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\..\include /W4 /I. \
44 $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH $(__RTTIFLAG) \
45 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
46 TEX2RTF_GUI_OBJECTS = \
47 $(OBJS)\tex2rtf_gui_sample.res \
48 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
49 $(OBJS)\tex2rtf_gui_tex2any.obj \
50 $(OBJS)\tex2rtf_gui_texutils.obj \
51 $(OBJS)\tex2rtf_gui_rtfutils.obj \
52 $(OBJS)\tex2rtf_gui_xlputils.obj \
53 $(OBJS)\tex2rtf_gui_htmlutil.obj \
54 $(OBJS)\tex2rtf_gui_readshg.obj \
55 $(OBJS)\tex2rtf_gui_table.obj
57 ### Conditionally set variables: ###
59 !if "$(USE_GUI)" == "0"
62 !if "$(USE_GUI)" == "1"
65 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
68 !if "$(DEBUG_FLAG)" == "1"
71 !if "$(UNICODE)" == "1"
74 !if "$(WXUNIV)" == "1"
77 !if "$(TARGET_CPU)" == "amd64"
78 DIR_SUFFIX_CPU = _amd64
80 !if "$(TARGET_CPU)" == "amd64"
81 DIR_SUFFIX_CPU = _amd64
83 !if "$(TARGET_CPU)" == "ia64"
84 DIR_SUFFIX_CPU = _ia64
86 !if "$(TARGET_CPU)" == "ia64"
87 DIR_SUFFIX_CPU = _ia64
89 !if "$(SHARED)" == "1"
92 !if "$(SHARED)" == "0"
95 !if "$(SHARED)" == "1"
98 !if "$(TARGET_CPU)" == "amd64"
99 LINK_TARGET_CPU = /MACHINE:AMD64
101 !if "$(TARGET_CPU)" == "amd64"
102 LINK_TARGET_CPU = /MACHINE:AMD64
104 !if "$(TARGET_CPU)" == "ia64"
105 LINK_TARGET_CPU = /MACHINE:IA64
107 !if "$(TARGET_CPU)" == "ia64"
108 LINK_TARGET_CPU = /MACHINE:IA64
110 !if "$(MONOLITHIC)" == "0"
113 !if "$(MONOLITHIC)" == "1"
116 !if "$(RUNTIME_LIBS)" == "dynamic"
119 !if "$(RUNTIME_LIBS)" == "static"
120 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
122 !if "$(USE_GUI)" == "1"
123 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
125 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
126 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
128 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
129 ____DEBUGRUNTIME_16_p_1 =
131 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
132 ____DEBUGRUNTIME_16_p_1 =
134 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
135 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
137 !if "$(RUNTIME_LIBS)" == "dynamic"
138 __RUNTIME_LIBS_22 = D
140 !if "$(RUNTIME_LIBS)" == "static"
141 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
143 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
144 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
146 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
147 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
149 !if "$(WXUNIV)" == "1"
150 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
152 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
153 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
155 !if "$(DEBUG_FLAG)" == "1"
156 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
158 !if "$(USE_EXCEPTIONS)" == "0"
159 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
161 !if "$(USE_RTTI)" == "0"
162 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
164 !if "$(USE_THREADS)" == "0"
165 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
167 !if "$(UNICODE)" == "1"
168 __UNICODE_DEFINE_p_3 = /d _UNICODE
171 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
173 !if "$(USE_GDIPLUS)" == "1"
174 __GFXCTX_DEFINE_p_3 = /d wxUSE_GRAPHICS_CONTEXT=1
176 !if "$(SHARED)" == "1"
177 __DLLFLAG_p_3 = /d WXUSINGDLL
179 !if "$(MONOLITHIC)" == "0"
181 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
183 !if "$(MONOLITHIC)" == "0"
185 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
187 !if "$(USE_GUI)" == "1"
188 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
190 !if "$(USE_GUI)" == "1"
191 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
193 !if "$(USE_GUI)" == "1"
194 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
196 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
199 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
202 !if "$(DEBUG_INFO)" == "0"
205 !if "$(DEBUG_INFO)" == "1"
208 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
209 __DEBUGINFO_1 = /DEBUG
211 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
214 !if "$(DEBUG_INFO)" == "0"
217 !if "$(DEBUG_INFO)" == "1"
218 __DEBUGINFO_1 = /DEBUG
220 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
221 ____DEBUGRUNTIME = /D_DEBUG
223 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
226 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
229 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
230 ____DEBUGRUNTIME = /D_DEBUG
232 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
235 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
238 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
241 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
244 !if "$(BUILD)" == "debug"
247 !if "$(BUILD)" == "release"
250 !if "$(USE_THREADS)" == "0"
253 !if "$(USE_THREADS)" == "1"
256 !if "$(USE_RTTI)" == "0"
259 !if "$(USE_RTTI)" == "1"
262 !if "$(USE_EXCEPTIONS)" == "0"
265 !if "$(USE_EXCEPTIONS)" == "1"
266 __EXCEPTIONSFLAG = /EHsc
268 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
269 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
271 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
272 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
274 !if "$(WXUNIV)" == "1"
275 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
277 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
278 __DEBUG_DEFINE_p = /D__WXDEBUG__
280 !if "$(DEBUG_FLAG)" == "1"
281 __DEBUG_DEFINE_p = /D__WXDEBUG__
283 !if "$(USE_EXCEPTIONS)" == "0"
284 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
286 !if "$(USE_RTTI)" == "0"
287 __RTTI_DEFINE_p = /DwxNO_RTTI
289 !if "$(USE_THREADS)" == "0"
290 __THREAD_DEFINE_p = /DwxNO_THREADS
292 !if "$(UNICODE)" == "1"
293 __UNICODE_DEFINE_p = /D_UNICODE
296 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
298 !if "$(USE_GDIPLUS)" == "1"
299 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
301 !if "$(SHARED)" == "1"
302 __DLLFLAG_p = /DWXUSINGDLL
304 !if "$(MONOLITHIC)" == "0"
306 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
308 !if "$(MONOLITHIC)" == "1"
310 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
313 __UNICOWS_LIB_p = unicows.lib
315 !if "$(USE_GDIPLUS)" == "1"
316 __GDIPLUS_LIB_p = gdiplus.lib
322 -if not exist $(OBJS) mkdir $(OBJS)
326 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
329 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
330 -if exist $(OBJS)\*.res del $(OBJS)\*.res
331 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
332 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
333 -if exist $(OBJS)\tex2rtf.ilk del $(OBJS)\tex2rtf.ilk
334 -if exist $(OBJS)\tex2rtf.pdb del $(OBJS)\tex2rtf.pdb
335 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
336 -if exist $(OBJS)\tex2rtf_gui.ilk del $(OBJS)\tex2rtf_gui.ilk
337 -if exist $(OBJS)\tex2rtf_gui.pdb del $(OBJS)\tex2rtf_gui.pdb
339 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
340 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
341 $(TEX2RTF_OBJECTS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_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 odbc32.lib
344 !if "$(USE_GUI)" == "1"
345 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
346 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
347 $(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) $(__GDIPLUS_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 odbc32.lib
351 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
352 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
354 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
355 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
357 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
358 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
360 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
361 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
363 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
364 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
366 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
367 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
369 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
370 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
372 $(OBJS)\tex2rtf_table.obj: .\table.cpp
373 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
375 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
376 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) $(__MSLU_DEFINE_p_3) $(__GFXCTX_DEFINE_p_3) /i $(SETUPHDIR) /i .\..\..\..\include /i . $(__DLLFLAG_p_3) /d _WINDOWS /i .\..\..\..\samples $**
378 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
379 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
381 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
382 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
384 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
385 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
387 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
388 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
390 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
391 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
393 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
394 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
396 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
397 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
399 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
400 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**