]>
Commit | Line | Data |
---|---|---|
15e8daec VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
15e8daec VS |
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 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
ab921f5f | 16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3 |
b17c1746 DE |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
19 | SETUPHDIR = \ | |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 21 | DEPRECATEDDLL_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
15e8daec VS |
22 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
23 | $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \ | |
ec08d395 | 24 | -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include -DWXUSINGDLL \ |
9bfe7ad9 VS |
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) | |
15e8daec VS |
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 \ | |
8a82c9ec | 38 | $(OBJS)\deprecateddll_tbarsmpl.o \ |
15e8daec VS |
39 | $(OBJS)\deprecateddll_treelay.o \ |
40 | $(OBJS)\deprecateddll_wxexpr.o \ | |
41 | $(OBJS)\deprecateddll_dosyacc.o | |
9bfe7ad9 VS |
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) \ | |
15e8daec VS |
48 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
49 | $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \ | |
ec08d395 | 50 | -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include \ |
9bfe7ad9 VS |
51 | -I..\..\src\deprecated $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \ |
52 | $(CPPFLAGS) $(CXXFLAGS) | |
15e8daec VS |
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 \ | |
8a82c9ec | 59 | $(OBJS)\deprecatedlib_tbarsmpl.o \ |
15e8daec VS |
60 | $(OBJS)\deprecatedlib_treelay.o \ |
61 | $(OBJS)\deprecatedlib_wxexpr.o \ | |
62 | $(OBJS)\deprecatedlib_dosyacc.o | |
15e8daec VS |
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 | |
15e8daec VS |
89 | ifeq ($(UNICODE),1) |
90 | WXUNICODEFLAG = u | |
91 | endif | |
92 | ifeq ($(WXUNIV),1) | |
93 | WXUNIVNAME = univ | |
94 | endif | |
b17c1746 DE |
95 | ifeq ($(SHARED),1) |
96 | WXDLLFLAG = dll | |
97 | endif | |
dd65d8c8 RN |
98 | ifeq ($(MONOLITHIC),0) |
99 | EXTRALIBS_FOR_BASE = | |
100 | endif | |
101 | ifeq ($(MONOLITHIC),1) | |
102 | EXTRALIBS_FOR_BASE = | |
103 | endif | |
b17c1746 DE |
104 | ifeq ($(SHARED),1) |
105 | __deprecateddll___depname = \ | |
c33fae85 | 106 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll |
b17c1746 DE |
107 | endif |
108 | ifeq ($(MONOLITHIC),1) | |
109 | __WXLIB_MONO_p = \ | |
c33fae85 | 110 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
111 | endif |
112 | ifeq ($(USE_GUI),1) | |
9c2d002b | 113 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
114 | endif |
115 | ifeq ($(USE_GUI),1) | |
9c2d002b | 116 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
117 | endif |
118 | ifeq ($(USE_GUI),1) | |
9c2d002b | 119 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
120 | endif |
121 | ifeq ($(MSLU),1) | |
122 | __UNICOWS_LIB_p = -lunicows | |
123 | endif | |
124 | ifeq ($(MONOLITHIC),0) | |
125 | __WXLIB_CORE_p = \ | |
c33fae85 | 126 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
127 | endif |
128 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
129 | __WXLIB_BASE_p = \ |
130 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
131 | endif |
132 | ifeq ($(SHARED),0) | |
133 | __deprecatedlib___depname = \ | |
c33fae85 | 134 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a |
b17c1746 | 135 | endif |
15e8daec VS |
136 | ifeq ($(BUILD),debug) |
137 | ifeq ($(DEBUG_INFO),default) | |
138 | __DEBUGINFO = -g | |
139 | endif | |
140 | endif | |
141 | ifeq ($(BUILD),release) | |
142 | ifeq ($(DEBUG_INFO),default) | |
143 | __DEBUGINFO = | |
144 | endif | |
145 | endif | |
146 | ifeq ($(DEBUG_INFO),0) | |
147 | __DEBUGINFO = | |
148 | endif | |
149 | ifeq ($(DEBUG_INFO),1) | |
150 | __DEBUGINFO = -g | |
151 | endif | |
152 | ifeq ($(BUILD),debug) | |
b17c1746 | 153 | __OPTIMIZEFLAG = -O0 |
15e8daec | 154 | endif |
b17c1746 DE |
155 | ifeq ($(BUILD),release) |
156 | __OPTIMIZEFLAG = -O2 | |
15e8daec | 157 | endif |
a4ad36cd VS |
158 | ifeq ($(USE_EXCEPTIONS),0) |
159 | __EXCEPTIONSFLAG = -fno-rtti | |
160 | endif | |
161 | ifeq ($(USE_EXCEPTIONS),1) | |
162 | __EXCEPTIONSFLAG = | |
163 | endif | |
164 | ifeq ($(USE_EXCEPTIONS),0) | |
165 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
166 | endif | |
167 | ifeq ($(USE_EXCEPTIONS),1) | |
168 | __EXCEPTIONSFLAG_0 = | |
169 | endif | |
b17c1746 DE |
170 | ifeq ($(WXUNIV),1) |
171 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
15e8daec VS |
172 | endif |
173 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
174 | ifeq ($(DEBUG_FLAG),default) |
175 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec | 176 | endif |
b17c1746 DE |
177 | endif |
178 | ifeq ($(DEBUG_FLAG),1) | |
179 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec VS |
180 | endif |
181 | ifeq ($(UNICODE),1) | |
ec08d395 | 182 | __UNICODE_DEFINE_p = -D_UNICODE |
15e8daec | 183 | endif |
b17c1746 DE |
184 | ifeq ($(SHARED),0) |
185 | LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_lib$(CFG) | |
15e8daec VS |
186 | endif |
187 | ifeq ($(SHARED),1) | |
b17c1746 | 188 | LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_dll$(CFG) |
15e8daec VS |
189 | endif |
190 | ||
191 | ||
192 | all: $(OBJS) | |
193 | $(OBJS): | |
194 | -if not exist $(OBJS) mkdir $(OBJS) | |
195 | ||
196 | ### Targets: ### | |
197 | ||
198 | all: $(__deprecateddll___depname) $(__deprecatedlib___depname) | |
199 | ||
b17c1746 DE |
200 | clean: |
201 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c33fae85 RN |
202 | -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 |
203 | -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 | |
204 | -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 | |
b17c1746 DE |
205 | |
206 | ifeq ($(SHARED),1) | |
c33fae85 | 207 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS) |
dd65d8c8 | 208 | $(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) -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) |
b17c1746 DE |
209 | endif |
210 | ||
211 | ifeq ($(SHARED),0) | |
c33fae85 | 212 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a: $(DEPRECATEDLIB_OBJECTS) |
b17c1746 DE |
213 | if exist $@ del $@ |
214 | ar rcu $@ $(DEPRECATEDLIB_OBJECTS) | |
215 | ranlib $@ | |
216 | endif | |
15e8daec | 217 | |
1c3a6972 | 218 | $(OBJS)\deprecateddll_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp |
15e8daec VS |
219 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
220 | ||
1c3a6972 | 221 | $(OBJS)\deprecateddll_prop.o: ../../src/deprecated/prop.cpp |
15e8daec VS |
222 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
223 | ||
1c3a6972 | 224 | $(OBJS)\deprecateddll_propform.o: ../../src/deprecated/propform.cpp |
15e8daec VS |
225 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
226 | ||
1c3a6972 | 227 | $(OBJS)\deprecateddll_proplist.o: ../../src/deprecated/proplist.cpp |
15e8daec VS |
228 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
229 | ||
1c3a6972 | 230 | $(OBJS)\deprecateddll_resource.o: ../../src/deprecated/resource.cpp |
15e8daec VS |
231 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
232 | ||
1c3a6972 | 233 | $(OBJS)\deprecateddll_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp |
8a82c9ec JS |
234 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
235 | ||
1c3a6972 | 236 | $(OBJS)\deprecateddll_treelay.o: ../../src/deprecated/treelay.cpp |
15e8daec VS |
237 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
238 | ||
1c3a6972 | 239 | $(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated/wxexpr.cpp |
15e8daec VS |
240 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< |
241 | ||
b17c1746 DE |
242 | $(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated/dosyacc.c |
243 | $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $< | |
15e8daec | 244 | |
1c3a6972 | 245 | $(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp |
15e8daec VS |
246 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
247 | ||
1c3a6972 | 248 | $(OBJS)\deprecatedlib_prop.o: ../../src/deprecated/prop.cpp |
15e8daec VS |
249 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
250 | ||
1c3a6972 | 251 | $(OBJS)\deprecatedlib_propform.o: ../../src/deprecated/propform.cpp |
15e8daec VS |
252 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
253 | ||
1c3a6972 | 254 | $(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated/proplist.cpp |
15e8daec VS |
255 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
256 | ||
1c3a6972 | 257 | $(OBJS)\deprecatedlib_resource.o: ../../src/deprecated/resource.cpp |
15e8daec VS |
258 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
259 | ||
1c3a6972 | 260 | $(OBJS)\deprecatedlib_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp |
8a82c9ec JS |
261 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
262 | ||
1c3a6972 | 263 | $(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated/treelay.cpp |
15e8daec VS |
264 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
265 | ||
1c3a6972 | 266 | $(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated/wxexpr.cpp |
15e8daec VS |
267 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< |
268 | ||
b17c1746 DE |
269 | $(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated/dosyacc.c |
270 | $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $< | |
15e8daec VS |
271 | |
272 | .PHONY: all clean |