1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.2 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
27 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
31 TEX2RTF_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
32 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
35 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -I. $(__DLLFLAG_p) \
36 -DwxUSE_GUI=0 -DNO_GUI $(CPPFLAGS) $(CXXFLAGS)
38 $(OBJS)\tex2rtf_tex2rtf.obj \
39 $(OBJS)\tex2rtf_tex2any.obj \
40 $(OBJS)\tex2rtf_texutils.obj \
41 $(OBJS)\tex2rtf_rtfutils.obj \
42 $(OBJS)\tex2rtf_xlputils.obj \
43 $(OBJS)\tex2rtf_htmlutil.obj \
44 $(OBJS)\tex2rtf_readshg.obj \
45 $(OBJS)\tex2rtf_table.obj
46 TEX2RTF_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
47 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
48 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
49 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
50 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -I. $(__DLLFLAG_p) \
51 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
52 TEX2RTF_GUI_OBJECTS = \
53 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
54 $(OBJS)\tex2rtf_gui_tex2any.obj \
55 $(OBJS)\tex2rtf_gui_texutils.obj \
56 $(OBJS)\tex2rtf_gui_rtfutils.obj \
57 $(OBJS)\tex2rtf_gui_xlputils.obj \
58 $(OBJS)\tex2rtf_gui_htmlutil.obj \
59 $(OBJS)\tex2rtf_gui_readshg.obj \
60 $(OBJS)\tex2rtf_gui_table.obj
62 ### Conditionally set variables: ###
64 !if "$(USE_GUI)" == "0"
67 !if "$(USE_GUI)" == "1"
70 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
73 !if "$(DEBUG_FLAG)" == "1"
76 !if "$(UNICODE)" == "1"
79 !if "$(WXUNIV)" == "1"
82 !if "$(SHARED)" == "1"
85 !if "$(SHARED)" == "0"
88 !if "$(SHARED)" == "1"
91 !if "$(MONOLITHIC)" == "0"
94 !if "$(MONOLITHIC)" == "1"
97 !if "$(USE_GUI)" == "1"
98 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
100 !if "$(WXUNIV)" == "1"
101 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
103 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
104 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
106 !if "$(DEBUG_FLAG)" == "1"
107 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
109 !if "$(USE_EXCEPTIONS)" == "0"
110 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
112 !if "$(USE_RTTI)" == "0"
113 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
115 !if "$(USE_THREADS)" == "0"
116 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
118 !if "$(UNICODE)" == "0"
119 __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=0
121 !if "$(UNICODE)" == "1"
122 __UNICODE_DEFINE_p_3 = -d_UNICODE
125 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
127 !if "$(USE_GDIPLUS)" == "1"
128 __GFXCTX_DEFINE_p_3 = -dwxUSE_GRAPHICS_CONTEXT=1
130 !if "$(SHARED)" == "1"
131 __DLLFLAG_p_3 = -dWXUSINGDLL
133 !if "$(MONOLITHIC)" == "0"
135 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
137 !if "$(MONOLITHIC)" == "0"
139 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
141 !if "$(USE_GUI)" == "1"
142 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
144 !if "$(USE_GUI)" == "1"
145 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
147 !if "$(USE_GUI)" == "1"
148 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
150 !if "$(BUILD)" == "debug"
153 !if "$(BUILD)" == "release"
156 !if "$(USE_THREADS)" == "0"
159 !if "$(USE_THREADS)" == "1"
162 !if "$(USE_THREADS)" == "0"
165 !if "$(USE_THREADS)" == "1"
166 __THREADSFLAG_0 = -tWM
168 !if "$(RUNTIME_LIBS)" == "dynamic"
169 __RUNTIME_LIBS = -tWR
171 !if "$(RUNTIME_LIBS)" == "static"
174 !if "$(RUNTIME_LIBS)" == "dynamic"
177 !if "$(RUNTIME_LIBS)" == "static"
180 !if "$(WXUNIV)" == "1"
181 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
183 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
184 __DEBUG_DEFINE_p = -D__WXDEBUG__
186 !if "$(DEBUG_FLAG)" == "1"
187 __DEBUG_DEFINE_p = -D__WXDEBUG__
189 !if "$(USE_EXCEPTIONS)" == "0"
190 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
192 !if "$(USE_RTTI)" == "0"
193 __RTTI_DEFINE_p = -DwxNO_RTTI
195 !if "$(USE_THREADS)" == "0"
196 __THREAD_DEFINE_p = -DwxNO_THREADS
198 !if "$(UNICODE)" == "0"
199 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
201 !if "$(UNICODE)" == "1"
202 __UNICODE_DEFINE_p = -D_UNICODE
205 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
207 !if "$(USE_GDIPLUS)" == "1"
208 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
210 !if "$(SHARED)" == "1"
211 __DLLFLAG_p = -DWXUSINGDLL
213 !if "$(MONOLITHIC)" == "0"
215 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
217 !if "$(MONOLITHIC)" == "1"
219 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
222 __UNICOWS_LIB_p = unicows.lib
224 !if "$(USE_GDIPLUS)" == "1"
225 __GDIPLUS_LIB_p = gdiplus.lib
227 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
230 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
233 !if "$(DEBUG_INFO)" == "0"
236 !if "$(DEBUG_INFO)" == "1"
243 -if not exist $(OBJS) mkdir $(OBJS)
247 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
250 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
251 -if exist $(OBJS)\*.res del $(OBJS)\*.res
252 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
253 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
254 -if exist $(OBJS)\tex2rtf.tds del $(OBJS)\tex2rtf.tds
255 -if exist $(OBJS)\tex2rtf.ilc del $(OBJS)\tex2rtf.ilc
256 -if exist $(OBJS)\tex2rtf.ild del $(OBJS)\tex2rtf.ild
257 -if exist $(OBJS)\tex2rtf.ilf del $(OBJS)\tex2rtf.ilf
258 -if exist $(OBJS)\tex2rtf.ils del $(OBJS)\tex2rtf.ils
259 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
260 -if exist $(OBJS)\tex2rtf_gui.tds del $(OBJS)\tex2rtf_gui.tds
261 -if exist $(OBJS)\tex2rtf_gui.ilc del $(OBJS)\tex2rtf_gui.ilc
262 -if exist $(OBJS)\tex2rtf_gui.ild del $(OBJS)\tex2rtf_gui.ild
263 -if exist $(OBJS)\tex2rtf_gui.ilf del $(OBJS)\tex2rtf_gui.ilf
264 -if exist $(OBJS)\tex2rtf_gui.ils del $(OBJS)\tex2rtf_gui.ils
266 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
267 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
268 c0x32.obj $(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) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,,
271 !if "$(USE_GUI)" == "1"
272 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
273 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
274 c0w32.obj $(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) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\tex2rtf_gui_sample.res
278 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
279 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
281 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
282 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
284 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
285 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
287 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
288 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
290 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
291 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
293 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
294 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
296 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
297 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
299 $(OBJS)\tex2rtf_table.obj: .\table.cpp
300 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
302 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
303 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -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) -i.\..\..\..\samples -dNOPCH $**
305 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
306 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
308 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
309 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
311 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
312 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
314 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
315 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
317 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
318 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
320 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
321 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
323 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
324 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
326 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
327 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**