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