]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/deprecated/makefile.gcc
Compile fix for sound without threads. Not sure
[wxWidgets.git] / contrib / build / deprecated / makefile.gcc
... / ...
CommitLineData
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
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19DEPRECATEDDLL_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)
24DEPRECATEDDLL_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)
30DEPRECATEDDLL_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
40DEPRECATEDLIB_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)
45DEPRECATEDLIB_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)
51DEPRECATEDLIB_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
64ifeq ($(GCC_VERSION),2.95)
65GCCFLAGS = -fvtable-thunks
66endif
67ifeq ($(USE_GUI),0)
68PORTNAME = base
69endif
70ifeq ($(USE_GUI),1)
71PORTNAME = msw
72endif
73ifeq ($(OFFICIAL_BUILD),0)
74VENDORTAG = _$(VENDOR)
75endif
76ifeq ($(OFFICIAL_BUILD),1)
77VENDORTAG =
78endif
79ifeq ($(BUILD),debug)
80ifeq ($(DEBUG_FLAG),default)
81WXDEBUGFLAG = d
82endif
83endif
84ifeq ($(DEBUG_FLAG),1)
85WXDEBUGFLAG = d
86endif
87ifeq ($(UNICODE),1)
88WXUNICODEFLAG = u
89endif
90ifeq ($(WXUNIV),1)
91WXUNIVNAME = univ
92endif
93ifeq ($(SHARED),1)
94WXDLLFLAG = dll
95endif
96ifeq ($(SHARED),1)
97__deprecateddll___depname = \
98 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll
99endif
100ifeq ($(MONOLITHIC),1)
101__WXLIB_MONO_p = \
102 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
103endif
104ifeq ($(USE_GUI),1)
105__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
106endif
107ifeq ($(USE_GUI),1)
108__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
109endif
110ifeq ($(USE_GUI),1)
111__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
112endif
113ifeq ($(MSLU),1)
114__UNICOWS_LIB_p = -lunicows
115endif
116ifeq ($(MONOLITHIC),0)
117__WXLIB_CORE_p = \
118 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
119endif
120ifeq ($(MONOLITHIC),0)
121__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
122endif
123ifeq ($(SHARED),0)
124__deprecatedlib___depname = \
125 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a
126endif
127ifeq ($(BUILD),debug)
128ifeq ($(DEBUG_INFO),default)
129__DEBUGINFO = -g
130endif
131endif
132ifeq ($(BUILD),release)
133ifeq ($(DEBUG_INFO),default)
134__DEBUGINFO =
135endif
136endif
137ifeq ($(DEBUG_INFO),0)
138__DEBUGINFO =
139endif
140ifeq ($(DEBUG_INFO),1)
141__DEBUGINFO = -g
142endif
143ifeq ($(BUILD),debug)
144__OPTIMIZEFLAG = -O0
145endif
146ifeq ($(BUILD),release)
147__OPTIMIZEFLAG = -O2
148endif
149ifeq ($(USE_EXCEPTIONS),0)
150__EXCEPTIONSFLAG = -fno-rtti
151endif
152ifeq ($(USE_EXCEPTIONS),1)
153__EXCEPTIONSFLAG =
154endif
155ifeq ($(USE_EXCEPTIONS),0)
156__EXCEPTIONSFLAG_0 = -fno-exceptions
157endif
158ifeq ($(USE_EXCEPTIONS),1)
159__EXCEPTIONSFLAG_0 =
160endif
161ifeq ($(WXUNIV),1)
162__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
163endif
164ifeq ($(BUILD),debug)
165ifeq ($(DEBUG_FLAG),default)
166__DEBUG_DEFINE_p = -D__WXDEBUG__
167endif
168endif
169ifeq ($(DEBUG_FLAG),1)
170__DEBUG_DEFINE_p = -D__WXDEBUG__
171endif
172ifeq ($(UNICODE),1)
173__UNICODE_DEFINE_p = -D_UNICODE
174endif
175ifeq ($(SHARED),0)
176LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_lib$(CFG)
177endif
178ifeq ($(SHARED),1)
179LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_dll$(CFG)
180endif
181
182
183all: $(OBJS)
184$(OBJS):
185 -if not exist $(OBJS) mkdir $(OBJS)
186
187### Targets: ###
188
189all: $(__deprecateddll___depname) $(__deprecatedlib___depname)
190
191clean:
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
197ifeq ($(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)
200endif
201
202ifeq ($(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 $@
207endif
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