]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/gizmos/makefile.bcc
Updates to MIME-types and wxFileDialog code for better
[wxWidgets.git] / contrib / build / gizmos / makefile.bcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
b17c1746 3# Bakefile 0.1.2 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
250700e4 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
250700e4
RD
13BCCDIR = $(MAKEDIR)\..
14!endif
15
fd9f42b6 16!include ../../../build/msw/config.bcc
250700e4
RD
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
250700e4
RD
22### Variables: ###
23
b17c1746
DE
24OBJS = \
25 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26SETUPHDIR = \
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
28GIZMOSDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
29 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
31 -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS -Hu \
32 -H=$(OBJS)\wxprec_gizmosdll.csm $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
33GIZMOSDLL_OBJECTS = \
34 $(OBJS)\gizmosdll_dummy.obj \
35 $(OBJS)\gizmosdll_dynamicsash.obj \
36 $(OBJS)\gizmosdll_editlbox.obj \
37 $(OBJS)\gizmosdll_ledctrl.obj \
38 $(OBJS)\gizmosdll_multicell.obj \
39 $(OBJS)\gizmosdll_splittree.obj \
40 $(OBJS)\gizmosdll_statpict.obj
9bfe7ad9
VS
41GIZMOSLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
42 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
43 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
44 -I..\..\src\gizmos\..\..\include -Hu -H=$(OBJS)\wxprec_gizmoslib.csm \
45 $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
46GIZMOSLIB_OBJECTS = \
47 $(OBJS)\gizmoslib_dummy.obj \
48 $(OBJS)\gizmoslib_dynamicsash.obj \
49 $(OBJS)\gizmoslib_editlbox.obj \
50 $(OBJS)\gizmoslib_ledctrl.obj \
51 $(OBJS)\gizmoslib_multicell.obj \
52 $(OBJS)\gizmoslib_splittree.obj \
53 $(OBJS)\gizmoslib_statpict.obj
250700e4
RD
54
55### Conditionally set variables: ###
56
57!if "$(USE_GUI)" == "0"
58PORTNAME = base
59!endif
60!if "$(USE_GUI)" == "1"
61PORTNAME = msw
62!endif
63!if "$(OFFICIAL_BUILD)" == "0"
64VENDORTAG = _$(VENDOR)
65!endif
66!if "$(OFFICIAL_BUILD)" == "1"
67VENDORTAG =
68!endif
3f55f5b8
VS
69!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
70WXDEBUGFLAG = d
71!endif
72!if "$(DEBUG_FLAG)" == "1"
250700e4
RD
73WXDEBUGFLAG = d
74!endif
250700e4
RD
75!if "$(UNICODE)" == "1"
76WXUNICODEFLAG = u
77!endif
78!if "$(WXUNIV)" == "1"
79WXUNIVNAME = univ
80!endif
b17c1746
DE
81!if "$(SHARED)" == "1"
82WXDLLFLAG = dll
250700e4 83!endif
b17c1746
DE
84!if "$(SHARED)" == "1"
85__gizmosdll___depname = \
86 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll
250700e4 87!endif
b17c1746
DE
88!if "$(RUNTIME_LIBS)" == "dynamic"
89__RUNTIME_LIBS_7 = i
3f55f5b8 90!endif
b17c1746
DE
91!if "$(RUNTIME_LIBS)" == "static"
92__RUNTIME_LIBS_7 =
3f55f5b8 93!endif
b17c1746
DE
94!if "$(MONOLITHIC)" == "1"
95__WXLIB_MONO_p = \
96 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
250700e4 97!endif
b17c1746
DE
98!if "$(USE_GUI)" == "1"
99__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
3f55f5b8
VS
100!endif
101!if "$(USE_GUI)" == "1"
102__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
103!endif
104!if "$(USE_GUI)" == "1"
105__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
106!endif
b17c1746
DE
107!if "$(MSLU)" == "1"
108__UNICOWS_LIB_p = unicows.lib
109!endif
110!if "$(MONOLITHIC)" == "0"
111__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
112!endif
113!if "$(MONOLITHIC)" == "0"
114__WXLIB_CORE_p = \
115 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
116!endif
117!if "$(SHARED)" == "0"
118__gizmoslib___depname = \
119 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
120!endif
121!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
122__DEBUGINFO = -v
123!endif
124!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
125__DEBUGINFO = -v-
126!endif
127!if "$(DEBUG_INFO)" == "0"
128__DEBUGINFO = -v-
129!endif
130!if "$(DEBUG_INFO)" == "1"
131__DEBUGINFO = -v
3f55f5b8 132!endif
250700e4
RD
133!if "$(BUILD)" == "debug"
134__OPTIMIZEFLAG = -Od
135!endif
136!if "$(BUILD)" == "release"
137__OPTIMIZEFLAG = -O2
138!endif
139!if "$(RUNTIME_LIBS)" == "dynamic"
140__RUNTIME_LIBS = -tWR
141!endif
142!if "$(RUNTIME_LIBS)" == "static"
143__RUNTIME_LIBS =
144!endif
b17c1746
DE
145!if "$(WXUNIV)" == "1"
146__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
250700e4 147!endif
b17c1746
DE
148!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
149__DEBUG_DEFINE_p = -D__WXDEBUG__
150!endif
151!if "$(DEBUG_FLAG)" == "1"
152__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4
RD
153!endif
154!if "$(UNICODE)" == "1"
ec08d395 155__UNICODE_DEFINE_p = -D_UNICODE
250700e4 156!endif
b17c1746
DE
157!if "$(SHARED)" == "0"
158LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\bcc_lib$(CFG)
250700e4
RD
159!endif
160!if "$(SHARED)" == "1"
b17c1746 161LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\bcc_dll$(CFG)
250700e4
RD
162!endif
163
164
165all: $(OBJS)
166$(OBJS):
167 -if not exist $(OBJS) mkdir $(OBJS)
168
169### Targets: ###
170
171all: $(__gizmosdll___depname) $(__gizmoslib___depname)
172
b17c1746
DE
173clean:
174 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
175 -if exist $(OBJS)\*.res del $(OBJS)\*.res
176 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll
177 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).tds
178 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).ilc
179 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).ild
180 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).ilf
181 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).ils
182 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
183 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
184
185!if "$(SHARED)" == "1"
186$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll: $(OBJS)\gizmosdll_dummy.obj $(GIZMOSDLL_OBJECTS)
187 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
b92ca05a 188 c0d32.obj $(GIZMOSDLL_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) ole2w32.lib oleacc.lib odbc32.lib $(__WXLIB_BASE_p) $(__WXLIB_CORE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
b17c1746
DE
189|
190 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos $@
191!endif
192
193!if "$(SHARED)" == "0"
194$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib: $(OBJS)\gizmoslib_dummy.obj $(GIZMOSLIB_OBJECTS)
195 if exist $@ del $@
196 tlib /a /p4096 $@ @&&|
197 $(GIZMOSLIB_OBJECTS)
198|
199!endif
200
250700e4
RD
201$(OBJS)\gizmosdll_dummy.obj: ../../src/gizmos\..\..\..\src\msw\dummy.cpp
202 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) -H $**
203
204$(OBJS)\gizmosdll_dynamicsash.obj: ../../src/gizmos\dynamicsash.cpp
205 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
206
207$(OBJS)\gizmosdll_editlbox.obj: ../../src/gizmos\editlbox.cpp
208 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
209
210$(OBJS)\gizmosdll_ledctrl.obj: ../../src/gizmos\ledctrl.cpp
211 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
212
213$(OBJS)\gizmosdll_multicell.obj: ../../src/gizmos\multicell.cpp
214 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
215
216$(OBJS)\gizmosdll_splittree.obj: ../../src/gizmos\splittree.cpp
217 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
218
219$(OBJS)\gizmosdll_statpict.obj: ../../src/gizmos\statpict.cpp
220 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
221
222$(OBJS)\gizmoslib_dummy.obj: ../../src/gizmos\..\..\..\src\msw\dummy.cpp
223 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) -H $**
224
225$(OBJS)\gizmoslib_dynamicsash.obj: ../../src/gizmos\dynamicsash.cpp
226 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
227
228$(OBJS)\gizmoslib_editlbox.obj: ../../src/gizmos\editlbox.cpp
229 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
230
231$(OBJS)\gizmoslib_ledctrl.obj: ../../src/gizmos\ledctrl.cpp
232 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
233
234$(OBJS)\gizmoslib_multicell.obj: ../../src/gizmos\multicell.cpp
235 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
236
237$(OBJS)\gizmoslib_splittree.obj: ../../src/gizmos\splittree.cpp
238 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
239
240$(OBJS)\gizmoslib_statpict.obj: ../../src/gizmos\statpict.cpp
241 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**