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