]>
Commit | Line | Data |
---|---|---|
1 | # ========================================================================= | |
2 | # This makefile was generated by | |
3 | # Bakefile 0.1.4 (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 = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ | |
20 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
21 | -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) -Wall \ | |
22 | -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG \ | |
23 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) | |
24 | SVGDLL_OBJECTS = \ | |
25 | $(OBJS)\svgdll_dummy.o \ | |
26 | $(OBJS)\svgdll_dcsvg.o | |
27 | SVGLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ | |
28 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
29 | -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) -Wall \ | |
30 | -I..\..\src\svg\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \ | |
31 | $(CPPFLAGS) $(CXXFLAGS) | |
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 ($(USE_GUI),0) | |
42 | PORTNAME = base | |
43 | endif | |
44 | ifeq ($(USE_GUI),1) | |
45 | PORTNAME = msw | |
46 | endif | |
47 | ifeq ($(OFFICIAL_BUILD),0) | |
48 | VENDORTAG = _$(VENDOR) | |
49 | endif | |
50 | ifeq ($(OFFICIAL_BUILD),1) | |
51 | VENDORTAG = | |
52 | endif | |
53 | ifeq ($(BUILD),debug) | |
54 | ifeq ($(DEBUG_FLAG),default) | |
55 | WXDEBUGFLAG = d | |
56 | endif | |
57 | endif | |
58 | ifeq ($(DEBUG_FLAG),1) | |
59 | WXDEBUGFLAG = d | |
60 | endif | |
61 | ifeq ($(UNICODE),1) | |
62 | WXUNICODEFLAG = u | |
63 | endif | |
64 | ifeq ($(WXUNIV),1) | |
65 | WXUNIVNAME = univ | |
66 | endif | |
67 | ifeq ($(SHARED),1) | |
68 | WXDLLFLAG = dll | |
69 | endif | |
70 | ifeq ($(SHARED),1) | |
71 | __svgdll___depname = \ | |
72 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll | |
73 | endif | |
74 | ifeq ($(MONOLITHIC),1) | |
75 | __WXLIB_MONO_p = \ | |
76 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
77 | endif | |
78 | ifeq ($(USE_GUI),1) | |
79 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
80 | endif | |
81 | ifeq ($(USE_GUI),1) | |
82 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
83 | endif | |
84 | ifeq ($(USE_GUI),1) | |
85 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
86 | endif | |
87 | ifeq ($(MSLU),1) | |
88 | __UNICOWS_LIB_p = -lunicows | |
89 | endif | |
90 | ifeq ($(MONOLITHIC),0) | |
91 | __WXLIB_CORE_p = \ | |
92 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
93 | endif | |
94 | ifeq ($(MONOLITHIC),0) | |
95 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
96 | endif | |
97 | ifeq ($(SHARED),0) | |
98 | __svglib___depname = \ | |
99 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a | |
100 | endif | |
101 | ifeq ($(BUILD),debug) | |
102 | ifeq ($(DEBUG_INFO),default) | |
103 | __DEBUGINFO = -g | |
104 | endif | |
105 | endif | |
106 | ifeq ($(BUILD),release) | |
107 | ifeq ($(DEBUG_INFO),default) | |
108 | __DEBUGINFO = | |
109 | endif | |
110 | endif | |
111 | ifeq ($(DEBUG_INFO),0) | |
112 | __DEBUGINFO = | |
113 | endif | |
114 | ifeq ($(DEBUG_INFO),1) | |
115 | __DEBUGINFO = -g | |
116 | endif | |
117 | ifeq ($(BUILD),debug) | |
118 | __OPTIMIZEFLAG = -O0 | |
119 | endif | |
120 | ifeq ($(BUILD),release) | |
121 | __OPTIMIZEFLAG = -O2 | |
122 | endif | |
123 | ifeq ($(USE_EXCEPTIONS),0) | |
124 | __EXCEPTIONSFLAG = -fno-rtti | |
125 | endif | |
126 | ifeq ($(USE_EXCEPTIONS),1) | |
127 | __EXCEPTIONSFLAG = | |
128 | endif | |
129 | ifeq ($(USE_EXCEPTIONS),0) | |
130 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
131 | endif | |
132 | ifeq ($(USE_EXCEPTIONS),1) | |
133 | __EXCEPTIONSFLAG_0 = | |
134 | endif | |
135 | ifeq ($(WXUNIV),1) | |
136 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
137 | endif | |
138 | ifeq ($(BUILD),debug) | |
139 | ifeq ($(DEBUG_FLAG),default) | |
140 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
141 | endif | |
142 | endif | |
143 | ifeq ($(DEBUG_FLAG),1) | |
144 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
145 | endif | |
146 | ifeq ($(UNICODE),1) | |
147 | __UNICODE_DEFINE_p = -D_UNICODE | |
148 | endif | |
149 | ifeq ($(SHARED),0) | |
150 | LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_lib$(CFG) | |
151 | endif | |
152 | ifeq ($(SHARED),1) | |
153 | LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_dll$(CFG) | |
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 | clean: | |
166 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
167 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll | |
168 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a | |
169 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a | |
170 | ||
171 | ifeq ($(SHARED),1) | |
172 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) | |
173 | $(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$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) | |
174 | endif | |
175 | ||
176 | ifeq ($(SHARED),0) | |
177 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a: $(SVGLIB_OBJECTS) | |
178 | if exist $@ del $@ | |
179 | ar rcu $@ $(SVGLIB_OBJECTS) | |
180 | ranlib $@ | |
181 | endif | |
182 | ||
183 | $(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp | |
184 | $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $< | |
185 | ||
186 | $(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp | |
187 | $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $< | |
188 | ||
189 | $(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp | |
190 | $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $< | |
191 | ||
192 | $(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp | |
193 | $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $< | |
194 | ||
195 | .PHONY: all clean |