]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/deprecated/makefile.gcc
42dc9ba9edbcf94d45be270a6838adcd190ad2a6
[wxWidgets.git] / contrib / build / deprecated / makefile.gcc
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
7 include ../../../build/msw/config.gcc
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 \
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)
26 DEPRECATEDDLL_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)
38 DEPRECATEDDLL_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
47 DEPRECATEDLIB_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)
57 DEPRECATEDLIB_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)
68 DEPRECATEDLIB_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
77 LIBDIRNAME = \
78 ..\..\src\deprecated\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
79 OBJS = \
80 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
81
82 ### Conditionally set variables: ###
83
84 ifeq ($(GCC_VERSION),2.95)
85 GCCFLAGS = -fvtable-thunks
86 endif
87 ifeq ($(USE_GUI),0)
88 PORTNAME = base
89 endif
90 ifeq ($(USE_GUI),1)
91 PORTNAME = msw
92 endif
93 ifeq ($(OFFICIAL_BUILD),0)
94 VENDORTAG = _$(VENDOR)
95 endif
96 ifeq ($(OFFICIAL_BUILD),1)
97 VENDORTAG =
98 endif
99 ifeq ($(BUILD),debug)
100 ifeq ($(DEBUG_FLAG),default)
101 WXDEBUGFLAG = d
102 endif
103 endif
104 ifeq ($(DEBUG_FLAG),1)
105 WXDEBUGFLAG = d
106 endif
107 ifeq ($(SHARED),1)
108 WXDLLFLAG = dll
109 endif
110 ifeq ($(UNICODE),1)
111 WXUNICODEFLAG = u
112 endif
113 ifeq ($(WXUNIV),1)
114 WXUNIVNAME = univ
115 endif
116 ifeq ($(BUILD),debug)
117 ifeq ($(DEBUG_INFO),default)
118 __DEBUGINFO = -g
119 endif
120 endif
121 ifeq ($(BUILD),release)
122 ifeq ($(DEBUG_INFO),default)
123 __DEBUGINFO =
124 endif
125 endif
126 ifeq ($(DEBUG_INFO),0)
127 __DEBUGINFO =
128 endif
129 ifeq ($(DEBUG_INFO),1)
130 __DEBUGINFO = -g
131 endif
132 ifeq ($(BUILD),debug)
133 ifeq ($(DEBUG_FLAG),default)
134 __DEBUG_DEFINE_p = -D__WXDEBUG__
135 endif
136 endif
137 ifeq ($(DEBUG_FLAG),1)
138 __DEBUG_DEFINE_p = -D__WXDEBUG__
139 endif
140 ifeq ($(USE_GUI),1)
141 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
142 endif
143 ifeq ($(USE_GUI),1)
144 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
145 endif
146 ifeq ($(USE_GUI),1)
147 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
148 endif
149 ifeq ($(BUILD),debug)
150 __OPTIMIZEFLAG = -O0
151 endif
152 ifeq ($(BUILD),release)
153 __OPTIMIZEFLAG = -O2
154 endif
155 ifeq ($(UNICODE),1)
156 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
157 endif
158 ifeq ($(MONOLITHIC),0)
159 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
160 endif
161 ifeq ($(MONOLITHIC),0)
162 __WXLIB_CORE_p = \
163 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
164 endif
165 ifeq ($(MONOLITHIC),1)
166 __WXLIB_MONO_p = \
167 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
168 endif
169 ifeq ($(WXUNIV),1)
170 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
171 endif
172 ifeq ($(SHARED),1)
173 __deprecateddll___depname = \
174 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll
175 endif
176 ifeq ($(SHARED),0)
177 __deprecatedlib___depname = \
178 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a
179 endif
180
181 MAKEARGS = BUILD=$(BUILD) CC=$(CC) CFG=$(CFG) CFLAGS=$(CFLAGS) CPPFLAGS=$(CPPFLAGS) CXX=$(CXX) CXXFLAGS=$(CXXFLAGS) DEBUG_FLAG=$(DEBUG_FLAG) DEBUG_INFO=$(DEBUG_INFO) GCC_VERSION=$(GCC_VERSION) LDFLAGS=$(LDFLAGS) MONOLITHIC=$(MONOLITHIC) OFFICIAL_BUILD=$(OFFICIAL_BUILD) SHARED=$(SHARED) UNICODE=$(UNICODE) USE_GUI=$(USE_GUI) VENDOR=$(VENDOR) WXUNIV=$(WXUNIV)
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
192 $(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated\dosyacc.c
193 $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $<
194
195 $(OBJS)\deprecateddll_dummy.o: ../../src/deprecated\..\..\..\src\msw\dummy.cpp
196 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
197
198 $(OBJS)\deprecateddll_prop.o: ../../src/deprecated\prop.cpp
199 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
200
201 $(OBJS)\deprecateddll_propform.o: ../../src/deprecated\propform.cpp
202 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
203
204 $(OBJS)\deprecateddll_proplist.o: ../../src/deprecated\proplist.cpp
205 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
206
207 $(OBJS)\deprecateddll_resource.o: ../../src/deprecated\resource.cpp
208 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
209
210 $(OBJS)\deprecateddll_treelay.o: ../../src/deprecated\treelay.cpp
211 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
212
213 $(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated\wxexpr.cpp
214 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
215
216 $(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated\dosyacc.c
217 $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $<
218
219 $(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated\..\..\..\src\msw\dummy.cpp
220 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
221
222 $(OBJS)\deprecatedlib_prop.o: ../../src/deprecated\prop.cpp
223 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
224
225 $(OBJS)\deprecatedlib_propform.o: ../../src/deprecated\propform.cpp
226 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
227
228 $(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated\proplist.cpp
229 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
230
231 $(OBJS)\deprecatedlib_resource.o: ../../src/deprecated\resource.cpp
232 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
233
234 $(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated\treelay.cpp
235 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
236
237 $(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated\wxexpr.cpp
238 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
239
240 clean:
241 -if exist $(OBJS)\*.o del $(OBJS)\*.o
242 -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
243 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a
244 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a
245
246 ifeq ($(SHARED),1)
247 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated_gcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS)
248 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
249 endif
250
251 ifeq ($(SHARED),0)
252 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.a: $(DEPRECATEDLIB_OBJECTS)
253 if exist $@ del $@
254 ar rcu $@ $(DEPRECATEDLIB_OBJECTS)
255 ranlib $@
256 endif
257
258 .PHONY: all clean