1# =========================================================================
2#     This makefile was generated by
3#     Bakefile 0.2.9 (http://www.bakefile.org)
4#     Do not modify, all changes will be overwritten!
5# =========================================================================
6
7.autodepend
8
9!ifndef BCCDIR
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../../../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
22### Variables: ###
23
24WX_RELEASE_NODOT = 28
25OBJS = \
26	bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27LIBDIRNAME = .\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
28SETUPHDIR = \
29	$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30TEX2RTF_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31	$(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32	$(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
33	$(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
34	$(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include \
35	$(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 -DNO_GUI \
36	$(CPPFLAGS) $(CXXFLAGS)
37TEX2RTF_OBJECTS =  \
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
46TEX2RTF_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
47	$(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
48	$(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
49	$(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
50	$(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include \
51	$(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\..\samples \
52	-DNOPCH $(CPPFLAGS) $(CXXFLAGS)
53TEX2RTF_GUI_OBJECTS =  \
54	$(OBJS)\tex2rtf_gui_tex2rtf.obj \
55	$(OBJS)\tex2rtf_gui_tex2any.obj \
56	$(OBJS)\tex2rtf_gui_texutils.obj \
57	$(OBJS)\tex2rtf_gui_rtfutils.obj \
58	$(OBJS)\tex2rtf_gui_xlputils.obj \
59	$(OBJS)\tex2rtf_gui_htmlutil.obj \
60	$(OBJS)\tex2rtf_gui_readshg.obj \
61	$(OBJS)\tex2rtf_gui_table.obj
62
63### Conditionally set variables: ###
64
65!if "$(USE_GUI)" == "0"
66PORTNAME = base
67!endif
68!if "$(USE_GUI)" == "1"
69PORTNAME = msw
70!endif
71!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
72WXDEBUGFLAG = d
73!endif
74!if "$(DEBUG_FLAG)" == "1"
75WXDEBUGFLAG = d
76!endif
77!if "$(UNICODE)" == "1"
78WXUNICODEFLAG = u
79!endif
80!if "$(WXUNIV)" == "1"
81WXUNIVNAME = univ
82!endif
83!if "$(SHARED)" == "1"
84WXDLLFLAG = dll
85!endif
86!if "$(SHARED)" == "0"
87LIBTYPE_SUFFIX = lib
88!endif
89!if "$(SHARED)" == "1"
90LIBTYPE_SUFFIX = dll
91!endif
92!if "$(MONOLITHIC)" == "0"
93EXTRALIBS_FOR_BASE = 
94!endif
95!if "$(MONOLITHIC)" == "1"
96EXTRALIBS_FOR_BASE =  
97!endif
98!if "$(USE_GUI)" == "1"
99__tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
100!endif
101!if "$(WXUNIV)" == "1"
102__WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
103!endif
104!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
105__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
106!endif
107!if "$(DEBUG_FLAG)" == "1"
108__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
109!endif
110!if "$(BUILD)" == "release"
111__NDEBUG_DEFINE_p_3 = -dNDEBUG
112!endif
113!if "$(USE_EXCEPTIONS)" == "0"
114__EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
115!endif
116!if "$(USE_RTTI)" == "0"
117__RTTI_DEFINE_p_3 = -dwxNO_RTTI
118!endif
119!if "$(USE_THREADS)" == "0"
120__THREAD_DEFINE_p_3 = -dwxNO_THREADS
121!endif
122!if "$(UNICODE)" == "1"
123__UNICODE_DEFINE_p_3 = -d_UNICODE
124!endif
125!if "$(MSLU)" == "1"
126__MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
127!endif
128!if "$(USE_GDIPLUS)" == "1"
129__GFXCTX_DEFINE_p_3 = -dwxUSE_GRAPHICS_CONTEXT=1
130!endif
131!if "$(USE_CAIRO)" == "1"
132____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo
133!endif
134!if "$(SHARED)" == "1"
135__DLLFLAG_p_3 = -dWXUSINGDLL
136!endif
137!if "$(MONOLITHIC)" == "0"
138__WXLIB_HTML_p = \
139	wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
140!endif
141!if "$(MONOLITHIC)" == "0"
142__WXLIB_CORE_p = \
143	wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
144!endif
145!if "$(USE_GUI)" == "1"
146__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
147!endif
148!if "$(USE_GUI)" == "1"
149__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
150!endif
151!if "$(USE_GUI)" == "1"
152__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
153!endif
154!if "$(BUILD)" == "debug"
155__OPTIMIZEFLAG = -Od
156!endif
157!if "$(BUILD)" == "release"
158__OPTIMIZEFLAG = -O2
159!endif
160!if "$(USE_THREADS)" == "0"
161__THREADSFLAG = 
162!endif
163!if "$(USE_THREADS)" == "1"
164__THREADSFLAG = mt
165!endif
166!if "$(USE_THREADS)" == "0"
167__THREADSFLAG_0 = 
168!endif
169!if "$(USE_THREADS)" == "1"
170__THREADSFLAG_0 = -tWM
171!endif
172!if "$(RUNTIME_LIBS)" == "dynamic"
173__RUNTIME_LIBS = -tWR
174!endif
175!if "$(RUNTIME_LIBS)" == "static"
176__RUNTIME_LIBS = 
177!endif
178!if "$(RUNTIME_LIBS)" == "dynamic"
179__RUNTIME_LIBS_0 = i
180!endif
181!if "$(RUNTIME_LIBS)" == "static"
182__RUNTIME_LIBS_0 = 
183!endif
184!if "$(WXUNIV)" == "1"
185__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
186!endif
187!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
188__DEBUG_DEFINE_p = -D__WXDEBUG__
189!endif
190!if "$(DEBUG_FLAG)" == "1"
191__DEBUG_DEFINE_p = -D__WXDEBUG__
192!endif
193!if "$(BUILD)" == "release"
194__NDEBUG_DEFINE_p = -DNDEBUG
195!endif
196!if "$(USE_EXCEPTIONS)" == "0"
197__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
198!endif
199!if "$(USE_RTTI)" == "0"
200__RTTI_DEFINE_p = -DwxNO_RTTI
201!endif
202!if "$(USE_THREADS)" == "0"
203__THREAD_DEFINE_p = -DwxNO_THREADS
204!endif
205!if "$(UNICODE)" == "1"
206__UNICODE_DEFINE_p = -D_UNICODE
207!endif
208!if "$(MSLU)" == "1"
209__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
210!endif
211!if "$(USE_GDIPLUS)" == "1"
212__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
213!endif
214!if "$(USE_CAIRO)" == "1"
215____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
216!endif
217!if "$(SHARED)" == "1"
218__DLLFLAG_p = -DWXUSINGDLL
219!endif
220!if "$(MONOLITHIC)" == "0"
221__WXLIB_BASE_p = \
222	wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
223!endif
224!if "$(MONOLITHIC)" == "1"
225__WXLIB_MONO_p = \
226	wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
227!endif
228!if "$(MSLU)" == "1"
229__UNICOWS_LIB_p = unicows.lib
230!endif
231!if "$(USE_GDIPLUS)" == "1"
232__GDIPLUS_LIB_p = gdiplus.lib
233!endif
234!if "$(USE_CAIRO)" == "1"
235__CAIRO_LIB_p = cairo.lib
236!endif
237!if "$(USE_CAIRO)" == "1"
238____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
239!endif
240!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
241__DEBUGINFO = -v
242!endif
243!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
244__DEBUGINFO = -v-
245!endif
246!if "$(DEBUG_INFO)" == "0"
247__DEBUGINFO = -v-
248!endif
249!if "$(DEBUG_INFO)" == "1"
250__DEBUGINFO = -v
251!endif
252
253
254all: $(OBJS)
255$(OBJS):
256	-if not exist $(OBJS) mkdir $(OBJS)
257
258### Targets: ###
259
260all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
261
262clean: 
263	-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
264	-if exist $(OBJS)\*.res del $(OBJS)\*.res
265	-if exist $(OBJS)\*.csm del $(OBJS)\*.csm
266	-if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
267	-if exist $(OBJS)\tex2rtf.tds del $(OBJS)\tex2rtf.tds
268	-if exist $(OBJS)\tex2rtf.ilc del $(OBJS)\tex2rtf.ilc
269	-if exist $(OBJS)\tex2rtf.ild del $(OBJS)\tex2rtf.ild
270	-if exist $(OBJS)\tex2rtf.ilf del $(OBJS)\tex2rtf.ilf
271	-if exist $(OBJS)\tex2rtf.ils del $(OBJS)\tex2rtf.ils
272	-if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
273	-if exist $(OBJS)\tex2rtf_gui.tds del $(OBJS)\tex2rtf_gui.tds
274	-if exist $(OBJS)\tex2rtf_gui.ilc del $(OBJS)\tex2rtf_gui.ilc
275	-if exist $(OBJS)\tex2rtf_gui.ild del $(OBJS)\tex2rtf_gui.ild
276	-if exist $(OBJS)\tex2rtf_gui.ilf del $(OBJS)\tex2rtf_gui.ilf
277	-if exist $(OBJS)\tex2rtf_gui.ils del $(OBJS)\tex2rtf_gui.ils
278
279$(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
280	ilink32 -Tpe -q  -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO)  -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
281	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) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,,
282|
283
284!if "$(USE_GUI)" == "1"
285$(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS)  $(OBJS)\tex2rtf_gui_sample.res
286	ilink32 -Tpe -q  -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO)  -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
287	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) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\tex2rtf_gui_sample.res
288|
289!endif
290
291$(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
292	$(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) .\tex2rtf.cpp
293
294$(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
295	$(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) .\tex2any.cpp
296
297$(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
298	$(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) .\texutils.cpp
299
300$(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
301	$(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) .\rtfutils.cpp
302
303$(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
304	$(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) .\xlputils.cpp
305
306$(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
307	$(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) .\htmlutil.cpp
308
309$(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
310	$(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) .\readshg.cpp
311
312$(OBJS)\tex2rtf_table.obj: .\table.cpp
313	$(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) .\table.cpp
314
315$(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
316	brcc32 -32 -r -fo$@ -i$(BCCDIR)\include    -d__WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__NDEBUG_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 $(____CAIRO_INCLUDEDIR_FILENAMES_3_p) -i. $(__DLLFLAG_p_3) -i.\..\..\..\samples -dNOPCH .\..\..\..\samples\sample.rc
317
318$(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
319	$(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) .\tex2rtf.cpp
320
321$(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
322	$(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) .\tex2any.cpp
323
324$(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
325	$(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) .\texutils.cpp
326
327$(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
328	$(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) .\rtfutils.cpp
329
330$(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
331	$(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) .\xlputils.cpp
332
333$(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
334	$(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) .\htmlutil.cpp
335
336$(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
337	$(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) .\readshg.cpp
338
339$(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
340	$(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) .\table.cpp
341
342