]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/svg/makefile.gcc
fixed Common Headers group for VC++ definition
[wxWidgets.git] / contrib / build / svg / makefile.gcc
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 7include ../../../build/msw/config.gcc
0ca4ab85
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0ca4ab85
VS
15LIBDIRNAME = \
16 ..\..\src\svg\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
0ca4ab85
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
3f55f5b8 19SVGDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
0ca4ab85
VS
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(LIBDIRNAME) \
22 -I..\..\src\svg\..\..\..\src\tiff -I..\..\src\svg\..\..\..\src\jpeg \
23 -I..\..\src\svg\..\..\..\src\png -I..\..\src\svg\..\..\..\src\zlib \
24 -I..\..\src\svg\..\..\..\src\regex -I..\..\src\svg\..\..\..\src\expat\lib \
25 -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG $(CXXFLAGS)
0ca4ab85
VS
26SVGDLL_OBJECTS = \
27 $(OBJS)\svgdll_dummy.o \
28 $(OBJS)\svgdll_dcsvg.o
3f55f5b8 29SVGLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
0ca4ab85
VS
30 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
31 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(LIBDIRNAME) \
32 -I..\..\src\svg\..\..\..\src\tiff -I..\..\src\svg\..\..\..\src\jpeg \
33 -I..\..\src\svg\..\..\..\src\png -I..\..\src\svg\..\..\..\src\zlib \
34 -I..\..\src\svg\..\..\..\src\regex -I..\..\src\svg\..\..\..\src\expat\lib \
35 -I..\..\src\svg\..\..\include $(CXXFLAGS)
0ca4ab85
VS
36SVGLIB_OBJECTS = \
37 $(OBJS)\svglib_dummy.o \
38 $(OBJS)\svglib_dcsvg.o
39
40### Conditionally set variables: ###
41
42ifeq ($(GCC_VERSION),2.95)
43GCCFLAGS = -fvtable-thunks
44endif
45ifeq ($(USE_GUI),0)
46PORTNAME = base
47endif
48ifeq ($(USE_GUI),1)
49PORTNAME = msw
50endif
51ifeq ($(OFFICIAL_BUILD),0)
52VENDORTAG = _$(VENDOR)
53endif
54ifeq ($(OFFICIAL_BUILD),1)
55VENDORTAG =
56endif
57ifeq ($(BUILD),debug)
3f55f5b8
VS
58ifeq ($(DEBUG_FLAG),default)
59WXDEBUGFLAG = d
60endif
61endif
62ifeq ($(DEBUG_FLAG),1)
0ca4ab85
VS
63WXDEBUGFLAG = d
64endif
65ifeq ($(SHARED),1)
66WXDLLFLAG = dll
67endif
68ifeq ($(UNICODE),1)
69WXUNICODEFLAG = u
70endif
71ifeq ($(WXUNIV),1)
72WXUNIVNAME = univ
73endif
74ifeq ($(BUILD),debug)
3f55f5b8
VS
75ifeq ($(DEBUG_INFO),default)
76__DEBUGINFO = -g
77endif
0ca4ab85
VS
78endif
79ifeq ($(BUILD),release)
3f55f5b8
VS
80ifeq ($(DEBUG_INFO),default)
81__DEBUGINFO =
82endif
83endif
84ifeq ($(DEBUG_INFO),0)
85__DEBUGINFO =
86endif
87ifeq ($(DEBUG_INFO),1)
88__DEBUGINFO = -g
0ca4ab85
VS
89endif
90ifeq ($(BUILD),debug)
3f55f5b8
VS
91ifeq ($(DEBUG_FLAG),default)
92__DEBUG_DEFINE_p = -D__WXDEBUG__
93endif
94endif
95ifeq ($(DEBUG_FLAG),1)
0ca4ab85
VS
96__DEBUG_DEFINE_p = -D__WXDEBUG__
97endif
98ifeq ($(USE_GUI),1)
99__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
100endif
101ifeq ($(USE_GUI),1)
102__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
103endif
104ifeq ($(USE_GUI),1)
105__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
106endif
107ifeq ($(BUILD),debug)
108__OPTIMIZEFLAG = -O0
109endif
110ifeq ($(BUILD),release)
111__OPTIMIZEFLAG = -O2
112endif
113ifeq ($(UNICODE),1)
114__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
115endif
116ifeq ($(MONOLITHIC),0)
117__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
118endif
119ifeq ($(MONOLITHIC),0)
120__WXLIB_CORE_p = \
121 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
122endif
123ifeq ($(MONOLITHIC),1)
124__WXLIB_MONO_p = \
125 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
126endif
127ifeq ($(WXUNIV),1)
128__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
129endif
130ifeq ($(SHARED),1)
131__svgdll___depname = \
132 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll
133endif
134ifeq ($(SHARED),0)
135__svglib___depname = \
136 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
137endif
138
fd9f42b6
VS
139MAKEARGS = BUILD=$(BUILD) CFG=$(CFG) CPPFLAGS=$(CPPFLAGS) CXX=$(CXX) CXXFLAGS=$(CXXFLAGS) DEBUG_FLAG=$(DEBUG_FLAG) DEBUG_INFO=$(DEBUG_INFO) GCC_VERSION=$(GCC_VERSION) LDFLAGS=$(LDFLAGS) MONOLITHIC=$(MONOLITHIC) OFFICIAL_BUILD=$(OFFICIAL_BUILD) SHARED=$(SHARED) UNICODE=$(UNICODE) USE_GUI=$(USE_GUI) VENDOR=$(VENDOR) WXUNIV=$(WXUNIV)
140
0ca4ab85
VS
141
142all: $(OBJS)
143$(OBJS):
144 -if not exist $(OBJS) mkdir $(OBJS)
145
146### Targets: ###
147
148all: $(__svgdll___depname) $(__svglib___depname)
149
150$(OBJS)\svgdll_dcsvg.o: ../../src/svg\dcsvg.cpp
151 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
152
153$(OBJS)\svgdll_dummy.o: ../../src/svg\..\..\..\src\msw\dummy.cpp
154 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
155
156$(OBJS)\svglib_dcsvg.o: ../../src/svg\dcsvg.cpp
157 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $<
158
159$(OBJS)\svglib_dummy.o: ../../src/svg\..\..\..\src\msw\dummy.cpp
160 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $<
161
162clean:
163 -if exist $(OBJS)\*.o del $(OBJS)\*.o
164 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll
165 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
166 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
167
168ifeq ($(SHARED),1)
169$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS)
3f55f5b8 170 $(CXX) -shared -o $@ $(SVGDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
0ca4ab85
VS
171endif
172
173ifeq ($(SHARED),0)
174$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a: $(SVGLIB_OBJECTS)
175 if exist $@ del $@
176 ar rcu $@ $(SVGLIB_OBJECTS)
177 ranlib $@
178endif
179
180.PHONY: all clean