1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (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) /I$(SETUPHDIR) \
26 /I.\..\..\..\include /W4 /I. $(__DLLFLAG_p) /D_CONSOLE /DwxUSE_GUI=0 /DNO_GUI \
27 $(__RTTIFLAG) $(__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) $(__MSLU_DEFINE_p) \
42 /I$(SETUPHDIR) /I.\..\..\..\include /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
43 /I.\..\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
45 TEX2RTF_GUI_OBJECTS = \
46 $(OBJS)\tex2rtf_gui_sample.res \
47 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
48 $(OBJS)\tex2rtf_gui_tex2any.obj \
49 $(OBJS)\tex2rtf_gui_texutils.obj \
50 $(OBJS)\tex2rtf_gui_rtfutils.obj \
51 $(OBJS)\tex2rtf_gui_xlputils.obj \
52 $(OBJS)\tex2rtf_gui_htmlutil.obj \
53 $(OBJS)\tex2rtf_gui_readshg.obj \
54 $(OBJS)\tex2rtf_gui_table.obj
56 ### Conditionally set variables: ###
58 !if "$(USE_GUI)" == "0"
61 !if "$(USE_GUI)" == "1"
64 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
67 !if "$(DEBUG_FLAG)" == "1"
70 !if "$(UNICODE)" == "1"
73 !if "$(WXUNIV)" == "1"
76 !if "$(TARGET_CPU)" == "amd64"
77 DIR_SUFFIX_CPU = _amd64
79 !if "$(TARGET_CPU)" == "amd64"
80 DIR_SUFFIX_CPU = _amd64
82 !if "$(TARGET_CPU)" == "ia64"
83 DIR_SUFFIX_CPU = _ia64
85 !if "$(TARGET_CPU)" == "ia64"
86 DIR_SUFFIX_CPU = _ia64
88 !if "$(SHARED)" == "1"
91 !if "$(SHARED)" == "0"
94 !if "$(SHARED)" == "1"
97 !if "$(TARGET_CPU)" == "amd64"
98 LINK_TARGET_CPU = /MACHINE:AMD64
100 !if "$(TARGET_CPU)" == "amd64"
101 LINK_TARGET_CPU = /MACHINE:AMD64
103 !if "$(TARGET_CPU)" == "ia64"
104 LINK_TARGET_CPU = /MACHINE:IA64
106 !if "$(TARGET_CPU)" == "ia64"
107 LINK_TARGET_CPU = /MACHINE:IA64
109 !if "$(MONOLITHIC)" == "0"
112 !if "$(MONOLITHIC)" == "1"
115 !if "$(RUNTIME_LIBS)" == "dynamic"
118 !if "$(RUNTIME_LIBS)" == "static"
119 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
121 !if "$(USE_GUI)" == "1"
122 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
124 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
125 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
127 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
128 ____DEBUGRUNTIME_16_p_1 =
130 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
131 ____DEBUGRUNTIME_16_p_1 =
133 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
134 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
136 !if "$(RUNTIME_LIBS)" == "dynamic"
137 __RUNTIME_LIBS_22 = D
139 !if "$(RUNTIME_LIBS)" == "static"
140 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
142 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
143 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
145 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
146 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
148 !if "$(WXUNIV)" == "1"
149 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
151 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
152 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
154 !if "$(DEBUG_FLAG)" == "1"
155 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
157 !if "$(USE_EXCEPTIONS)" == "0"
158 __EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
160 !if "$(USE_RTTI)" == "0"
161 __RTTI_DEFINE_p_3 = /d wxNO_RTTI
163 !if "$(USE_THREADS)" == "0"
164 __THREAD_DEFINE_p_3 = /d wxNO_THREADS
166 !if "$(UNICODE)" == "1"
167 __UNICODE_DEFINE_p_3 = /d _UNICODE
170 __MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
172 !if "$(SHARED)" == "1"
173 __DLLFLAG_p_3 = /d WXUSINGDLL
175 !if "$(MONOLITHIC)" == "0"
177 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
179 !if "$(MONOLITHIC)" == "0"
181 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
183 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
186 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
189 !if "$(DEBUG_INFO)" == "0"
192 !if "$(DEBUG_INFO)" == "1"
195 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
196 __DEBUGINFO_1 = /DEBUG
198 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
201 !if "$(DEBUG_INFO)" == "0"
204 !if "$(DEBUG_INFO)" == "1"
205 __DEBUGINFO_1 = /DEBUG
207 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
208 ____DEBUGRUNTIME = /D_DEBUG
210 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
213 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
216 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
217 ____DEBUGRUNTIME = /D_DEBUG
219 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
222 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
225 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
228 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
231 !if "$(BUILD)" == "debug"
234 !if "$(BUILD)" == "release"
237 !if "$(USE_THREADS)" == "0"
240 !if "$(USE_THREADS)" == "1"
243 !if "$(USE_RTTI)" == "0"
246 !if "$(USE_RTTI)" == "1"
249 !if "$(USE_EXCEPTIONS)" == "0"
252 !if "$(USE_EXCEPTIONS)" == "1"
253 __EXCEPTIONSFLAG = /EHsc
255 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
256 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
258 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
259 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
261 !if "$(WXUNIV)" == "1"
262 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
264 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
265 __DEBUG_DEFINE_p = /D__WXDEBUG__
267 !if "$(DEBUG_FLAG)" == "1"
268 __DEBUG_DEFINE_p = /D__WXDEBUG__
270 !if "$(USE_EXCEPTIONS)" == "0"
271 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
273 !if "$(USE_RTTI)" == "0"
274 __RTTI_DEFINE_p = /DwxNO_RTTI
276 !if "$(USE_THREADS)" == "0"
277 __THREAD_DEFINE_p = /DwxNO_THREADS
279 !if "$(UNICODE)" == "1"
280 __UNICODE_DEFINE_p = /D_UNICODE
283 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
285 !if "$(SHARED)" == "1"
286 __DLLFLAG_p = /DWXUSINGDLL
288 !if "$(MONOLITHIC)" == "0"
290 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
292 !if "$(MONOLITHIC)" == "1"
294 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
296 !if "$(USE_GUI)" == "1"
297 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
299 !if "$(USE_GUI)" == "1"
300 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
302 !if "$(USE_GUI)" == "1"
303 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
306 __UNICOWS_LIB_p = unicows.lib
312 -if not exist $(OBJS) mkdir $(OBJS)
316 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
319 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
320 -if exist $(OBJS)\*.res del $(OBJS)\*.res
321 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
322 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
323 -if exist $(OBJS)\tex2rtf.ilk del $(OBJS)\tex2rtf.ilk
324 -if exist $(OBJS)\tex2rtf.pdb del $(OBJS)\tex2rtf.pdb
325 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
326 -if exist $(OBJS)\tex2rtf_gui.ilk del $(OBJS)\tex2rtf_gui.ilk
327 -if exist $(OBJS)\tex2rtf_gui.pdb del $(OBJS)\tex2rtf_gui.pdb
329 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
330 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
331 $(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 odbc32.lib
334 !if "$(USE_GUI)" == "1"
335 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
336 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
337 $(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 odbc32.lib
341 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
342 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
344 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
345 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
347 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
348 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
350 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
351 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
353 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
354 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
356 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
357 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
359 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
360 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
362 $(OBJS)\tex2rtf_table.obj: .\table.cpp
363 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
365 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
366 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) /i $(SETUPHDIR) /i .\..\..\..\include /i . $(__DLLFLAG_p_3) /d _WINDOWS /i .\..\..\..\samples $**
368 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
369 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
371 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
372 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
374 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
375 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
377 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
378 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
380 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
381 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
383 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
384 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
386 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
387 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
389 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
390 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**