]>
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 | WX_RELEASE_NODOT = 25 | |
16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)2 | |
17 | OBJS = \ | |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
19 | SETUPHDIR = \ | |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
21 | DEPRECATEDDLL_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
22 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
23 | $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \ | |
24 | -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include -DWXUSINGDLL \ | |
25 | -DWXMAKINGDLL_DEPRECATED -I..\..\src\deprecated $(CPPFLAGS) $(CFLAGS) | |
26 | DEPRECATEDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
27 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
28 | $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \ | |
29 | -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include -DWXUSINGDLL \ | |
30 | -DWXMAKINGDLL_DEPRECATED -I..\..\src\deprecated $(__EXCEPTIONSFLAG) \ | |
31 | $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) | |
32 | DEPRECATEDDLL_OBJECTS = \ | |
33 | $(OBJS)\deprecateddll_dummy.o \ | |
34 | $(OBJS)\deprecateddll_prop.o \ | |
35 | $(OBJS)\deprecateddll_propform.o \ | |
36 | $(OBJS)\deprecateddll_proplist.o \ | |
37 | $(OBJS)\deprecateddll_resource.o \ | |
38 | $(OBJS)\deprecateddll_tbarsmpl.o \ | |
39 | $(OBJS)\deprecateddll_treelay.o \ | |
40 | $(OBJS)\deprecateddll_wxexpr.o \ | |
41 | $(OBJS)\deprecateddll_dosyacc.o | |
42 | DEPRECATEDLIB_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
43 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
44 | $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \ | |
45 | -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include \ | |
46 | -I..\..\src\deprecated $(CPPFLAGS) $(CFLAGS) | |
47 | DEPRECATEDLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
48 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
49 | $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \ | |
50 | -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include \ | |
51 | -I..\..\src\deprecated $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \ | |
52 | $(CPPFLAGS) $(CXXFLAGS) | |
53 | DEPRECATEDLIB_OBJECTS = \ | |
54 | $(OBJS)\deprecatedlib_dummy.o \ | |
55 | $(OBJS)\deprecatedlib_prop.o \ | |
56 | $(OBJS)\deprecatedlib_propform.o \ | |
57 | $(OBJS)\deprecatedlib_proplist.o \ | |
58 | $(OBJS)\deprecatedlib_resource.o \ | |
59 | $(OBJS)\deprecatedlib_tbarsmpl.o \ | |
60 | $(OBJS)\deprecatedlib_treelay.o \ | |
61 | $(OBJS)\deprecatedlib_wxexpr.o \ | |
62 | $(OBJS)\deprecatedlib_dosyacc.o | |
63 | ||
64 | ### Conditionally set variables: ### | |
65 | ||
66 | ifeq ($(GCC_VERSION),2.95) | |
67 | GCCFLAGS = -fvtable-thunks | |
68 | endif | |
69 | ifeq ($(USE_GUI),0) | |
70 | PORTNAME = base | |
71 | endif | |
72 | ifeq ($(USE_GUI),1) | |
73 | PORTNAME = msw | |
74 | endif | |
75 | ifeq ($(OFFICIAL_BUILD),0) | |
76 | VENDORTAG = _$(VENDOR) | |
77 | endif | |
78 | ifeq ($(OFFICIAL_BUILD),1) | |
79 | VENDORTAG = | |
80 | endif | |
81 | ifeq ($(BUILD),debug) | |
82 | ifeq ($(DEBUG_FLAG),default) | |
83 | WXDEBUGFLAG = d | |
84 | endif | |
85 | endif | |
86 | ifeq ($(DEBUG_FLAG),1) | |
87 | WXDEBUGFLAG = d | |
88 | endif | |
89 | ifeq ($(UNICODE),1) | |
90 | WXUNICODEFLAG = u | |
91 | endif | |
92 | ifeq ($(WXUNIV),1) | |
93 | WXUNIVNAME = univ | |
94 | endif | |
95 | ifeq ($(SHARED),1) | |
96 | WXDLLFLAG = dll | |
97 | endif | |
98 | ifeq ($(SHARED),1) | |
99 | __deprecateddll___depname = \ | |
100 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll | |
101 | endif | |
102 | ifeq ($(MONOLITHIC),1) | |
103 | __WXLIB_MONO_p = \ | |
104 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
105 | endif | |
106 | ifeq ($(USE_GUI),1) | |
107 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) | |
108 | endif | |
109 | ifeq ($(USE_GUI),1) | |
110 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) | |
111 | endif | |
112 | ifeq ($(USE_GUI),1) | |
113 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) | |
114 | endif | |
115 | ifeq ($(MSLU),1) | |
116 | __UNICOWS_LIB_p = -lunicows | |
117 | endif | |
118 | ifeq ($(MONOLITHIC),0) | |
119 | __WXLIB_CORE_p = \ | |
120 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core | |
121 | endif | |
122 | ifeq ($(MONOLITHIC),0) | |
123 | __WXLIB_BASE_p = \ | |
124 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
125 | endif | |
126 | ifeq ($(SHARED),0) | |
127 | __deprecatedlib___depname = \ | |
128 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a | |
129 | endif | |
130 | ifeq ($(BUILD),debug) | |
131 | ifeq ($(DEBUG_INFO),default) | |
132 | __DEBUGINFO = -g | |
133 | endif | |
134 | endif | |
135 | ifeq ($(BUILD),release) | |
136 | ifeq ($(DEBUG_INFO),default) | |
137 | __DEBUGINFO = | |
138 | endif | |
139 | endif | |
140 | ifeq ($(DEBUG_INFO),0) | |
141 | __DEBUGINFO = | |
142 | endif | |
143 | ifeq ($(DEBUG_INFO),1) | |
144 | __DEBUGINFO = -g | |
145 | endif | |
146 | ifeq ($(BUILD),debug) | |
147 | __OPTIMIZEFLAG = -O0 | |
148 | endif | |
149 | ifeq ($(BUILD),release) | |
150 | __OPTIMIZEFLAG = -O2 | |
151 | endif | |
152 | ifeq ($(USE_EXCEPTIONS),0) | |
153 | __EXCEPTIONSFLAG = -fno-rtti | |
154 | endif | |
155 | ifeq ($(USE_EXCEPTIONS),1) | |
156 | __EXCEPTIONSFLAG = | |
157 | endif | |
158 | ifeq ($(USE_EXCEPTIONS),0) | |
159 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
160 | endif | |
161 | ifeq ($(USE_EXCEPTIONS),1) | |
162 | __EXCEPTIONSFLAG_0 = | |
163 | endif | |
164 | ifeq ($(WXUNIV),1) | |
165 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
166 | endif | |
167 | ifeq ($(BUILD),debug) | |
168 | ifeq ($(DEBUG_FLAG),default) | |
169 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
170 | endif | |
171 | endif | |
172 | ifeq ($(DEBUG_FLAG),1) | |
173 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
174 | endif | |
175 | ifeq ($(UNICODE),1) | |
176 | __UNICODE_DEFINE_p = -D_UNICODE | |
177 | endif | |
178 | ifeq ($(SHARED),0) | |
179 | LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_lib$(CFG) | |
180 | endif | |
181 | ifeq ($(SHARED),1) | |
182 | LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_dll$(CFG) | |
183 | endif | |
184 | ||
185 | ||
186 | all: $(OBJS) | |
187 | $(OBJS): | |
188 | -if not exist $(OBJS) mkdir $(OBJS) | |
189 | ||
190 | ### Targets: ### | |
191 | ||
192 | all: $(__deprecateddll___depname) $(__deprecatedlib___depname) | |
193 | ||
194 | clean: | |
195 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
196 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll | |
197 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a | |
198 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a | |
199 | ||
200 | ifeq ($(SHARED),1) | |
201 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS) | |
202 | $(CXX) -shared -o $@ $(DEPRECATEDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) | |
203 | endif | |
204 | ||
205 | ifeq ($(SHARED),0) | |
206 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a: $(DEPRECATEDLIB_OBJECTS) | |
207 | if exist $@ del $@ | |
208 | ar rcu $@ $(DEPRECATEDLIB_OBJECTS) | |
209 | ranlib $@ | |
210 | endif | |
211 | ||
212 | $(OBJS)\deprecateddll_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp | |
213 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
214 | ||
215 | $(OBJS)\deprecateddll_prop.o: ../../src/deprecated/prop.cpp | |
216 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
217 | ||
218 | $(OBJS)\deprecateddll_propform.o: ../../src/deprecated/propform.cpp | |
219 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
220 | ||
221 | $(OBJS)\deprecateddll_proplist.o: ../../src/deprecated/proplist.cpp | |
222 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
223 | ||
224 | $(OBJS)\deprecateddll_resource.o: ../../src/deprecated/resource.cpp | |
225 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
226 | ||
227 | $(OBJS)\deprecateddll_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp | |
228 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
229 | ||
230 | $(OBJS)\deprecateddll_treelay.o: ../../src/deprecated/treelay.cpp | |
231 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
232 | ||
233 | $(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated/wxexpr.cpp | |
234 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
235 | ||
236 | $(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated/dosyacc.c | |
237 | $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $< | |
238 | ||
239 | $(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp | |
240 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
241 | ||
242 | $(OBJS)\deprecatedlib_prop.o: ../../src/deprecated/prop.cpp | |
243 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
244 | ||
245 | $(OBJS)\deprecatedlib_propform.o: ../../src/deprecated/propform.cpp | |
246 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
247 | ||
248 | $(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated/proplist.cpp | |
249 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
250 | ||
251 | $(OBJS)\deprecatedlib_resource.o: ../../src/deprecated/resource.cpp | |
252 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
253 | ||
254 | $(OBJS)\deprecatedlib_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp | |
255 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
256 | ||
257 | $(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated/treelay.cpp | |
258 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
259 | ||
260 | $(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated/wxexpr.cpp | |
261 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
262 | ||
263 | $(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated/dosyacc.c | |
264 | $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $< | |
265 | ||
266 | .PHONY: all clean |