]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/fl/makefile.gcc
Use 'test -f' since Sun's shell doesn't have 'test -e'
[wxWidgets.git] / contrib / build / fl / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 WX_RELEASE_NODOT = 26
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = ..\..\src\fl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 FLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
24 $(__UNICODE_DEFINE_p) -I..\..\src\fl\..\..\..\include -I$(SETUPHDIR) -W \
25 -Wall -I..\..\src\fl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_FL \
26 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
27 $(CXXFLAGS)
28 FLDLL_OBJECTS = \
29 $(OBJS)\fldll_dummy.o \
30 $(OBJS)\fldll_version_rc.o \
31 $(OBJS)\fldll_antiflickpl.o \
32 $(OBJS)\fldll_bardragpl.o \
33 $(OBJS)\fldll_barhintspl.o \
34 $(OBJS)\fldll_cbcustom.o \
35 $(OBJS)\fldll_controlbar.o \
36 $(OBJS)\fldll_dyntbar.o \
37 $(OBJS)\fldll_dyntbarhnd.o \
38 $(OBJS)\fldll_frmview.o \
39 $(OBJS)\fldll_garbagec.o \
40 $(OBJS)\fldll_gcupdatesmgr.o \
41 $(OBJS)\fldll_hintanimpl.o \
42 $(OBJS)\fldll_newbmpbtn.o \
43 $(OBJS)\fldll_panedrawpl.o \
44 $(OBJS)\fldll_rowdragpl.o \
45 $(OBJS)\fldll_rowlayoutpl.o \
46 $(OBJS)\fldll_toolwnd.o \
47 $(OBJS)\fldll_updatesmgr.o
48 FLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
49 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
50 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
51 $(__UNICODE_DEFINE_p) -I..\..\src\fl\..\..\..\include -I$(SETUPHDIR) -W \
52 -Wall -I..\..\src\fl\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
53 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
54 FLLIB_OBJECTS = \
55 $(OBJS)\fllib_dummy.o \
56 $(OBJS)\fllib_antiflickpl.o \
57 $(OBJS)\fllib_bardragpl.o \
58 $(OBJS)\fllib_barhintspl.o \
59 $(OBJS)\fllib_cbcustom.o \
60 $(OBJS)\fllib_controlbar.o \
61 $(OBJS)\fllib_dyntbar.o \
62 $(OBJS)\fllib_dyntbarhnd.o \
63 $(OBJS)\fllib_frmview.o \
64 $(OBJS)\fllib_garbagec.o \
65 $(OBJS)\fllib_gcupdatesmgr.o \
66 $(OBJS)\fllib_hintanimpl.o \
67 $(OBJS)\fllib_newbmpbtn.o \
68 $(OBJS)\fllib_panedrawpl.o \
69 $(OBJS)\fllib_rowdragpl.o \
70 $(OBJS)\fllib_rowlayoutpl.o \
71 $(OBJS)\fllib_toolwnd.o \
72 $(OBJS)\fllib_updatesmgr.o
73
74 ### Conditionally set variables: ###
75
76 ifeq ($(GCC_VERSION),2.95)
77 GCCFLAGS = -fvtable-thunks
78 endif
79 ifeq ($(USE_GUI),0)
80 PORTNAME = base
81 endif
82 ifeq ($(USE_GUI),1)
83 PORTNAME = msw
84 endif
85 ifeq ($(OFFICIAL_BUILD),0)
86 VENDORTAG = _$(VENDOR)
87 endif
88 ifeq ($(OFFICIAL_BUILD),1)
89 VENDORTAG =
90 endif
91 ifeq ($(BUILD),debug)
92 ifeq ($(DEBUG_FLAG),default)
93 WXDEBUGFLAG = d
94 endif
95 endif
96 ifeq ($(DEBUG_FLAG),1)
97 WXDEBUGFLAG = d
98 endif
99 ifeq ($(UNICODE),1)
100 WXUNICODEFLAG = u
101 endif
102 ifeq ($(WXUNIV),1)
103 WXUNIVNAME = univ
104 endif
105 ifeq ($(SHARED),1)
106 WXDLLFLAG = dll
107 endif
108 ifeq ($(SHARED),0)
109 LIBTYPE_SUFFIX = lib
110 endif
111 ifeq ($(SHARED),1)
112 LIBTYPE_SUFFIX = dll
113 endif
114 ifeq ($(MONOLITHIC),0)
115 EXTRALIBS_FOR_BASE =
116 endif
117 ifeq ($(MONOLITHIC),1)
118 EXTRALIBS_FOR_BASE =
119 endif
120 ifeq ($(SHARED),1)
121 __fldll___depname = \
122 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl_gcc$(VENDORTAG).dll
123 endif
124 ifeq ($(WXUNIV),1)
125 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
126 endif
127 ifeq ($(BUILD),debug)
128 ifeq ($(DEBUG_FLAG),default)
129 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
130 endif
131 endif
132 ifeq ($(DEBUG_FLAG),1)
133 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
134 endif
135 ifeq ($(USE_EXCEPTIONS),0)
136 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
137 endif
138 ifeq ($(USE_RTTI),0)
139 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
140 endif
141 ifeq ($(USE_THREADS),0)
142 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
143 endif
144 ifeq ($(UNICODE),1)
145 __UNICODE_DEFINE_p_1 = --define _UNICODE
146 endif
147 ifeq ($(MONOLITHIC),1)
148 __WXLIB_MONO_p = \
149 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
150 endif
151 ifeq ($(USE_GUI),1)
152 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
153 endif
154 ifeq ($(USE_GUI),1)
155 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
156 endif
157 ifeq ($(USE_GUI),1)
158 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
159 endif
160 ifeq ($(MSLU),1)
161 __UNICOWS_LIB_p = -lunicows
162 endif
163 ifeq ($(MONOLITHIC),0)
164 __WXLIB_CORE_p = \
165 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
166 endif
167 ifeq ($(MONOLITHIC),0)
168 __WXLIB_BASE_p = \
169 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
170 endif
171 ifeq ($(SHARED),0)
172 __fllib___depname = \
173 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl.a
174 endif
175 ifeq ($(BUILD),debug)
176 ifeq ($(DEBUG_INFO),default)
177 __DEBUGINFO = -g
178 endif
179 endif
180 ifeq ($(BUILD),release)
181 ifeq ($(DEBUG_INFO),default)
182 __DEBUGINFO =
183 endif
184 endif
185 ifeq ($(DEBUG_INFO),0)
186 __DEBUGINFO =
187 endif
188 ifeq ($(DEBUG_INFO),1)
189 __DEBUGINFO = -g
190 endif
191 ifeq ($(BUILD),debug)
192 __OPTIMIZEFLAG = -O0
193 endif
194 ifeq ($(BUILD),release)
195 __OPTIMIZEFLAG = -O2
196 endif
197 ifeq ($(USE_THREADS),0)
198 __THREADSFLAG =
199 endif
200 ifeq ($(USE_THREADS),1)
201 __THREADSFLAG = -mthreads
202 endif
203 ifeq ($(USE_RTTI),0)
204 __RTTIFLAG = -fno-rtti
205 endif
206 ifeq ($(USE_RTTI),1)
207 __RTTIFLAG =
208 endif
209 ifeq ($(USE_EXCEPTIONS),0)
210 __EXCEPTIONSFLAG = -fno-exceptions
211 endif
212 ifeq ($(USE_EXCEPTIONS),1)
213 __EXCEPTIONSFLAG =
214 endif
215 ifeq ($(WXUNIV),1)
216 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
217 endif
218 ifeq ($(BUILD),debug)
219 ifeq ($(DEBUG_FLAG),default)
220 __DEBUG_DEFINE_p = -D__WXDEBUG__
221 endif
222 endif
223 ifeq ($(DEBUG_FLAG),1)
224 __DEBUG_DEFINE_p = -D__WXDEBUG__
225 endif
226 ifeq ($(USE_EXCEPTIONS),0)
227 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
228 endif
229 ifeq ($(USE_RTTI),0)
230 __RTTI_DEFINE_p = -DwxNO_RTTI
231 endif
232 ifeq ($(USE_THREADS),0)
233 __THREAD_DEFINE_p = -DwxNO_THREADS
234 endif
235 ifeq ($(UNICODE),1)
236 __UNICODE_DEFINE_p = -D_UNICODE
237 endif
238
239
240 all: $(OBJS)
241 $(OBJS):
242 -if not exist $(OBJS) mkdir $(OBJS)
243
244 ### Targets: ###
245
246 all: $(__fldll___depname) $(__fllib___depname)
247
248 clean:
249 -if exist $(OBJS)\*.o del $(OBJS)\*.o
250 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl_gcc$(VENDORTAG).dll
251 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl.a
252 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl.a
253
254 ifeq ($(SHARED),1)
255 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl_gcc$(VENDORTAG).dll: $(FLDLL_OBJECTS) $(OBJS)\fldll_version_rc.o
256 $(CXX) -shared -fPIC -o $@ $(FLDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl.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)
257 endif
258
259 ifeq ($(SHARED),0)
260 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl.a: $(FLLIB_OBJECTS)
261 if exist $@ del $@
262 ar rcu $@ $(FLLIB_OBJECTS)
263 ranlib $@
264 endif
265
266 $(OBJS)\fldll_dummy.o: ../../src/fl/../../../src/msw/dummy.cpp
267 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
268
269 $(OBJS)\fldll_version_rc.o: ../../src/fl/../../../src/msw/version.rc
270 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ../../src/fl/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_fl_gcc$(VENDORTAG)
271
272 $(OBJS)\fldll_antiflickpl.o: ../../src/fl/antiflickpl.cpp
273 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
274
275 $(OBJS)\fldll_bardragpl.o: ../../src/fl/bardragpl.cpp
276 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
277
278 $(OBJS)\fldll_barhintspl.o: ../../src/fl/barhintspl.cpp
279 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
280
281 $(OBJS)\fldll_cbcustom.o: ../../src/fl/cbcustom.cpp
282 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
283
284 $(OBJS)\fldll_controlbar.o: ../../src/fl/controlbar.cpp
285 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
286
287 $(OBJS)\fldll_dyntbar.o: ../../src/fl/dyntbar.cpp
288 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
289
290 $(OBJS)\fldll_dyntbarhnd.o: ../../src/fl/dyntbarhnd.cpp
291 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
292
293 $(OBJS)\fldll_frmview.o: ../../src/fl/frmview.cpp
294 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
295
296 $(OBJS)\fldll_garbagec.o: ../../src/fl/garbagec.cpp
297 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
298
299 $(OBJS)\fldll_gcupdatesmgr.o: ../../src/fl/gcupdatesmgr.cpp
300 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
301
302 $(OBJS)\fldll_hintanimpl.o: ../../src/fl/hintanimpl.cpp
303 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
304
305 $(OBJS)\fldll_newbmpbtn.o: ../../src/fl/newbmpbtn.cpp
306 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
307
308 $(OBJS)\fldll_panedrawpl.o: ../../src/fl/panedrawpl.cpp
309 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
310
311 $(OBJS)\fldll_rowdragpl.o: ../../src/fl/rowdragpl.cpp
312 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
313
314 $(OBJS)\fldll_rowlayoutpl.o: ../../src/fl/rowlayoutpl.cpp
315 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
316
317 $(OBJS)\fldll_toolwnd.o: ../../src/fl/toolwnd.cpp
318 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
319
320 $(OBJS)\fldll_updatesmgr.o: ../../src/fl/updatesmgr.cpp
321 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
322
323 $(OBJS)\fllib_dummy.o: ../../src/fl/../../../src/msw/dummy.cpp
324 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
325
326 $(OBJS)\fllib_antiflickpl.o: ../../src/fl/antiflickpl.cpp
327 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
328
329 $(OBJS)\fllib_bardragpl.o: ../../src/fl/bardragpl.cpp
330 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
331
332 $(OBJS)\fllib_barhintspl.o: ../../src/fl/barhintspl.cpp
333 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
334
335 $(OBJS)\fllib_cbcustom.o: ../../src/fl/cbcustom.cpp
336 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
337
338 $(OBJS)\fllib_controlbar.o: ../../src/fl/controlbar.cpp
339 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
340
341 $(OBJS)\fllib_dyntbar.o: ../../src/fl/dyntbar.cpp
342 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
343
344 $(OBJS)\fllib_dyntbarhnd.o: ../../src/fl/dyntbarhnd.cpp
345 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
346
347 $(OBJS)\fllib_frmview.o: ../../src/fl/frmview.cpp
348 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
349
350 $(OBJS)\fllib_garbagec.o: ../../src/fl/garbagec.cpp
351 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
352
353 $(OBJS)\fllib_gcupdatesmgr.o: ../../src/fl/gcupdatesmgr.cpp
354 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
355
356 $(OBJS)\fllib_hintanimpl.o: ../../src/fl/hintanimpl.cpp
357 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
358
359 $(OBJS)\fllib_newbmpbtn.o: ../../src/fl/newbmpbtn.cpp
360 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
361
362 $(OBJS)\fllib_panedrawpl.o: ../../src/fl/panedrawpl.cpp
363 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
364
365 $(OBJS)\fllib_rowdragpl.o: ../../src/fl/rowdragpl.cpp
366 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
367
368 $(OBJS)\fllib_rowlayoutpl.o: ../../src/fl/rowlayoutpl.cpp
369 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
370
371 $(OBJS)\fllib_toolwnd.o: ../../src/fl/toolwnd.cpp
372 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
373
374 $(OBJS)\fllib_updatesmgr.o: ../../src/fl/updatesmgr.cpp
375 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
376
377 .PHONY: all clean
378
379