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