]> git.saurik.com Git - wxWidgets.git/blame - utils/configtool/src/makefile.bcc
Clipboard usage fixes inspired by Tinderbox logs.
[wxWidgets.git] / utils / configtool / src / makefile.bcc
CommitLineData
4b20974a
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (http://bakefile.sourceforge.net)
4b20974a
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
4b20974a 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
4b20974a
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../../../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
4b20974a
VS
22### Variables: ###
23
4818141b 24WX_RELEASE_NODOT = 26
4b20974a
VS
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
162a956b 27LIBDIRNAME = .\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
4b20974a
VS
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
30WXCONFIGTOOL_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
c33fae85 34 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) \
9bfe7ad9 35 $(CXXFLAGS)
4b20974a
VS
36WXCONFIGTOOL_OBJECTS = \
37 $(OBJS)\wxconfigtool_wxconfigtool.obj \
38 $(OBJS)\wxconfigtool_appsettings.obj \
39 $(OBJS)\wxconfigtool_configitem.obj \
40 $(OBJS)\wxconfigtool_configitemselector.obj \
41 $(OBJS)\wxconfigtool_configtooldoc.obj \
42 $(OBJS)\wxconfigtool_configtoolview.obj \
43 $(OBJS)\wxconfigtool_configtree.obj \
44 $(OBJS)\wxconfigtool_custompropertydialog.obj \
45 $(OBJS)\wxconfigtool_htmlparser.obj \
46 $(OBJS)\wxconfigtool_mainframe.obj \
47 $(OBJS)\wxconfigtool_propeditor.obj \
48 $(OBJS)\wxconfigtool_property.obj \
49 $(OBJS)\wxconfigtool_settingsdialog.obj \
50 $(OBJS)\wxconfigtool_utils.obj
51
52### Conditionally set variables: ###
53
4b20974a
VS
54!if "$(USE_GUI)" == "0"
55PORTNAME = base
56!endif
57!if "$(USE_GUI)" == "1"
58PORTNAME = msw
59!endif
60!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
61WXDEBUGFLAG = d
62!endif
63!if "$(DEBUG_FLAG)" == "1"
64WXDEBUGFLAG = d
65!endif
4b20974a
VS
66!if "$(UNICODE)" == "1"
67WXUNICODEFLAG = u
68!endif
69!if "$(WXUNIV)" == "1"
70WXUNIVNAME = univ
71!endif
4b20974a 72!if "$(SHARED)" == "1"
b17c1746 73WXDLLFLAG = dll
4b20974a 74!endif
162a956b
JS
75!if "$(SHARED)" == "0"
76LIBTYPE_SUFFIX = lib
77!endif
78!if "$(SHARED)" == "1"
79LIBTYPE_SUFFIX = dll
80!endif
dd65d8c8
RN
81!if "$(MONOLITHIC)" == "0"
82EXTRALIBS_FOR_BASE =
83!endif
84!if "$(MONOLITHIC)" == "1"
85EXTRALIBS_FOR_BASE =
86!endif
4b20974a
VS
87!if "$(BUILD)" == "debug"
88__OPTIMIZEFLAG_2 = -Od
89!endif
90!if "$(BUILD)" == "release"
91__OPTIMIZEFLAG_2 = -O2
92!endif
8c9f8f91
JS
93!if "$(USE_THREADS)" == "0"
94__THREADSFLAG_5 =
95!endif
96!if "$(USE_THREADS)" == "1"
97__THREADSFLAG_5 = mt
98!endif
99!if "$(USE_THREADS)" == "0"
100__THREADSFLAG_6 =
101!endif
102!if "$(USE_THREADS)" == "1"
103__THREADSFLAG_6 = -tWM
104!endif
4b20974a 105!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 106__RUNTIME_LIBS_7 = -tWR
4b20974a
VS
107!endif
108!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 109__RUNTIME_LIBS_7 =
4b20974a
VS
110!endif
111!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 112__RUNTIME_LIBS_8 = i
4b20974a
VS
113!endif
114!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 115__RUNTIME_LIBS_8 =
4b20974a 116!endif
b17c1746
DE
117!if "$(WXUNIV)" == "1"
118__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
119!endif
120!if "$(WXUNIV)" == "1"
121__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
122!endif
123!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
124__DEBUG_DEFINE_p = -D__WXDEBUG__
125!endif
126!if "$(DEBUG_FLAG)" == "1"
127__DEBUG_DEFINE_p = -D__WXDEBUG__
128!endif
129!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
130__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
131!endif
132!if "$(DEBUG_FLAG)" == "1"
133__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
134!endif
8c9f8f91
JS
135!if "$(USE_EXCEPTIONS)" == "0"
136__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
137!endif
138!if "$(USE_EXCEPTIONS)" == "0"
139__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
140!endif
141!if "$(USE_RTTI)" == "0"
142__RTTI_DEFINE_p = -DwxNO_RTTI
143!endif
144!if "$(USE_RTTI)" == "0"
145__RTTI_DEFINE_p_1 = -dwxNO_RTTI
146!endif
147!if "$(USE_THREADS)" == "0"
148__THREAD_DEFINE_p = -DwxNO_THREADS
149!endif
150!if "$(USE_THREADS)" == "0"
151__THREAD_DEFINE_p_1 = -dwxNO_THREADS
152!endif
4b20974a 153!if "$(UNICODE)" == "1"
a48abb85 154__UNICODE_DEFINE_p = -D_UNICODE
4b20974a
VS
155!endif
156!if "$(UNICODE)" == "1"
a48abb85 157__UNICODE_DEFINE_p_1 = -d_UNICODE
4b20974a 158!endif
b17c1746
DE
159!if "$(SHARED)" == "1"
160__DLLFLAG_p = -DWXUSINGDLL
161!endif
162!if "$(SHARED)" == "1"
163__DLLFLAG_p_1 = -dWXUSINGDLL
4b20974a
VS
164!endif
165!if "$(MONOLITHIC)" == "0"
166__WXLIB_ADV_p = \
c33fae85 167 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
4b20974a
VS
168!endif
169!if "$(MONOLITHIC)" == "0"
b17c1746 170__WXLIB_HTML_p = \
c33fae85 171 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
4b20974a
VS
172!endif
173!if "$(MONOLITHIC)" == "0"
174__WXLIB_CORE_p = \
c33fae85 175 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
4b20974a
VS
176!endif
177!if "$(MONOLITHIC)" == "0"
c33fae85
RN
178__WXLIB_XML_p = \
179 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
b17c1746
DE
180!endif
181!if "$(MONOLITHIC)" == "0"
c33fae85
RN
182__WXLIB_BASE_p = \
183 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
4b20974a
VS
184!endif
185!if "$(MONOLITHIC)" == "1"
186__WXLIB_MONO_p = \
c33fae85 187 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
4b20974a 188!endif
b17c1746 189!if "$(USE_GUI)" == "1"
9c2d002b 190__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
4b20974a 191!endif
b17c1746 192!if "$(USE_GUI)" == "1"
9c2d002b 193__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
4b20974a 194!endif
b17c1746 195!if "$(USE_GUI)" == "1"
9c2d002b 196__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
197!endif
198!if "$(MSLU)" == "1"
199__UNICOWS_LIB_p = unicows.lib
200!endif
b17c1746
DE
201!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
202__DEBUGINFO = -v
203!endif
204!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
205__DEBUGINFO = -v-
206!endif
207!if "$(DEBUG_INFO)" == "0"
208__DEBUGINFO = -v-
209!endif
210!if "$(DEBUG_INFO)" == "1"
211__DEBUGINFO = -v
4b20974a
VS
212!endif
213
214
215all: $(OBJS)
216$(OBJS):
217 -if not exist $(OBJS) mkdir $(OBJS)
218
219### Targets: ###
220
221all: $(OBJS)\wxconfigtool.exe data
222
b17c1746
DE
223clean:
224 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
225 -if exist $(OBJS)\*.res del $(OBJS)\*.res
162a956b 226 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
b17c1746
DE
227 -if exist $(OBJS)\wxconfigtool.exe del $(OBJS)\wxconfigtool.exe
228 -if exist $(OBJS)\wxconfigtool.tds del $(OBJS)\wxconfigtool.tds
229 -if exist $(OBJS)\wxconfigtool.ilc del $(OBJS)\wxconfigtool.ilc
230 -if exist $(OBJS)\wxconfigtool.ild del $(OBJS)\wxconfigtool.ild
231 -if exist $(OBJS)\wxconfigtool.ilf del $(OBJS)\wxconfigtool.ilf
232 -if exist $(OBJS)\wxconfigtool.ils del $(OBJS)\wxconfigtool.ils
233
234$(OBJS)\wxconfigtool.exe: $(WXCONFIGTOOL_OBJECTS) $(OBJS)\wxconfigtool_sample.res
235 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
8c9f8f91 236 c0w32.obj $(WXCONFIGTOOL_OBJECTS),$@,, $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_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 cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\wxconfigtool_sample.res
b17c1746
DE
237|
238
239data:
240 if not exist $(OBJS) mkdir $(OBJS)
241 for %f in (wxwin250.wxs) do if not exist $(OBJS)\%f copy .\..\configs\%f $(OBJS)
242
243$(OBJS)\wxconfigtool_sample.res: .\..\..\..\samples\sample.rc
8c9f8f91 244 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\..\samples $**
b17c1746
DE
245
246$(OBJS)\wxconfigtool_wxconfigtool.obj: .\wxconfigtool.cpp
247 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
248
4b20974a
VS
249$(OBJS)\wxconfigtool_appsettings.obj: .\appsettings.cpp
250 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
251
252$(OBJS)\wxconfigtool_configitem.obj: .\configitem.cpp
253 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
254
255$(OBJS)\wxconfigtool_configitemselector.obj: .\configitemselector.cpp
256 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
257
258$(OBJS)\wxconfigtool_configtooldoc.obj: .\configtooldoc.cpp
259 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
260
261$(OBJS)\wxconfigtool_configtoolview.obj: .\configtoolview.cpp
262 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
263
264$(OBJS)\wxconfigtool_configtree.obj: .\configtree.cpp
265 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
266
267$(OBJS)\wxconfigtool_custompropertydialog.obj: .\custompropertydialog.cpp
268 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
269
270$(OBJS)\wxconfigtool_htmlparser.obj: .\htmlparser.cpp
271 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
272
273$(OBJS)\wxconfigtool_mainframe.obj: .\mainframe.cpp
274 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
275
276$(OBJS)\wxconfigtool_propeditor.obj: .\propeditor.cpp
277 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
278
279$(OBJS)\wxconfigtool_property.obj: .\property.cpp
280 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
281
4b20974a
VS
282$(OBJS)\wxconfigtool_settingsdialog.obj: .\settingsdialog.cpp
283 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
284
285$(OBJS)\wxconfigtool_utils.obj: .\utils.cpp
286 $(CXX) -q -c -P -o$@ $(WXCONFIGTOOL_CXXFLAGS) $**
162a956b 287