]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/tex2rtf/src/makefile.bcc
Rebaked with Bakefile 0.1.7.
[wxWidgets.git] / utils / tex2rtf / src / makefile.bcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
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 = 25
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) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
33 -DwxUSE_GUI=0 -DNO_GUI $(CPPFLAGS) $(CXXFLAGS)
34TEX2RTF_OBJECTS = \
35 $(OBJS)\tex2rtf_tex2rtf.obj \
36 $(OBJS)\tex2rtf_tex2any.obj \
37 $(OBJS)\tex2rtf_texutils.obj \
38 $(OBJS)\tex2rtf_rtfutils.obj \
39 $(OBJS)\tex2rtf_xlputils.obj \
40 $(OBJS)\tex2rtf_htmlutil.obj \
41 $(OBJS)\tex2rtf_readshg.obj \
42 $(OBJS)\tex2rtf_table.obj
43TEX2RTF_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
44 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
45 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
46 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
47TEX2RTF_GUI_OBJECTS = \
48 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
49 $(OBJS)\tex2rtf_gui_tex2any.obj \
50 $(OBJS)\tex2rtf_gui_texutils.obj \
51 $(OBJS)\tex2rtf_gui_rtfutils.obj \
52 $(OBJS)\tex2rtf_gui_xlputils.obj \
53 $(OBJS)\tex2rtf_gui_htmlutil.obj \
54 $(OBJS)\tex2rtf_gui_readshg.obj \
55 $(OBJS)\tex2rtf_gui_table.obj
56
57### Conditionally set variables: ###
58
59!if "$(USE_GUI)" == "0"
60PORTNAME = base
61!endif
62!if "$(USE_GUI)" == "1"
63PORTNAME = msw
64!endif
65!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
66WXDEBUGFLAG = d
67!endif
68!if "$(DEBUG_FLAG)" == "1"
69WXDEBUGFLAG = d
70!endif
71!if "$(UNICODE)" == "1"
72WXUNICODEFLAG = u
73!endif
74!if "$(WXUNIV)" == "1"
75WXUNIVNAME = univ
76!endif
77!if "$(SHARED)" == "1"
78WXDLLFLAG = dll
79!endif
80!if "$(SHARED)" == "0"
81LIBTYPE_SUFFIX = lib
82!endif
83!if "$(SHARED)" == "1"
84LIBTYPE_SUFFIX = dll
85!endif
86!if "$(MONOLITHIC)" == "0"
87EXTRALIBS_FOR_BASE =
88!endif
89!if "$(MONOLITHIC)" == "1"
90EXTRALIBS_FOR_BASE =
91!endif
92!if "$(USE_GUI)" == "1"
93__tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
94!endif
95!if "$(WXUNIV)" == "1"
96__WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
97!endif
98!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
99__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
100!endif
101!if "$(DEBUG_FLAG)" == "1"
102__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
103!endif
104!if "$(UNICODE)" == "1"
105__UNICODE_DEFINE_p_3 = -d_UNICODE
106!endif
107!if "$(SHARED)" == "1"
108__DLLFLAG_p_3 = -dWXUSINGDLL
109!endif
110!if "$(MONOLITHIC)" == "0"
111__WXLIB_HTML_p = \
112 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
113!endif
114!if "$(MONOLITHIC)" == "0"
115__WXLIB_CORE_p = \
116 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
117!endif
118!if "$(BUILD)" == "debug"
119__OPTIMIZEFLAG = -Od
120!endif
121!if "$(BUILD)" == "release"
122__OPTIMIZEFLAG = -O2
123!endif
124!if "$(RUNTIME_LIBS)" == "dynamic"
125__RUNTIME_LIBS = -tWR
126!endif
127!if "$(RUNTIME_LIBS)" == "static"
128__RUNTIME_LIBS =
129!endif
130!if "$(RUNTIME_LIBS)" == "dynamic"
131__RUNTIME_LIBS_0 = i
132!endif
133!if "$(RUNTIME_LIBS)" == "static"
134__RUNTIME_LIBS_0 =
135!endif
136!if "$(WXUNIV)" == "1"
137__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
138!endif
139!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
140__DEBUG_DEFINE_p = -D__WXDEBUG__
141!endif
142!if "$(DEBUG_FLAG)" == "1"
143__DEBUG_DEFINE_p = -D__WXDEBUG__
144!endif
145!if "$(UNICODE)" == "1"
146__UNICODE_DEFINE_p = -D_UNICODE
147!endif
148!if "$(SHARED)" == "1"
149__DLLFLAG_p = -DWXUSINGDLL
150!endif
151!if "$(MONOLITHIC)" == "0"
152__WXLIB_BASE_p = \
153 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
154!endif
155!if "$(MONOLITHIC)" == "1"
156__WXLIB_MONO_p = \
157 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
158!endif
159!if "$(USE_GUI)" == "1"
160__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
161!endif
162!if "$(USE_GUI)" == "1"
163__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
164!endif
165!if "$(USE_GUI)" == "1"
166__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
167!endif
168!if "$(MSLU)" == "1"
169__UNICOWS_LIB_p = unicows.lib
170!endif
171!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
172__DEBUGINFO = -v
173!endif
174!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
175__DEBUGINFO = -v-
176!endif
177!if "$(DEBUG_INFO)" == "0"
178__DEBUGINFO = -v-
179!endif
180!if "$(DEBUG_INFO)" == "1"
181__DEBUGINFO = -v
182!endif
183
184
185all: $(OBJS)
186$(OBJS):
187 -if not exist $(OBJS) mkdir $(OBJS)
188
189### Targets: ###
190
191all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
192
193clean:
194 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
195 -if exist $(OBJS)\*.res del $(OBJS)\*.res
196 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
197 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
198 -if exist $(OBJS)\tex2rtf.tds del $(OBJS)\tex2rtf.tds
199 -if exist $(OBJS)\tex2rtf.ilc del $(OBJS)\tex2rtf.ilc
200 -if exist $(OBJS)\tex2rtf.ild del $(OBJS)\tex2rtf.ild
201 -if exist $(OBJS)\tex2rtf.ilf del $(OBJS)\tex2rtf.ilf
202 -if exist $(OBJS)\tex2rtf.ils del $(OBJS)\tex2rtf.ils
203 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
204 -if exist $(OBJS)\tex2rtf_gui.tds del $(OBJS)\tex2rtf_gui.tds
205 -if exist $(OBJS)\tex2rtf_gui.ilc del $(OBJS)\tex2rtf_gui.ilc
206 -if exist $(OBJS)\tex2rtf_gui.ild del $(OBJS)\tex2rtf_gui.ild
207 -if exist $(OBJS)\tex2rtf_gui.ilf del $(OBJS)\tex2rtf_gui.ilf
208 -if exist $(OBJS)\tex2rtf_gui.ils del $(OBJS)\tex2rtf_gui.ils
209
210$(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
211 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
212 c0x32.obj $(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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,,
213|
214
215!if "$(USE_GUI)" == "1"
216$(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
217 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
218 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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\tex2rtf_gui_sample.res
219|
220!endif
221
222$(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
223 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
224
225$(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
226 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
227
228$(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
229 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
230
231$(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
232 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
233
234$(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
235 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
236
237$(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
238 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
239
240$(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
241 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
242
243$(OBJS)\tex2rtf_table.obj: .\table.cpp
244 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
245
246$(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
247 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_3) -i.\..\..\..\samples $**
248
249$(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
250 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
251
252$(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
253 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
254
255$(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
256 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
257
258$(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
259 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
260
261$(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
262 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
263
264$(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
265 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
266
267$(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
268 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
269
270$(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
271 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
272