]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/fl/makefile.gcc
more bakefile-based makefiles
[wxWidgets.git] / contrib / build / fl / makefile.gcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
bdc408c4 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../../build/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
3f55f5b8
VS
15FLDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I..\..\src\fl\..\..\..\include -I$(LIBDIRNAME) \
18 -I..\..\src\fl\..\..\..\src\tiff -I..\..\src\fl\..\..\..\src\jpeg \
19 -I..\..\src\fl\..\..\..\src\png -I..\..\src\fl\..\..\..\src\zlib \
20 -I..\..\src\fl\..\..\..\src\regex -I..\..\src\fl\..\..\..\src\expat\lib \
21 -I..\..\src\fl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_FL $(CXXFLAGS)
22FLDLL_OBJECTS = \
23 $(OBJS)\fldll_dummy.o \
24 $(OBJS)\fldll_antiflickpl.o \
25 $(OBJS)\fldll_bardragpl.o \
26 $(OBJS)\fldll_barhintspl.o \
27 $(OBJS)\fldll_cbcustom.o \
28 $(OBJS)\fldll_controlbar.o \
29 $(OBJS)\fldll_dyntbar.o \
30 $(OBJS)\fldll_dyntbarhnd.o \
31 $(OBJS)\fldll_frmview.o \
32 $(OBJS)\fldll_garbagec.o \
33 $(OBJS)\fldll_gcupdatesmgr.o \
34 $(OBJS)\fldll_hintanimpl.o \
35 $(OBJS)\fldll_newbmpbtn.o \
36 $(OBJS)\fldll_panedrawpl.o \
37 $(OBJS)\fldll_rowdragpl.o \
38 $(OBJS)\fldll_rowlayoutpl.o \
39 $(OBJS)\fldll_toolwnd.o \
40 $(OBJS)\fldll_updatesmgr.o
41FLLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
42 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
43 $(__UNICODE_DEFINE_p) -I..\..\src\fl\..\..\..\include -I$(LIBDIRNAME) \
44 -I..\..\src\fl\..\..\..\src\tiff -I..\..\src\fl\..\..\..\src\jpeg \
45 -I..\..\src\fl\..\..\..\src\png -I..\..\src\fl\..\..\..\src\zlib \
46 -I..\..\src\fl\..\..\..\src\regex -I..\..\src\fl\..\..\..\src\expat\lib \
47 -I..\..\src\fl\..\..\include $(CXXFLAGS)
48FLLIB_OBJECTS = \
49 $(OBJS)\fllib_dummy.o \
50 $(OBJS)\fllib_antiflickpl.o \
51 $(OBJS)\fllib_bardragpl.o \
52 $(OBJS)\fllib_barhintspl.o \
53 $(OBJS)\fllib_cbcustom.o \
54 $(OBJS)\fllib_controlbar.o \
55 $(OBJS)\fllib_dyntbar.o \
56 $(OBJS)\fllib_dyntbarhnd.o \
57 $(OBJS)\fllib_frmview.o \
58 $(OBJS)\fllib_garbagec.o \
59 $(OBJS)\fllib_gcupdatesmgr.o \
60 $(OBJS)\fllib_hintanimpl.o \
61 $(OBJS)\fllib_newbmpbtn.o \
62 $(OBJS)\fllib_panedrawpl.o \
63 $(OBJS)\fllib_rowdragpl.o \
64 $(OBJS)\fllib_rowlayoutpl.o \
65 $(OBJS)\fllib_toolwnd.o \
66 $(OBJS)\fllib_updatesmgr.o
67LIBDIRNAME = \
68 ..\..\src\fl\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
69OBJS = \
70 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
250700e4
RD
71
72### Conditionally set variables: ###
73
74ifeq ($(GCC_VERSION),2.95)
75GCCFLAGS = -fvtable-thunks
76endif
77ifeq ($(USE_GUI),0)
78PORTNAME = base
79endif
80ifeq ($(USE_GUI),1)
81PORTNAME = msw
82endif
83ifeq ($(OFFICIAL_BUILD),0)
84VENDORTAG = _$(VENDOR)
85endif
86ifeq ($(OFFICIAL_BUILD),1)
87VENDORTAG =
88endif
89ifeq ($(BUILD),debug)
3f55f5b8
VS
90ifeq ($(DEBUG_FLAG),default)
91WXDEBUGFLAG = d
92endif
93endif
94ifeq ($(DEBUG_FLAG),1)
250700e4
RD
95WXDEBUGFLAG = d
96endif
97ifeq ($(SHARED),1)
98WXDLLFLAG = dll
99endif
100ifeq ($(UNICODE),1)
101WXUNICODEFLAG = u
102endif
103ifeq ($(WXUNIV),1)
104WXUNIVNAME = univ
105endif
106ifeq ($(BUILD),debug)
3f55f5b8
VS
107ifeq ($(DEBUG_INFO),default)
108__DEBUGINFO = -g
109endif
250700e4
RD
110endif
111ifeq ($(BUILD),release)
3f55f5b8
VS
112ifeq ($(DEBUG_INFO),default)
113__DEBUGINFO =
114endif
115endif
116ifeq ($(DEBUG_INFO),0)
117__DEBUGINFO =
118endif
119ifeq ($(DEBUG_INFO),1)
120__DEBUGINFO = -g
250700e4
RD
121endif
122ifeq ($(BUILD),debug)
3f55f5b8
VS
123ifeq ($(DEBUG_FLAG),default)
124__DEBUG_DEFINE_p = -D__WXDEBUG__
125endif
126endif
127ifeq ($(DEBUG_FLAG),1)
250700e4
RD
128__DEBUG_DEFINE_p = -D__WXDEBUG__
129endif
3f55f5b8
VS
130ifeq ($(USE_GUI),1)
131__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
132endif
133ifeq ($(USE_GUI),1)
134__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
135endif
136ifeq ($(USE_GUI),1)
137__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
138endif
250700e4
RD
139ifeq ($(BUILD),debug)
140__OPTIMIZEFLAG = -O0
141endif
142ifeq ($(BUILD),release)
143__OPTIMIZEFLAG = -O2
144endif
145ifeq ($(UNICODE),1)
146__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
147endif
148ifeq ($(MONOLITHIC),0)
149__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
150endif
151ifeq ($(MONOLITHIC),0)
3f55f5b8
VS
152__WXLIB_CORE_p = \
153 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
250700e4
RD
154endif
155ifeq ($(MONOLITHIC),1)
3f55f5b8
VS
156__WXLIB_MONO_p = \
157 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
250700e4
RD
158endif
159ifeq ($(WXUNIV),1)
160__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
161endif
162ifeq ($(SHARED),1)
3f55f5b8
VS
163__fldll___depname = \
164 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl_gcc$(VENDORTAG).dll
250700e4
RD
165endif
166ifeq ($(SHARED),0)
3f55f5b8
VS
167__fllib___depname = \
168 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.a
250700e4
RD
169endif
170
171
172all: $(OBJS)
173$(OBJS):
174 -if not exist $(OBJS) mkdir $(OBJS)
175
176### Targets: ###
177
178all: $(__fldll___depname) $(__fllib___depname)
179
180$(OBJS)\fldll_antiflickpl.o: ../../src/fl\antiflickpl.cpp
181 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
182
183$(OBJS)\fldll_bardragpl.o: ../../src/fl\bardragpl.cpp
184 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
185
186$(OBJS)\fldll_barhintspl.o: ../../src/fl\barhintspl.cpp
187 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
188
189$(OBJS)\fldll_cbcustom.o: ../../src/fl\cbcustom.cpp
190 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
191
192$(OBJS)\fldll_controlbar.o: ../../src/fl\controlbar.cpp
193 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
194
195$(OBJS)\fldll_dummy.o: ../../src/fl\..\..\..\src\msw\dummy.cpp
196 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
197
198$(OBJS)\fldll_dyntbar.o: ../../src/fl\dyntbar.cpp
199 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
200
201$(OBJS)\fldll_dyntbarhnd.o: ../../src/fl\dyntbarhnd.cpp
202 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
203
204$(OBJS)\fldll_frmview.o: ../../src/fl\frmview.cpp
205 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
206
207$(OBJS)\fldll_garbagec.o: ../../src/fl\garbagec.cpp
208 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
209
210$(OBJS)\fldll_gcupdatesmgr.o: ../../src/fl\gcupdatesmgr.cpp
211 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
212
213$(OBJS)\fldll_hintanimpl.o: ../../src/fl\hintanimpl.cpp
214 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
215
216$(OBJS)\fldll_newbmpbtn.o: ../../src/fl\newbmpbtn.cpp
217 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
218
219$(OBJS)\fldll_panedrawpl.o: ../../src/fl\panedrawpl.cpp
220 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
221
222$(OBJS)\fldll_rowdragpl.o: ../../src/fl\rowdragpl.cpp
223 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
224
225$(OBJS)\fldll_rowlayoutpl.o: ../../src/fl\rowlayoutpl.cpp
226 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
227
228$(OBJS)\fldll_toolwnd.o: ../../src/fl\toolwnd.cpp
229 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
230
231$(OBJS)\fldll_updatesmgr.o: ../../src/fl\updatesmgr.cpp
232 $(CXX) -c -o $@ $(FLDLL_CXXFLAGS) $<
233
234$(OBJS)\fllib_antiflickpl.o: ../../src/fl\antiflickpl.cpp
235 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
236
237$(OBJS)\fllib_bardragpl.o: ../../src/fl\bardragpl.cpp
238 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
239
240$(OBJS)\fllib_barhintspl.o: ../../src/fl\barhintspl.cpp
241 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
242
243$(OBJS)\fllib_cbcustom.o: ../../src/fl\cbcustom.cpp
244 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
245
246$(OBJS)\fllib_controlbar.o: ../../src/fl\controlbar.cpp
247 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
248
249$(OBJS)\fllib_dummy.o: ../../src/fl\..\..\..\src\msw\dummy.cpp
250 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
251
252$(OBJS)\fllib_dyntbar.o: ../../src/fl\dyntbar.cpp
253 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
254
255$(OBJS)\fllib_dyntbarhnd.o: ../../src/fl\dyntbarhnd.cpp
256 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
257
258$(OBJS)\fllib_frmview.o: ../../src/fl\frmview.cpp
259 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
260
261$(OBJS)\fllib_garbagec.o: ../../src/fl\garbagec.cpp
262 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
263
264$(OBJS)\fllib_gcupdatesmgr.o: ../../src/fl\gcupdatesmgr.cpp
265 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
266
267$(OBJS)\fllib_hintanimpl.o: ../../src/fl\hintanimpl.cpp
268 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
269
270$(OBJS)\fllib_newbmpbtn.o: ../../src/fl\newbmpbtn.cpp
271 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
272
273$(OBJS)\fllib_panedrawpl.o: ../../src/fl\panedrawpl.cpp
274 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
275
276$(OBJS)\fllib_rowdragpl.o: ../../src/fl\rowdragpl.cpp
277 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
278
279$(OBJS)\fllib_rowlayoutpl.o: ../../src/fl\rowlayoutpl.cpp
280 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
281
282$(OBJS)\fllib_toolwnd.o: ../../src/fl\toolwnd.cpp
283 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
284
285$(OBJS)\fllib_updatesmgr.o: ../../src/fl\updatesmgr.cpp
286 $(CXX) -c -o $@ $(FLLIB_CXXFLAGS) $<
287
288clean:
289 -if exist $(OBJS)\*.o del $(OBJS)\*.o
3f55f5b8
VS
290 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl_gcc$(VENDORTAG).dll
291 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.a
292 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.a
250700e4
RD
293
294ifeq ($(SHARED),1)
3f55f5b8
VS
295$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl_gcc$(VENDORTAG).dll: $(FLDLL_OBJECTS)
296 $(CXX) -shared -o $@ $(FLDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.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)
250700e4
RD
297endif
298
299ifeq ($(SHARED),0)
3f55f5b8 300$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.a: $(FLLIB_OBJECTS)
250700e4 301 if exist $@ del $@
3f55f5b8 302 ar rcu $@ $(FLLIB_OBJECTS)
250700e4
RD
303 ranlib $@
304endif
305
306.PHONY: all clean