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 # =========================================================================
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 # -------------------------------------------------------------------------
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 LIBDIRNAME = .\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 TEX2RTF_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
34 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -I. $(__DLLFLAG_p) \
35 -DwxUSE_GUI=0 -DNO_GUI $(CPPFLAGS) $(CXXFLAGS)
37 $(OBJS)\tex2rtf_tex2rtf.obj \
38 $(OBJS)\tex2rtf_tex2any.obj \
39 $(OBJS)\tex2rtf_texutils.obj \
40 $(OBJS)\tex2rtf_rtfutils.obj \
41 $(OBJS)\tex2rtf_xlputils.obj \
42 $(OBJS)\tex2rtf_htmlutil.obj \
43 $(OBJS)\tex2rtf_readshg.obj \
44 $(OBJS)\tex2rtf_table.obj
45 TEX2RTF_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
46 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
47 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
48 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
49 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -I. $(__DLLFLAG_p) \
50 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
51 TEX2RTF_GUI_OBJECTS = \
52 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
53 $(OBJS)\tex2rtf_gui_tex2any.obj \
54 $(OBJS)\tex2rtf_gui_texutils.obj \
55 $(OBJS)\tex2rtf_gui_rtfutils.obj \
56 $(OBJS)\tex2rtf_gui_xlputils.obj \
57 $(OBJS)\tex2rtf_gui_htmlutil.obj \
58 $(OBJS)\tex2rtf_gui_readshg.obj \
59 $(OBJS)\tex2rtf_gui_table.obj
61 ### Conditionally set variables: ###
63 !if "$(USE_GUI)" == "0"
66 !if "$(USE_GUI)" == "1"
69 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
72 !if "$(DEBUG_FLAG)" == "1"
75 !if "$(UNICODE)" == "1"
78 !if "$(WXUNIV)" == "1"
81 !if "$(SHARED)" == "1"
84 !if "$(SHARED)" == "0"
87 !if "$(SHARED)" == "1"
90 !if "$(MONOLITHIC)" == "0"
93 !if "$(MONOLITHIC)" == "1"
96 !if "$(USE_GUI)" == "1"
97 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
99 !if "$(WXUNIV)" == "1"
100 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
102 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
103 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
105 !if "$(DEBUG_FLAG)" == "1"
106 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
108 !if "$(USE_EXCEPTIONS)" == "0"
109 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
111 !if "$(USE_RTTI)" == "0"
112 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
114 !if "$(USE_THREADS)" == "0"
115 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
117 !if "$(UNICODE)" == "1"
118 __UNICODE_DEFINE_p_3 = -d_UNICODE
121 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
123 !if "$(USE_GDIPLUS)" == "1"
124 __GFXCTX_DEFINE_p_3 = -dwxUSE_GRAPHICS_CONTEXT=1
126 !if "$(SHARED)" == "1"
127 __DLLFLAG_p_3 = -dWXUSINGDLL
129 !if "$(MONOLITHIC)" == "0"
131 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
133 !if "$(MONOLITHIC)" == "0"
135 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
137 !if "$(USE_GUI)" == "1"
138 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
140 !if "$(USE_GUI)" == "1"
141 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
143 !if "$(USE_GUI)" == "1"
144 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
146 !if "$(BUILD)" == "debug"
149 !if "$(BUILD)" == "release"
152 !if "$(USE_THREADS)" == "0"
155 !if "$(USE_THREADS)" == "1"
158 !if "$(USE_THREADS)" == "0"
161 !if "$(USE_THREADS)" == "1"
162 __THREADSFLAG_0 = -tWM
164 !if "$(RUNTIME_LIBS)" == "dynamic"
165 __RUNTIME_LIBS = -tWR
167 !if "$(RUNTIME_LIBS)" == "static"
170 !if "$(RUNTIME_LIBS)" == "dynamic"
173 !if "$(RUNTIME_LIBS)" == "static"
176 !if "$(WXUNIV)" == "1"
177 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
179 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
180 __DEBUG_DEFINE_p = -D__WXDEBUG__
182 !if "$(DEBUG_FLAG)" == "1"
183 __DEBUG_DEFINE_p = -D__WXDEBUG__
185 !if "$(USE_EXCEPTIONS)" == "0"
186 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
188 !if "$(USE_RTTI)" == "0"
189 __RTTI_DEFINE_p = -DwxNO_RTTI
191 !if "$(USE_THREADS)" == "0"
192 __THREAD_DEFINE_p = -DwxNO_THREADS
194 !if "$(UNICODE)" == "1"
195 __UNICODE_DEFINE_p = -D_UNICODE
198 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
200 !if "$(USE_GDIPLUS)" == "1"
201 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
203 !if "$(SHARED)" == "1"
204 __DLLFLAG_p = -DWXUSINGDLL
206 !if "$(MONOLITHIC)" == "0"
208 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
210 !if "$(MONOLITHIC)" == "1"
212 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
215 __UNICOWS_LIB_p = unicows.lib
217 !if "$(USE_GDIPLUS)" == "1"
218 __GDIPLUS_LIB_p = gdiplus.lib
220 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
223 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
226 !if "$(DEBUG_INFO)" == "0"
229 !if "$(DEBUG_INFO)" == "1"
236 -if not exist $(OBJS) mkdir $(OBJS)
240 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
243 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
244 -if exist $(OBJS)\*.res del $(OBJS)\*.res
245 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
246 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
247 -if exist $(OBJS)\tex2rtf.tds del $(OBJS)\tex2rtf.tds
248 -if exist $(OBJS)\tex2rtf.ilc del $(OBJS)\tex2rtf.ilc
249 -if exist $(OBJS)\tex2rtf.ild del $(OBJS)\tex2rtf.ild
250 -if exist $(OBJS)\tex2rtf.ilf del $(OBJS)\tex2rtf.ilf
251 -if exist $(OBJS)\tex2rtf.ils del $(OBJS)\tex2rtf.ils
252 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
253 -if exist $(OBJS)\tex2rtf_gui.tds del $(OBJS)\tex2rtf_gui.tds
254 -if exist $(OBJS)\tex2rtf_gui.ilc del $(OBJS)\tex2rtf_gui.ilc
255 -if exist $(OBJS)\tex2rtf_gui.ild del $(OBJS)\tex2rtf_gui.ild
256 -if exist $(OBJS)\tex2rtf_gui.ilf del $(OBJS)\tex2rtf_gui.ilf
257 -if exist $(OBJS)\tex2rtf_gui.ils del $(OBJS)\tex2rtf_gui.ils
259 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
260 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
261 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 odbc32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,,
264 !if "$(USE_GUI)" == "1"
265 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
266 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
267 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 odbc32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\tex2rtf_gui_sample.res
271 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
272 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
274 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
275 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
277 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
278 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
280 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
281 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
283 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
284 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
286 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
287 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
289 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
290 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
292 $(OBJS)\tex2rtf_table.obj: .\table.cpp
293 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
295 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
296 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 $**
298 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
299 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
301 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
302 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
304 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
305 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
307 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
308 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
310 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
311 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
313 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
314 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
316 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
317 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
319 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
320 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**