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