]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/svg/makefile.vc
expat must be added to the template, not generated wxWindows.dsp
[wxWidgets.git] / contrib / build / svg / makefile.vc
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
fd9f42b6 7!include <../../../build/msw/config.vc>
0ca4ab85
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15LIBDIRNAME = \
16 ..\..\src\svg\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17OBJS = \
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
3f55f5b8
VS
19SVGDLL_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
20 $(__DEBUGINFO_2) \
0ca4ab85 21 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_vc$(VENDORTAG).pdb \
3f55f5b8
VS
22 $(____DEBUGRUNTIME_2_p) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I..\..\src\svg\..\..\..\include \
24 /I$(LIBDIRNAME) /I..\..\src\svg\..\..\..\src\tiff \
25 /I..\..\src\svg\..\..\..\src\jpeg /I..\..\src\svg\..\..\..\src\png \
26 /I..\..\src\svg\..\..\..\src\zlib /I..\..\src\svg\..\..\..\src\regex \
27 /I..\..\src\svg\..\..\..\src\expat\lib /I..\..\src\svg\..\..\include \
28 /DWXUSINGDLL /DWXMAKINGDLL_SVG $(CXXFLAGS) /Yu"wx/wxprec.h" \
29 /Fp"$(OBJS)\wxprec_svgdll.pch"
0ca4ab85
VS
30SVGDLL_OBJECTS = \
31 $(OBJS)\svgdll_dummy.obj \
32 $(OBJS)\svgdll_dcsvg.obj
3f55f5b8
VS
33SVGLIB_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_12) /DWIN32 \
34 $(__DEBUGINFO_2) \
0ca4ab85 35 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.pdb \
3f55f5b8
VS
36 $(____DEBUGRUNTIME_11_p) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
37 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I..\..\src\svg\..\..\..\include \
38 /I$(LIBDIRNAME) /I..\..\src\svg\..\..\..\src\tiff \
39 /I..\..\src\svg\..\..\..\src\jpeg /I..\..\src\svg\..\..\..\src\png \
40 /I..\..\src\svg\..\..\..\src\zlib /I..\..\src\svg\..\..\..\src\regex \
41 /I..\..\src\svg\..\..\..\src\expat\lib /I..\..\src\svg\..\..\include \
42 $(CXXFLAGS) /Yu"wx/wxprec.h" /Fp"$(OBJS)\wxprec_svglib.pch"
0ca4ab85
VS
43SVGLIB_OBJECTS = \
44 $(OBJS)\svglib_dummy.obj \
45 $(OBJS)\svglib_dcsvg.obj
46
47### Conditionally set variables: ###
48
49!if "$(USE_GUI)" == "0"
50PORTNAME = base
51!endif
52!if "$(USE_GUI)" == "1"
53PORTNAME = msw
54!endif
55!if "$(OFFICIAL_BUILD)" == "0"
56VENDORTAG = _$(VENDOR)
57!endif
58!if "$(OFFICIAL_BUILD)" == "1"
59VENDORTAG =
60!endif
3f55f5b8
VS
61!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
62WXDEBUGFLAG = d
63!endif
64!if "$(DEBUG_FLAG)" == "1"
0ca4ab85
VS
65WXDEBUGFLAG = d
66!endif
67!if "$(SHARED)" == "1"
68WXDLLFLAG = dll
69!endif
70!if "$(UNICODE)" == "1"
71WXUNICODEFLAG = u
72!endif
73!if "$(WXUNIV)" == "1"
74WXUNIVNAME = univ
75!endif
3f55f5b8
VS
76!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
77__DEBUGINFO = d
0ca4ab85 78!endif
3f55f5b8
VS
79!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
80__DEBUGINFO =
0ca4ab85 81!endif
3f55f5b8
VS
82!if "$(DEBUG_INFO)" == "0"
83__DEBUGINFO =
0ca4ab85 84!endif
3f55f5b8
VS
85!if "$(DEBUG_INFO)" == "1"
86__DEBUGINFO = d
0ca4ab85 87!endif
3f55f5b8
VS
88!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
89__DEBUGINFO_1 = /DEBUG
0ca4ab85 90!endif
3f55f5b8
VS
91!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
92__DEBUGINFO_1 =
0ca4ab85 93!endif
3f55f5b8
VS
94!if "$(DEBUG_INFO)" == "0"
95__DEBUGINFO_1 =
96!endif
97!if "$(DEBUG_INFO)" == "1"
98__DEBUGINFO_1 = /DEBUG
99!endif
100!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
101__DEBUGINFO_2 = /Zi
102!endif
103!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
104__DEBUGINFO_2 =
105!endif
106!if "$(DEBUG_INFO)" == "0"
107__DEBUGINFO_2 =
108!endif
109!if "$(DEBUG_INFO)" == "1"
110__DEBUGINFO_2 = /Zi
111!endif
112!if "$(DEBUG_RUNTIME_LIBS)" == "0"
113__DEBUGRUNTIME_12 =
114!endif
115!if "$(DEBUG_RUNTIME_LIBS)" == "1"
116__DEBUGRUNTIME_12 = d
117!endif
118!if "$(DEBUG_RUNTIME_LIBS)" == "default"
119__DEBUGRUNTIME_12 = $(__DEBUGINFO)
120!endif
121!if "$(DEBUG_RUNTIME_LIBS)" == "0"
122__DEBUGRUNTIME_3 =
123!endif
124!if "$(DEBUG_RUNTIME_LIBS)" == "1"
125__DEBUGRUNTIME_3 = d
126!endif
127!if "$(DEBUG_RUNTIME_LIBS)" == "default"
128__DEBUGRUNTIME_3 = $(__DEBUGINFO)
129!endif
130!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
131__DEBUG_DEFINE_p = /D__WXDEBUG__
132!endif
133!if "$(DEBUG_FLAG)" == "1"
0ca4ab85
VS
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 = D
153!endif
154!if "$(RUNTIME_LIBS)" == "static"
155__RUNTIME_LIBS = T
156!endif
157!if "$(UNICODE)" == "1"
158__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
159!endif
2265a2d5
VS
160!if "$(MSLU)" == "1"
161__UNICOWS_LIB_p = unicows.lib
162!endif
0ca4ab85
VS
163!if "$(MONOLITHIC)" == "0"
164__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
165!endif
166!if "$(MONOLITHIC)" == "0"
167__WXLIB_CORE_p = \
168 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
169!endif
170!if "$(MONOLITHIC)" == "1"
171__WXLIB_MONO_p = \
172 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
173!endif
174!if "$(WXUNIV)" == "1"
175__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
176!endif
3f55f5b8
VS
177!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
178____DEBUGINFO = /D_DEBUG
0ca4ab85 179!endif
3f55f5b8 180!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
e2d1c567 181____DEBUGINFO =
3f55f5b8
VS
182!endif
183!if "$(DEBUG_INFO)" == "0"
e2d1c567 184____DEBUGINFO =
3f55f5b8
VS
185!endif
186!if "$(DEBUG_INFO)" == "1"
187____DEBUGINFO = /D_DEBUG
188!endif
189!if "$(DEBUG_RUNTIME_LIBS)" == "0"
e2d1c567 190____DEBUGRUNTIME_11_p =
3f55f5b8
VS
191!endif
192!if "$(DEBUG_RUNTIME_LIBS)" == "1"
193____DEBUGRUNTIME_11_p = /D_DEBUG
194!endif
195!if "$(DEBUG_RUNTIME_LIBS)" == "default"
196____DEBUGRUNTIME_11_p = $(____DEBUGINFO)
197!endif
198!if "$(DEBUG_RUNTIME_LIBS)" == "0"
e2d1c567 199____DEBUGRUNTIME_2_p =
3f55f5b8
VS
200!endif
201!if "$(DEBUG_RUNTIME_LIBS)" == "1"
202____DEBUGRUNTIME_2_p = /D_DEBUG
203!endif
204!if "$(DEBUG_RUNTIME_LIBS)" == "default"
205____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
0ca4ab85
VS
206!endif
207!if "$(SHARED)" == "1"
208__svgdll___depname = \
209 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_vc$(VENDORTAG).dll
210!endif
211!if "$(SHARED)" == "0"
212__svglib___depname = \
213 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib
214!endif
215
216
217all: $(OBJS)
218$(OBJS):
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221### Targets: ###
222
223all: $(__svgdll___depname) $(__svglib___depname)
224
225$(OBJS)\svgdll_dcsvg.obj: ../../src/svg\dcsvg.cpp
226 $(CXX) /c /nologo /TP /Fo$@ $(SVGDLL_CXXFLAGS) $**
227
228$(OBJS)\svgdll_dummy.obj: ../../src/svg\..\..\..\src\msw\dummy.cpp
229 $(CXX) /c /nologo /TP /Fo$@ $(SVGDLL_CXXFLAGS) /Ycwx/wxprec.h $**
230
231$(OBJS)\svglib_dcsvg.obj: ../../src/svg\dcsvg.cpp
232 $(CXX) /c /nologo /TP /Fo$@ $(SVGLIB_CXXFLAGS) $**
233
234$(OBJS)\svglib_dummy.obj: ../../src/svg\..\..\..\src\msw\dummy.cpp
235 $(CXX) /c /nologo /TP /Fo$@ $(SVGLIB_CXXFLAGS) /Ycwx/wxprec.h $**
236
237clean:
238 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
239 -if exist $(OBJS)\*.res del $(OBJS)\*.res
240 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_vc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_vc$(VENDORTAG).dll
241 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib
242 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib
243
244!if "$(SHARED)" == "1"
245$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_vc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_dummy.obj
3f55f5b8 246 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
2265a2d5 247 $(SVGDLL_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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) /IMPLIB:$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib
0ca4ab85
VS
248<<
249!endif
250
251!if "$(SHARED)" == "0"
252$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib: $(SVGLIB_OBJECTS) $(OBJS)\svglib_dummy.obj
253 if exist $@ del $@
254 lib /NOLOGO /OUT:$@ @<<
255 $(SVGLIB_OBJECTS)
256<<
257!endif