]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/deprecated/makefile.bcc
fixed Common Headers group for VC++ definition
[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
166!if "$(MONOLITHIC)" == "0"
167__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
168!endif
169!if "$(MONOLITHIC)" == "0"
170__WXLIB_CORE_p = \
171 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
172!endif
173!if "$(MONOLITHIC)" == "1"
174__WXLIB_MONO_p = \
175 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
176!endif
177!if "$(WXUNIV)" == "1"
178__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
179!endif
180!if "$(SHARED)" == "1"
181__deprecateddll___depname = \
182 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_bcc$(VENDORTAG).dll
183!endif
184!if "$(SHARED)" == "0"
185__deprecatedlib___depname = \
186 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib
187!endif
188
fd9f42b6
VS
189MAKEARGS = -DBUILD=$(BUILD) -DCC=$(CC) -DCFG=$(CFG) -DCFLAGS=$(CFLAGS) -DCPPFLAGS=$(CPPFLAGS) -DCXX=$(CXX) -DCXXFLAGS=$(CXXFLAGS) -DDEBUG_FLAG=$(DEBUG_FLAG) -DDEBUG_INFO=$(DEBUG_INFO) -DLDFLAGS=$(LDFLAGS) -DMONOLITHIC=$(MONOLITHIC) -DOFFICIAL_BUILD=$(OFFICIAL_BUILD) -DRUNTIME_LIBS=$(RUNTIME_LIBS) -DSHARED=$(SHARED) -DUNICODE=$(UNICODE) -DUSE_GUI=$(USE_GUI) -DVENDOR=$(VENDOR) -DWXUNIV=$(WXUNIV)
190
15e8daec
VS
191
192all: $(OBJS)
193$(OBJS):
194 -if not exist $(OBJS) mkdir $(OBJS)
195
196### Targets: ###
197
198all: $(__deprecateddll___depname) $(__deprecatedlib___depname)
199
200$(OBJS)\deprecateddll_dosyacc.obj: ../../src/deprecated\dosyacc.c
201 $(CC) -q -c -P- -o$@ $(DEPRECATEDDLL_CFLAGS) $**
202
203$(OBJS)\deprecateddll_dummy.obj: ../../src/deprecated\..\..\..\src\msw\dummy.cpp
204 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) -H $**
205
206$(OBJS)\deprecateddll_prop.obj: ../../src/deprecated\prop.cpp
207 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
208
209$(OBJS)\deprecateddll_propform.obj: ../../src/deprecated\propform.cpp
210 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
211
212$(OBJS)\deprecateddll_proplist.obj: ../../src/deprecated\proplist.cpp
213 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
214
215$(OBJS)\deprecateddll_resource.obj: ../../src/deprecated\resource.cpp
216 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
217
218$(OBJS)\deprecateddll_treelay.obj: ../../src/deprecated\treelay.cpp
219 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
220
221$(OBJS)\deprecateddll_wxexpr.obj: ../../src/deprecated\wxexpr.cpp
222 $(CXX) -q -c -P -o$@ $(DEPRECATEDDLL_CXXFLAGS) $**
223
224$(OBJS)\deprecatedlib_dosyacc.obj: ../../src/deprecated\dosyacc.c
225 $(CC) -q -c -P- -o$@ $(DEPRECATEDLIB_CFLAGS) $**
226
227$(OBJS)\deprecatedlib_dummy.obj: ../../src/deprecated\..\..\..\src\msw\dummy.cpp
228 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) -H $**
229
230$(OBJS)\deprecatedlib_prop.obj: ../../src/deprecated\prop.cpp
231 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
232
233$(OBJS)\deprecatedlib_propform.obj: ../../src/deprecated\propform.cpp
234 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
235
236$(OBJS)\deprecatedlib_proplist.obj: ../../src/deprecated\proplist.cpp
237 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
238
239$(OBJS)\deprecatedlib_resource.obj: ../../src/deprecated\resource.cpp
240 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
241
242$(OBJS)\deprecatedlib_treelay.obj: ../../src/deprecated\treelay.cpp
243 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
244
245$(OBJS)\deprecatedlib_wxexpr.obj: ../../src/deprecated\wxexpr.cpp
246 $(CXX) -q -c -P -o$@ $(DEPRECATEDLIB_CXXFLAGS) $**
247
248clean:
249 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
250 -if exist $(OBJS)\*.res del $(OBJS)\*.res
251 -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
252 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib
253 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib
254
255!if "$(SHARED)" == "1"
256$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_bcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS) $(OBJS)\deprecateddll_dummy.obj
257 ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
258 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 import32.lib ole2w32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
259|
260 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated $@
261!endif
262
263!if "$(SHARED)" == "0"
264$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib: $(DEPRECATEDLIB_OBJECTS) $(OBJS)\deprecatedlib_dummy.obj
265 if exist $@ del $@
266 tlib /a /p2048 $@ @&&|
267 $(DEPRECATEDLIB_OBJECTS)
268|
269!endif