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