]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/svg/makefile.bcc
added wxAdvanced
[wxWidgets.git] / contrib / build / svg / makefile.bcc
CommitLineData
0ca4ab85
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
11!include ../../../build/config.bcc
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
23LIBDIRNAME = \
24 ..\..\src\svg\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
3f55f5b8 27SVGDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
0ca4ab85
VS
28 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
29 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(LIBDIRNAME) \
30 -I..\..\src\svg\..\..\..\src\tiff -I..\..\src\svg\..\..\..\src\jpeg \
31 -I..\..\src\svg\..\..\..\src\png -I..\..\src\svg\..\..\..\src\zlib \
32 -I..\..\src\svg\..\..\..\src\regex -I..\..\src\svg\..\..\..\src\expat\lib \
33 -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG $(CXXFLAGS) -Hu \
34 -H=$(OBJS)\wxprec_svgdll.csm
35SVGDLL_OBJECTS = \
36 $(OBJS)\svgdll_dummy.obj \
37 $(OBJS)\svgdll_dcsvg.obj
3f55f5b8 38SVGLIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
0ca4ab85
VS
39 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
40 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(LIBDIRNAME) \
41 -I..\..\src\svg\..\..\..\src\tiff -I..\..\src\svg\..\..\..\src\jpeg \
42 -I..\..\src\svg\..\..\..\src\png -I..\..\src\svg\..\..\..\src\zlib \
43 -I..\..\src\svg\..\..\..\src\regex -I..\..\src\svg\..\..\..\src\expat\lib \
44 -I..\..\src\svg\..\..\include $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_svglib.csm
45SVGLIB_OBJECTS = \
46 $(OBJS)\svglib_dummy.obj \
47 $(OBJS)\svglib_dcsvg.obj
48
49### Conditionally set variables: ###
50
51!if "$(USE_GUI)" == "0"
52PORTNAME = base
53!endif
54!if "$(USE_GUI)" == "1"
55PORTNAME = msw
56!endif
57!if "$(OFFICIAL_BUILD)" == "0"
58VENDORTAG = _$(VENDOR)
59!endif
60!if "$(OFFICIAL_BUILD)" == "1"
61VENDORTAG =
62!endif
3f55f5b8
VS
63!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
64WXDEBUGFLAG = d
65!endif
66!if "$(DEBUG_FLAG)" == "1"
0ca4ab85
VS
67WXDEBUGFLAG = d
68!endif
69!if "$(SHARED)" == "1"
70WXDLLFLAG = dll
71!endif
72!if "$(UNICODE)" == "1"
73WXUNICODEFLAG = u
74!endif
75!if "$(WXUNIV)" == "1"
76WXUNIVNAME = univ
77!endif
3f55f5b8
VS
78!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
79__DEBUGINFO = -v
0ca4ab85 80!endif
3f55f5b8
VS
81!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
82__DEBUGINFO = -v-
0ca4ab85 83!endif
3f55f5b8
VS
84!if "$(DEBUG_INFO)" == "0"
85__DEBUGINFO = -v-
86!endif
87!if "$(DEBUG_INFO)" == "1"
88__DEBUGINFO = -v
89!endif
90!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
91__DEBUG_DEFINE_p = -D__WXDEBUG__
92!endif
93!if "$(DEBUG_FLAG)" == "1"
0ca4ab85
VS
94__DEBUG_DEFINE_p = -D__WXDEBUG__
95!endif
96!if "$(USE_GUI)" == "1"
97__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
98!endif
99!if "$(USE_GUI)" == "1"
100__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
101!endif
102!if "$(USE_GUI)" == "1"
103__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
104!endif
105!if "$(BUILD)" == "debug"
106__OPTIMIZEFLAG = -Od
107!endif
108!if "$(BUILD)" == "release"
109__OPTIMIZEFLAG = -O2
110!endif
111!if "$(RUNTIME_LIBS)" == "dynamic"
112__RUNTIME_LIBS = -tWR
113!endif
114!if "$(RUNTIME_LIBS)" == "static"
115__RUNTIME_LIBS =
116!endif
117!if "$(RUNTIME_LIBS)" == "dynamic"
118__RUNTIME_LIBS_7 = i
119!endif
120!if "$(RUNTIME_LIBS)" == "static"
121__RUNTIME_LIBS_7 =
122!endif
123!if "$(UNICODE)" == "1"
124__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
125!endif
126!if "$(MONOLITHIC)" == "0"
127__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
128!endif
129!if "$(MONOLITHIC)" == "0"
130__WXLIB_CORE_p = \
131 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
132!endif
133!if "$(MONOLITHIC)" == "1"
134__WXLIB_MONO_p = \
135 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
136!endif
137!if "$(WXUNIV)" == "1"
138__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
139!endif
140!if "$(SHARED)" == "1"
141__svgdll___depname = \
142 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll
143!endif
144!if "$(SHARED)" == "0"
145__svglib___depname = \
146 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib
147!endif
148
149
150all: $(OBJS)
151$(OBJS):
152 -if not exist $(OBJS) mkdir $(OBJS)
153
154### Targets: ###
155
156all: $(__svgdll___depname) $(__svglib___depname)
157
158$(OBJS)\svgdll_dcsvg.obj: ../../src/svg\dcsvg.cpp
159 $(CXX) -q -c -P -o$@ $(SVGDLL_CXXFLAGS) $**
160
161$(OBJS)\svgdll_dummy.obj: ../../src/svg\..\..\..\src\msw\dummy.cpp
162 $(CXX) -q -c -P -o$@ $(SVGDLL_CXXFLAGS) -H $**
163
164$(OBJS)\svglib_dcsvg.obj: ../../src/svg\dcsvg.cpp
165 $(CXX) -q -c -P -o$@ $(SVGLIB_CXXFLAGS) $**
166
167$(OBJS)\svglib_dummy.obj: ../../src/svg\..\..\..\src\msw\dummy.cpp
168 $(CXX) -q -c -P -o$@ $(SVGLIB_CXXFLAGS) -H $**
169
170clean:
171 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
172 -if exist $(OBJS)\*.res del $(OBJS)\*.res
173 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll
174 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib
175 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib
176
177!if "$(SHARED)" == "1"
178$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_dummy.obj
3f55f5b8 179 ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
0ca4ab85
VS
180 c0d32.obj $(SVGDLL_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) cw32mt$(__RUNTIME_LIBS_7).lib,,
181|
182 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg $@
183!endif
184
185!if "$(SHARED)" == "0"
186$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib: $(SVGLIB_OBJECTS) $(OBJS)\svglib_dummy.obj
187 if exist $@ del $@
188 tlib /a /p2048 $@ @&&|
189 $(SVGLIB_OBJECTS)
190|
191!endif