]> git.saurik.com Git - wxWidgets.git/blob - utils/tex2rtf/src/makefile.bcc
045822305d54383758267cbb4fe48830512ee580
[wxWidgets.git] / utils / tex2rtf / src / makefile.bcc
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 # =========================================================================
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
13 BCCDIR = $(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
24 WX_RELEASE_NODOT = 29
25 COMPILER_PREFIX = bcc
26 OBJS = \
27 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
29 SETUPHDIR = \
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)
37 TEX2RTF_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
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
61
62 ### Conditionally set variables: ###
63
64 !if "$(USE_GUI)" == "0"
65 PORTNAME = base
66 !endif
67 !if "$(USE_GUI)" == "1"
68 PORTNAME = msw
69 !endif
70 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
71 WXDEBUGFLAG = d
72 !endif
73 !if "$(DEBUG_FLAG)" == "1"
74 WXDEBUGFLAG = d
75 !endif
76 !if "$(UNICODE)" == "1"
77 WXUNICODEFLAG = u
78 !endif
79 !if "$(WXUNIV)" == "1"
80 WXUNIVNAME = univ
81 !endif
82 !if "$(SHARED)" == "1"
83 WXDLLFLAG = dll
84 !endif
85 !if "$(SHARED)" == "0"
86 LIBTYPE_SUFFIX = lib
87 !endif
88 !if "$(SHARED)" == "1"
89 LIBTYPE_SUFFIX = dll
90 !endif
91 !if "$(MONOLITHIC)" == "0"
92 EXTRALIBS_FOR_BASE =
93 !endif
94 !if "$(MONOLITHIC)" == "1"
95 EXTRALIBS_FOR_BASE =
96 !endif
97 !if "$(USE_GUI)" == "1"
98 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
99 !endif
100 !if "$(WXUNIV)" == "1"
101 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
102 !endif
103 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
104 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
105 !endif
106 !if "$(DEBUG_FLAG)" == "1"
107 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
108 !endif
109 !if "$(USE_EXCEPTIONS)" == "0"
110 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
111 !endif
112 !if "$(USE_RTTI)" == "0"
113 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
114 !endif
115 !if "$(USE_THREADS)" == "0"
116 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
117 !endif
118 !if "$(UNICODE)" == "0"
119 __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=0
120 !endif
121 !if "$(UNICODE)" == "1"
122 __UNICODE_DEFINE_p_3 = -d_UNICODE
123 !endif
124 !if "$(MSLU)" == "1"
125 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
126 !endif
127 !if "$(USE_GDIPLUS)" == "1"
128 __GFXCTX_DEFINE_p_3 = -dwxUSE_GRAPHICS_CONTEXT=1
129 !endif
130 !if "$(SHARED)" == "1"
131 __DLLFLAG_p_3 = -dWXUSINGDLL
132 !endif
133 !if "$(MONOLITHIC)" == "0"
134 __WXLIB_HTML_p = \
135 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
136 !endif
137 !if "$(MONOLITHIC)" == "0"
138 __WXLIB_CORE_p = \
139 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
140 !endif
141 !if "$(USE_GUI)" == "1"
142 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
143 !endif
144 !if "$(USE_GUI)" == "1"
145 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
146 !endif
147 !if "$(USE_GUI)" == "1"
148 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
149 !endif
150 !if "$(BUILD)" == "debug"
151 __OPTIMIZEFLAG = -Od
152 !endif
153 !if "$(BUILD)" == "release"
154 __OPTIMIZEFLAG = -O2
155 !endif
156 !if "$(USE_THREADS)" == "0"
157 __THREADSFLAG =
158 !endif
159 !if "$(USE_THREADS)" == "1"
160 __THREADSFLAG = mt
161 !endif
162 !if "$(USE_THREADS)" == "0"
163 __THREADSFLAG_0 =
164 !endif
165 !if "$(USE_THREADS)" == "1"
166 __THREADSFLAG_0 = -tWM
167 !endif
168 !if "$(RUNTIME_LIBS)" == "dynamic"
169 __RUNTIME_LIBS = -tWR
170 !endif
171 !if "$(RUNTIME_LIBS)" == "static"
172 __RUNTIME_LIBS =
173 !endif
174 !if "$(RUNTIME_LIBS)" == "dynamic"
175 __RUNTIME_LIBS_0 = i
176 !endif
177 !if "$(RUNTIME_LIBS)" == "static"
178 __RUNTIME_LIBS_0 =
179 !endif
180 !if "$(WXUNIV)" == "1"
181 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
182 !endif
183 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
184 __DEBUG_DEFINE_p = -D__WXDEBUG__
185 !endif
186 !if "$(DEBUG_FLAG)" == "1"
187 __DEBUG_DEFINE_p = -D__WXDEBUG__
188 !endif
189 !if "$(USE_EXCEPTIONS)" == "0"
190 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
191 !endif
192 !if "$(USE_RTTI)" == "0"
193 __RTTI_DEFINE_p = -DwxNO_RTTI
194 !endif
195 !if "$(USE_THREADS)" == "0"
196 __THREAD_DEFINE_p = -DwxNO_THREADS
197 !endif
198 !if "$(UNICODE)" == "0"
199 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
200 !endif
201 !if "$(UNICODE)" == "1"
202 __UNICODE_DEFINE_p = -D_UNICODE
203 !endif
204 !if "$(MSLU)" == "1"
205 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
206 !endif
207 !if "$(USE_GDIPLUS)" == "1"
208 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
209 !endif
210 !if "$(SHARED)" == "1"
211 __DLLFLAG_p = -DWXUSINGDLL
212 !endif
213 !if "$(MONOLITHIC)" == "0"
214 __WXLIB_BASE_p = \
215 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
216 !endif
217 !if "$(MONOLITHIC)" == "1"
218 __WXLIB_MONO_p = \
219 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
220 !endif
221 !if "$(MSLU)" == "1"
222 __UNICOWS_LIB_p = unicows.lib
223 !endif
224 !if "$(USE_GDIPLUS)" == "1"
225 __GDIPLUS_LIB_p = gdiplus.lib
226 !endif
227 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
228 __DEBUGINFO = -v
229 !endif
230 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
231 __DEBUGINFO = -v-
232 !endif
233 !if "$(DEBUG_INFO)" == "0"
234 __DEBUGINFO = -v-
235 !endif
236 !if "$(DEBUG_INFO)" == "1"
237 __DEBUGINFO = -v
238 !endif
239
240
241 all: $(OBJS)
242 $(OBJS):
243 -if not exist $(OBJS) mkdir $(OBJS)
244
245 ### Targets: ###
246
247 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
248
249 clean:
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
265
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,,
269 |
270
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
275 |
276 !endif
277
278 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
279 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
280
281 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
282 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
283
284 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
285 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
286
287 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
288 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
289
290 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
291 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
292
293 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
294 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
295
296 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
297 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
298
299 $(OBJS)\tex2rtf_table.obj: .\table.cpp
300 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
301
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 $**
304
305 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
306 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
307
308 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
309 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
310
311 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
312 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
313
314 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
315 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
316
317 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
318 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
319
320 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
321 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
322
323 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
324 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
325
326 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
327 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
328