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