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