]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/deprecated/makefile.bcc
Watcom compilation fix
[wxWidgets.git] / contrib / build / deprecated / makefile.bcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!ifndef BCCDIR
8BCCDIR = $(MAKEDIR)\..
9!endif
10
fd9f42b6 11!include ../../../build/msw/config.bcc
15e8daec
VS
12
13# -------------------------------------------------------------------------
14# Do not modify the rest of this file!
15# -------------------------------------------------------------------------
16
17!if "$(BCCDIR)" == "\.."
18!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
19!endif
20
21### Variables: ###
22
23DEPRECATEDDLL_CFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
24 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \
26 -I$(LIBDIRNAME) -I..\..\src\deprecated\..\..\..\src\tiff \
27 -I..\..\src\deprecated\..\..\..\src\jpeg \
28 -I..\..\src\deprecated\..\..\..\src\png \
29 -I..\..\src\deprecated\..\..\..\src\zlib \
30 -I..\..\src\deprecated\..\..\..\src\regex \
31 -I..\..\src\deprecated\..\..\..\src\expat\lib \
32 -I..\..\src\deprecated\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_DEPRECATED \
33 $(CFLAGS)
34DEPRECATEDDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
35 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \
37 -I$(LIBDIRNAME) -I..\..\src\deprecated\..\..\..\src\tiff \
38 -I..\..\src\deprecated\..\..\..\src\jpeg \
39 -I..\..\src\deprecated\..\..\..\src\png \
40 -I..\..\src\deprecated\..\..\..\src\zlib \
41 -I..\..\src\deprecated\..\..\..\src\regex \
42 -I..\..\src\deprecated\..\..\..\src\expat\lib \
43 -I..\..\src\deprecated\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_DEPRECATED \
44 $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_deprecateddll.csm
45DEPRECATEDDLL_OBJECTS = \
46 $(OBJS)\deprecateddll_dummy.obj \
47 $(OBJS)\deprecateddll_prop.obj \
48 $(OBJS)\deprecateddll_propform.obj \
49 $(OBJS)\deprecateddll_proplist.obj \
50 $(OBJS)\deprecateddll_resource.obj \
51 $(OBJS)\deprecateddll_treelay.obj \
52 $(OBJS)\deprecateddll_wxexpr.obj \
53 $(OBJS)\deprecateddll_dosyacc.obj
54DEPRECATEDLIB_CFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
55 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
56 $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \
57 -I$(LIBDIRNAME) -I..\..\src\deprecated\..\..\..\src\tiff \
58 -I..\..\src\deprecated\..\..\..\src\jpeg \
59 -I..\..\src\deprecated\..\..\..\src\png \
60 -I..\..\src\deprecated\..\..\..\src\zlib \
61 -I..\..\src\deprecated\..\..\..\src\regex \
62 -I..\..\src\deprecated\..\..\..\src\expat\lib \
63 -I..\..\src\deprecated\..\..\include $(CFLAGS)
64DEPRECATEDLIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
65 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
66 $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \
67 -I$(LIBDIRNAME) -I..\..\src\deprecated\..\..\..\src\tiff \
68 -I..\..\src\deprecated\..\..\..\src\jpeg \
69 -I..\..\src\deprecated\..\..\..\src\png \
70 -I..\..\src\deprecated\..\..\..\src\zlib \
71 -I..\..\src\deprecated\..\..\..\src\regex \
72 -I..\..\src\deprecated\..\..\..\src\expat\lib \
73 -I..\..\src\deprecated\..\..\include $(CXXFLAGS) -Hu \
74 -H=$(OBJS)\wxprec_deprecatedlib.csm
75DEPRECATEDLIB_OBJECTS = \
76 $(OBJS)\deprecatedlib_dummy.obj \
77 $(OBJS)\deprecatedlib_prop.obj \
78 $(OBJS)\deprecatedlib_propform.obj \
79 $(OBJS)\deprecatedlib_proplist.obj \
80 $(OBJS)\deprecatedlib_resource.obj \
81 $(OBJS)\deprecatedlib_treelay.obj \
82 $(OBJS)\deprecatedlib_wxexpr.obj \
83 $(OBJS)\deprecatedlib_dosyacc.obj
84LIBDIRNAME = \
85 ..\..\src\deprecated\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
86OBJS = \
87 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
88
89### Conditionally set variables: ###
90
91!if "$(USE_GUI)" == "0"
92PORTNAME = base
93!endif
94!if "$(USE_GUI)" == "1"
95PORTNAME = msw
96!endif
97!if "$(OFFICIAL_BUILD)" == "0"
98VENDORTAG = _$(VENDOR)
99!endif
100!if "$(OFFICIAL_BUILD)" == "1"
101VENDORTAG =
102!endif
103!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
104WXDEBUGFLAG = d
105!endif
106!if "$(DEBUG_FLAG)" == "1"
107WXDEBUGFLAG = d
108!endif
109!if "$(SHARED)" == "1"
110WXDLLFLAG = dll
111!endif
112!if "$(UNICODE)" == "1"
113WXUNICODEFLAG = u
114!endif
115!if "$(WXUNIV)" == "1"
116WXUNIVNAME = univ
117!endif
118!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
119__DEBUGINFO = -v
120!endif
121!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
122__DEBUGINFO = -v-
123!endif
124!if "$(DEBUG_INFO)" == "0"
125__DEBUGINFO = -v-
126!endif
127!if "$(DEBUG_INFO)" == "1"
128__DEBUGINFO = -v
129!endif
130!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
131__DEBUG_DEFINE_p = -D__WXDEBUG__
132!endif
133!if "$(DEBUG_FLAG)" == "1"
134__DEBUG_DEFINE_p = -D__WXDEBUG__
135!endif
136!if "$(USE_GUI)" == "1"
137__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
138!endif
139!if "$(USE_GUI)" == "1"
140__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
141!endif
142!if "$(USE_GUI)" == "1"
143__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
144!endif
145!if "$(BUILD)" == "debug"
146__OPTIMIZEFLAG = -Od
147!endif
148!if "$(BUILD)" == "release"
149__OPTIMIZEFLAG = -O2
150!endif
151!if "$(RUNTIME_LIBS)" == "dynamic"
152__RUNTIME_LIBS = -tWR
153!endif
154!if "$(RUNTIME_LIBS)" == "static"
155__RUNTIME_LIBS =
156!endif
157!if "$(RUNTIME_LIBS)" == "dynamic"
158__RUNTIME_LIBS_7 = i
159!endif
160!if "$(RUNTIME_LIBS)" == "static"
161__RUNTIME_LIBS_7 =
162!endif
163!if "$(UNICODE)" == "1"
164__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
165!endif
2265a2d5
VS
166!if "$(MSLU)" == "1"
167__UNICOWS_LIB_p = unicows.lib
168!endif
15e8daec
VS
169!if "$(MONOLITHIC)" == "0"
170__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
171!endif
172!if "$(MONOLITHIC)" == "0"
173__WXLIB_CORE_p = \
174 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
175!endif
176!if "$(MONOLITHIC)" == "1"
177__WXLIB_MONO_p = \
178 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
179!endif
180!if "$(WXUNIV)" == "1"
181__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
182!endif
183!if "$(SHARED)" == "1"
184__deprecateddll___depname = \
185 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_bcc$(VENDORTAG).dll
186!endif
187!if "$(SHARED)" == "0"
188__deprecatedlib___depname = \
189 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib
190!endif
191
192
193all: $(OBJS)
194$(OBJS):
195 -if not exist $(OBJS) mkdir $(OBJS)
196
197### Targets: ###
198
199all: $(__deprecateddll___depname) $(__deprecatedlib___depname)
200
201$(OBJS)\deprecateddll_dosyacc.obj: ../../src/deprecated\dosyacc.c
202 $(CC) -q -c -P- -o$@ $(DEPRECATEDDLL_CFLAGS) $**
203
204$(OBJS)\deprecateddll_dummy.obj: ../../src/deprecated\..\..\..\src\msw\dummy.cpp
205 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) -H $**
206
207$(OBJS)\deprecateddll_prop.obj: ../../src/deprecated\prop.cpp
208 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
209
210$(OBJS)\deprecateddll_propform.obj: ../../src/deprecated\propform.cpp
211 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
212
213$(OBJS)\deprecateddll_proplist.obj: ../../src/deprecated\proplist.cpp
214 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
215
216$(OBJS)\deprecateddll_resource.obj: ../../src/deprecated\resource.cpp
217 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
218
219$(OBJS)\deprecateddll_treelay.obj: ../../src/deprecated\treelay.cpp
220 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
221
222$(OBJS)\deprecateddll_wxexpr.obj: ../../src/deprecated\wxexpr.cpp
223 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
224
225$(OBJS)\deprecatedlib_dosyacc.obj: ../../src/deprecated\dosyacc.c
226 $(CC) -q -c -P- -o$@ $(DEPRECATEDLIB_CFLAGS) $**
227
228$(OBJS)\deprecatedlib_dummy.obj: ../../src/deprecated\..\..\..\src\msw\dummy.cpp
229 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) -H $**
230
231$(OBJS)\deprecatedlib_prop.obj: ../../src/deprecated\prop.cpp
232 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
233
234$(OBJS)\deprecatedlib_propform.obj: ../../src/deprecated\propform.cpp
235 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
236
237$(OBJS)\deprecatedlib_proplist.obj: ../../src/deprecated\proplist.cpp
238 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
239
240$(OBJS)\deprecatedlib_resource.obj: ../../src/deprecated\resource.cpp
241 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
242
243$(OBJS)\deprecatedlib_treelay.obj: ../../src/deprecated\treelay.cpp
244 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
245
246$(OBJS)\deprecatedlib_wxexpr.obj: ../../src/deprecated\wxexpr.cpp
247 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
248
249clean:
250 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
251 -if exist $(OBJS)\*.res del $(OBJS)\*.res
252 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_bcc$(VENDORTAG).dll
253 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib
254 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib
255
256!if "$(SHARED)" == "1"
257$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_bcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS) $(OBJS)\deprecateddll_dummy.obj
258 ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
2265a2d5 259 c0d32.obj $(DEPRECATEDDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) import32.lib ole2w32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
15e8daec
VS
260|
261 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated $@
262!endif
263
264!if "$(SHARED)" == "0"
265$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib: $(DEPRECATEDLIB_OBJECTS) $(OBJS)\deprecatedlib_dummy.obj
266 if exist $@ del $@
267 tlib /a /p2048 $@ @&&|
268 $(DEPRECATEDLIB_OBJECTS)
269|
270!endif