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 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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$(SETUPHDIR) /I. $(__DLLFLAG_p) \
23 /D_CONSOLE /DNO_GUI $(CXXFLAGS)
24 TEX2RTF_GUI_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_13) \
25 /DWIN32 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf_gui.pdb $(____DEBUGRUNTIME_12_p) \
26 $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
27 $(__UNICODE_DEFINE_p) /I.\..\..\..\include /I$(SETUPHDIR) /I. $(__DLLFLAG_p) \
28 /D_WINDOWS /I.\..\..\..\samples $(CXXFLAGS)
29 TEX2RTF_GUI_OBJECTS = \
30 $(OBJS)\tex2rtf_gui_sample.res \
31 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
32 $(OBJS)\tex2rtf_gui_tex2any.obj \
33 $(OBJS)\tex2rtf_gui_texutils.obj \
34 $(OBJS)\tex2rtf_gui_rtfutils.obj \
35 $(OBJS)\tex2rtf_gui_xlputils.obj \
36 $(OBJS)\tex2rtf_gui_htmlutil.obj \
37 $(OBJS)\tex2rtf_gui_readshg.obj \
38 $(OBJS)\tex2rtf_gui_table.obj
40 $(OBJS)\tex2rtf_tex2rtf.obj \
41 $(OBJS)\tex2rtf_tex2any.obj \
42 $(OBJS)\tex2rtf_texutils.obj \
43 $(OBJS)\tex2rtf_rtfutils.obj \
44 $(OBJS)\tex2rtf_xlputils.obj \
45 $(OBJS)\tex2rtf_htmlutil.obj \
46 $(OBJS)\tex2rtf_readshg.obj \
47 $(OBJS)\tex2rtf_table.obj
49 ### Conditionally set variables: ###
51 !if "$(SHARED)" == "0"
52 LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
54 !if "$(SHARED)" == "1"
55 LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
57 !if "$(USE_GUI)" == "0"
60 !if "$(USE_GUI)" == "1"
63 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
66 !if "$(DEBUG_FLAG)" == "1"
69 !if "$(SHARED)" == "1"
72 !if "$(UNICODE)" == "1"
75 !if "$(WXUNIV)" == "1"
78 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
81 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
84 !if "$(DEBUG_INFO)" == "0"
87 !if "$(DEBUG_INFO)" == "1"
90 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
91 __DEBUGINFO_1 = /DEBUG
93 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
96 !if "$(DEBUG_INFO)" == "0"
99 !if "$(DEBUG_INFO)" == "1"
100 __DEBUGINFO_1 = /DEBUG
102 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
105 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
108 !if "$(DEBUG_INFO)" == "0"
111 !if "$(DEBUG_INFO)" == "1"
114 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
117 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
118 __DEBUGRUNTIME_13 = d
120 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
121 __DEBUGRUNTIME_13 = $(__DEBUGINFO_2)
123 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
126 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
129 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
130 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
132 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
133 __DEBUG_DEFINE_p = /D__WXDEBUG__
135 !if "$(DEBUG_FLAG)" == "1"
136 __DEBUG_DEFINE_p = /D__WXDEBUG__
138 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
139 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
141 !if "$(DEBUG_FLAG)" == "1"
142 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
144 !if "$(SHARED)" == "1"
145 __DLLFLAG_p = /DWXUSINGDLL
147 !if "$(SHARED)" == "1"
148 __DLLFLAG_p_3 = /d WXUSINGDLL
150 !if "$(USE_GUI)" == "1"
151 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
153 !if "$(USE_GUI)" == "1"
154 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
156 !if "$(USE_GUI)" == "1"
157 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
159 !if "$(BUILD)" == "debug"
162 !if "$(BUILD)" == "release"
165 !if "$(RUNTIME_LIBS)" == "dynamic"
168 !if "$(RUNTIME_LIBS)" == "static"
171 !if "$(UNICODE)" == "1"
172 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
174 !if "$(UNICODE)" == "1"
175 __UNICODE_DEFINE_p_3 = /d wxUSE_UNICODE=1
178 __UNICOWS_LIB_p = unicows.lib
180 !if "$(MONOLITHIC)" == "0"
181 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
183 !if "$(MONOLITHIC)" == "0"
185 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
187 !if "$(MONOLITHIC)" == "0"
189 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
191 !if "$(MONOLITHIC)" == "1"
193 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
195 !if "$(WXUNIV)" == "1"
196 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
198 !if "$(WXUNIV)" == "1"
199 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
201 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
202 ____DEBUGINFO = /D_DEBUG
204 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
207 !if "$(DEBUG_INFO)" == "0"
210 !if "$(DEBUG_INFO)" == "1"
211 ____DEBUGINFO = /D_DEBUG
213 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
214 ____DEBUGINFO_12_p_1 = /d _DEBUG
216 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
217 ____DEBUGINFO_12_p_1 =
219 !if "$(DEBUG_INFO)" == "0"
220 ____DEBUGINFO_12_p_1 =
222 !if "$(DEBUG_INFO)" == "1"
223 ____DEBUGINFO_12_p_1 = /d _DEBUG
225 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
226 ____DEBUGRUNTIME_12_p =
228 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
229 ____DEBUGRUNTIME_12_p = /D_DEBUG
231 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
232 ____DEBUGRUNTIME_12_p = $(____DEBUGINFO)
234 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
235 ____DEBUGRUNTIME_12_p_1 =
237 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
238 ____DEBUGRUNTIME_12_p_1 = /d _DEBUG
240 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
241 ____DEBUGRUNTIME_12_p_1 = $(____DEBUGINFO_12_p_1)
243 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
244 ____DEBUGRUNTIME_2_p =
246 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
247 ____DEBUGRUNTIME_2_p = /D_DEBUG
249 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
250 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
256 -if not exist $(OBJS) mkdir $(OBJS)
260 all: $(OBJS)\tex2rtf.exe $(OBJS)\tex2rtf_gui.exe
262 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
263 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
265 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
266 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
268 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
269 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
271 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
272 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 $(SETUPHDIR) /i . $(__DLLFLAG_p_3) /d _WINDOWS /i .\..\..\..\samples $**
274 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
275 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
277 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
278 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
280 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
281 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
283 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
284 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
286 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
287 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
289 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
290 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
292 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
293 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
295 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
296 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
298 $(OBJS)\tex2rtf_table.obj: .\table.cpp
299 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
301 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
302 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
304 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
305 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
307 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
308 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
310 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
311 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
314 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
315 -if exist $(OBJS)\*.res del $(OBJS)\*.res
316 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
317 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
319 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
320 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
321 $(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
324 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
325 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
326 $(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