]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/svg/makefile.bcc
cleanup: define events correctly, define type-safe event macros, reformatted
[wxWidgets.git] / contrib / build / svg / makefile.bcc
CommitLineData
0ca4ab85
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (http://bakefile.sourceforge.net)
0ca4ab85
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
0ca4ab85 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
0ca4ab85
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
fd9f42b6 16!include ../../../build/msw/config.bcc
0ca4ab85
VS
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
0ca4ab85
VS
22### Variables: ###
23
c33fae85 24WX_RELEASE_NODOT = 25
8c9f8f91 25WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
0ca4ab85
VS
26OBJS = \
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 28LIBDIRNAME = ..\..\src\svg\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
29SETUPHDIR = \
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 31SVGDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
8c9f8f91
JS
32 $(__OPTIMIZEFLAG) $(__THREADSFLAG) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
35 -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) \
9bfe7ad9
VS
36 -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG -Hu \
37 -H=$(OBJS)\wxprec_svgdll.csm $(CPPFLAGS) $(CXXFLAGS)
0ca4ab85
VS
38SVGDLL_OBJECTS = \
39 $(OBJS)\svgdll_dummy.obj \
40 $(OBJS)\svgdll_dcsvg.obj
9bfe7ad9 41SVGLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
8c9f8f91
JS
42 $(__OPTIMIZEFLAG) $(__THREADSFLAG) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
43 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
44 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
45 -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) \
9bfe7ad9
VS
46 -I..\..\src\svg\..\..\include -Hu -H=$(OBJS)\wxprec_svglib.csm $(CPPFLAGS) \
47 $(CXXFLAGS)
0ca4ab85
VS
48SVGLIB_OBJECTS = \
49 $(OBJS)\svglib_dummy.obj \
50 $(OBJS)\svglib_dcsvg.obj
51
52### Conditionally set variables: ###
53
54!if "$(USE_GUI)" == "0"
55PORTNAME = base
56!endif
57!if "$(USE_GUI)" == "1"
58PORTNAME = msw
59!endif
60!if "$(OFFICIAL_BUILD)" == "0"
61VENDORTAG = _$(VENDOR)
62!endif
63!if "$(OFFICIAL_BUILD)" == "1"
64VENDORTAG =
65!endif
3f55f5b8
VS
66!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
67WXDEBUGFLAG = d
68!endif
69!if "$(DEBUG_FLAG)" == "1"
0ca4ab85
VS
70WXDEBUGFLAG = d
71!endif
0ca4ab85
VS
72!if "$(UNICODE)" == "1"
73WXUNICODEFLAG = u
74!endif
75!if "$(WXUNIV)" == "1"
76WXUNIVNAME = univ
77!endif
b17c1746
DE
78!if "$(SHARED)" == "1"
79WXDLLFLAG = dll
0ca4ab85 80!endif
b14abf14
JS
81!if "$(SHARED)" == "0"
82LIBTYPE_SUFFIX = lib
83!endif
84!if "$(SHARED)" == "1"
85LIBTYPE_SUFFIX = dll
86!endif
dd65d8c8
RN
87!if "$(MONOLITHIC)" == "0"
88EXTRALIBS_FOR_BASE =
89!endif
90!if "$(MONOLITHIC)" == "1"
91EXTRALIBS_FOR_BASE =
92!endif
b17c1746
DE
93!if "$(SHARED)" == "1"
94__svgdll___depname = \
c33fae85 95 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).dll
0ca4ab85 96!endif
8c9f8f91
JS
97!if "$(USE_THREADS)" == "0"
98__THREADSFLAG_6 =
99!endif
100!if "$(USE_THREADS)" == "1"
101__THREADSFLAG_6 = mt
102!endif
b17c1746 103!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 104__RUNTIME_LIBS_9 = i
3f55f5b8 105!endif
b17c1746 106!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91
JS
107__RUNTIME_LIBS_9 =
108!endif
109!if "$(WXUNIV)" == "1"
110__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
111!endif
112!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
114!endif
115!if "$(DEBUG_FLAG)" == "1"
116__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
117!endif
118!if "$(USE_EXCEPTIONS)" == "0"
119__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
120!endif
121!if "$(USE_RTTI)" == "0"
122__RTTI_DEFINE_p_1 = -dwxNO_RTTI
123!endif
124!if "$(USE_THREADS)" == "0"
125__THREAD_DEFINE_p_1 = -dwxNO_THREADS
126!endif
127!if "$(UNICODE)" == "1"
128__UNICODE_DEFINE_p_1 = -d_UNICODE
3f55f5b8 129!endif
b17c1746
DE
130!if "$(MONOLITHIC)" == "1"
131__WXLIB_MONO_p = \
c33fae85 132 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
3f55f5b8 133!endif
b17c1746 134!if "$(USE_GUI)" == "1"
9c2d002b 135__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
0ca4ab85
VS
136!endif
137!if "$(USE_GUI)" == "1"
9c2d002b 138__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
0ca4ab85
VS
139!endif
140!if "$(USE_GUI)" == "1"
9c2d002b 141__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
0ca4ab85 142!endif
b17c1746
DE
143!if "$(MSLU)" == "1"
144__UNICOWS_LIB_p = unicows.lib
145!endif
146!if "$(MONOLITHIC)" == "0"
147__WXLIB_CORE_p = \
c33fae85 148 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
b17c1746
DE
149!endif
150!if "$(MONOLITHIC)" == "0"
c33fae85
RN
151__WXLIB_BASE_p = \
152 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
153!endif
154!if "$(SHARED)" == "0"
155__svglib___depname = \
c33fae85 156 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.lib
b17c1746
DE
157!endif
158!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
159__DEBUGINFO = -v
160!endif
161!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
162__DEBUGINFO = -v-
163!endif
164!if "$(DEBUG_INFO)" == "0"
165__DEBUGINFO = -v-
166!endif
167!if "$(DEBUG_INFO)" == "1"
168__DEBUGINFO = -v
0ca4ab85
VS
169!endif
170!if "$(BUILD)" == "debug"
171__OPTIMIZEFLAG = -Od
172!endif
173!if "$(BUILD)" == "release"
174__OPTIMIZEFLAG = -O2
175!endif
8c9f8f91
JS
176!if "$(USE_THREADS)" == "0"
177__THREADSFLAG =
178!endif
179!if "$(USE_THREADS)" == "1"
180__THREADSFLAG = -tWM
181!endif
0ca4ab85
VS
182!if "$(RUNTIME_LIBS)" == "dynamic"
183__RUNTIME_LIBS = -tWR
184!endif
185!if "$(RUNTIME_LIBS)" == "static"
186__RUNTIME_LIBS =
187!endif
b17c1746
DE
188!if "$(WXUNIV)" == "1"
189__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
0ca4ab85 190!endif
b17c1746
DE
191!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
192__DEBUG_DEFINE_p = -D__WXDEBUG__
193!endif
194!if "$(DEBUG_FLAG)" == "1"
195__DEBUG_DEFINE_p = -D__WXDEBUG__
0ca4ab85 196!endif
8c9f8f91
JS
197!if "$(USE_EXCEPTIONS)" == "0"
198__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
199!endif
200!if "$(USE_RTTI)" == "0"
201__RTTI_DEFINE_p = -DwxNO_RTTI
202!endif
203!if "$(USE_THREADS)" == "0"
204__THREAD_DEFINE_p = -DwxNO_THREADS
205!endif
0ca4ab85 206!if "$(UNICODE)" == "1"
ec08d395 207__UNICODE_DEFINE_p = -D_UNICODE
0ca4ab85 208!endif
0ca4ab85
VS
209
210
211all: $(OBJS)
212$(OBJS):
213 -if not exist $(OBJS) mkdir $(OBJS)
214
215### Targets: ###
216
217all: $(__svgdll___depname) $(__svglib___depname)
218
0ca4ab85
VS
219clean:
220 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
221 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 222 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
c33fae85
RN
223 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).dll
224 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).tds
225 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).ilc
226 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).ild
227 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).ilf
228 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).ils
229 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.lib
230 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.lib
0ca4ab85
VS
231
232!if "$(SHARED)" == "1"
8c9f8f91 233$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG).dll: $(OBJS)\svgdll_dummy.obj $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version.res
9bfe7ad9 234 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
8c9f8f91 235 c0d32.obj $(SVGDLL_OBJECTS),$@,, $(__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 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32$(__THREADSFLAG_6)$(__RUNTIME_LIBS_9).lib,, $(OBJS)\svgdll_version.res
0ca4ab85 236|
c33fae85 237 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg $@
0ca4ab85
VS
238!endif
239
240!if "$(SHARED)" == "0"
c33fae85 241$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.lib: $(OBJS)\svglib_dummy.obj $(SVGLIB_OBJECTS)
0ca4ab85 242 if exist $@ del $@
9bfe7ad9 243 tlib /a /p4096 $@ @&&|
0ca4ab85
VS
244 $(SVGLIB_OBJECTS)
245|
246!endif
b17c1746
DE
247
248$(OBJS)\svgdll_dummy.obj: ../../src/svg\..\..\..\src\msw\dummy.cpp
249 $(CXX) -q -c -P -o$@ $(SVGDLL_CXXFLAGS) -H $**
250
8c9f8f91
JS
251$(OBJS)\svgdll_version.res: ../../src/svg\src\msw\version.rc
252 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..\..\src\svg\..\..\..\include -i$(SETUPHDIR) -dWXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_bcc$(VENDORTAG) $**
253
b17c1746
DE
254$(OBJS)\svgdll_dcsvg.obj: ../../src/svg\dcsvg.cpp
255 $(CXX) -q -c -P -o$@ $(SVGDLL_CXXFLAGS) $**
256
257$(OBJS)\svglib_dummy.obj: ../../src/svg\..\..\..\src\msw\dummy.cpp
258 $(CXX) -q -c -P -o$@ $(SVGLIB_CXXFLAGS) -H $**
259
260$(OBJS)\svglib_dcsvg.obj: ../../src/svg\dcsvg.cpp
261 $(CXX) -q -c -P -o$@ $(SVGLIB_CXXFLAGS) $**
b14abf14 262