]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/samples/fl/makefile.gcc
Patch from Will Sadkin:
[wxWidgets.git] / contrib / samples / fl / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.4 (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
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19FL_DEMO1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
22 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
23 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
24 $(CPPFLAGS) $(CXXFLAGS)
25FL_DEMO1_OBJECTS = \
26 $(OBJS)\fl_demo1_fl_demo1.o \
27 $(OBJS)\fl_demo1_fl_demo1_rc.o
28FL_DEMO2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
29 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
31 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
32 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
33 $(CPPFLAGS) $(CXXFLAGS)
34FL_DEMO2_OBJECTS = \
35 $(OBJS)\fl_demo2_fl_demo2.o \
36 $(OBJS)\fl_demo2_fl_demo2_rc.o
37FL_SAMPLE1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
38 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
39 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
40 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
41 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
42 $(CPPFLAGS) $(CXXFLAGS)
43FL_SAMPLE1_OBJECTS = \
44 $(OBJS)\fl_sample1_fl_sample1.o \
45 $(OBJS)\fl_sample1_fl_sample1_rc.o
46FL_SAMPLE2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
47 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
48 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
49 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
50 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
51 $(CPPFLAGS) $(CXXFLAGS)
52FL_SAMPLE2_OBJECTS = \
53 $(OBJS)\fl_sample2_fl_sample2.o \
54 $(OBJS)\fl_sample2_fl_sample2_rc.o
55FL_SAMPLE3_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
56 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
57 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
58 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
59 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
60 $(CPPFLAGS) $(CXXFLAGS)
61FL_SAMPLE3_OBJECTS = \
62 $(OBJS)\fl_sample3_fl_sample3.o \
63 $(OBJS)\fl_sample3_fl_sample3_rc.o
64
65### Conditionally set variables: ###
66
67ifeq ($(GCC_VERSION),2.95)
68GCCFLAGS = -fvtable-thunks
69endif
70ifeq ($(USE_GUI),0)
71PORTNAME = base
72endif
73ifeq ($(USE_GUI),1)
74PORTNAME = msw
75endif
76ifeq ($(BUILD),debug)
77ifeq ($(DEBUG_FLAG),default)
78WXDEBUGFLAG = d
79endif
80endif
81ifeq ($(DEBUG_FLAG),1)
82WXDEBUGFLAG = d
83endif
84ifeq ($(UNICODE),1)
85WXUNICODEFLAG = u
86endif
87ifeq ($(WXUNIV),1)
88WXUNIVNAME = univ
89endif
90ifeq ($(SHARED),1)
91WXDLLFLAG = dll
92endif
93ifeq ($(BUILD),debug)
94__OPTIMIZEFLAG = -O0
95endif
96ifeq ($(BUILD),release)
97__OPTIMIZEFLAG = -O2
98endif
99ifeq ($(USE_EXCEPTIONS),0)
100__EXCEPTIONSFLAG = -fno-rtti
101endif
102ifeq ($(USE_EXCEPTIONS),1)
103__EXCEPTIONSFLAG =
104endif
105ifeq ($(USE_EXCEPTIONS),0)
106__EXCEPTIONSFLAG_3 = -fno-exceptions
107endif
108ifeq ($(USE_EXCEPTIONS),1)
109__EXCEPTIONSFLAG_3 =
110endif
111ifeq ($(WXUNIV),1)
112__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
113endif
114ifeq ($(WXUNIV),1)
115__WXUNIV_DEFINE_p_12 = --define __WXUNIVERSAL__
116endif
117ifeq ($(BUILD),debug)
118ifeq ($(DEBUG_FLAG),default)
119__DEBUG_DEFINE_p = -D__WXDEBUG__
120endif
121endif
122ifeq ($(DEBUG_FLAG),1)
123__DEBUG_DEFINE_p = -D__WXDEBUG__
124endif
125ifeq ($(BUILD),debug)
126ifeq ($(DEBUG_FLAG),default)
127__DEBUG_DEFINE_p_12 = --define __WXDEBUG__
128endif
129endif
130ifeq ($(DEBUG_FLAG),1)
131__DEBUG_DEFINE_p_12 = --define __WXDEBUG__
132endif
133ifeq ($(UNICODE),1)
134__UNICODE_DEFINE_p = -D_UNICODE
135endif
136ifeq ($(UNICODE),1)
137__UNICODE_DEFINE_p_12 = --define _UNICODE
138endif
139ifeq ($(SHARED),0)
140LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
141endif
142ifeq ($(SHARED),1)
143LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
144endif
145ifeq ($(SHARED),1)
146__DLLFLAG_p = -DWXUSINGDLL
147endif
148ifeq ($(SHARED),1)
149__DLLFLAG_p_12 = --define WXUSINGDLL
150endif
151ifeq ($(MONOLITHIC),0)
152__WXLIB_CORE_p = \
153 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
154endif
155ifeq ($(MONOLITHIC),0)
156__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
157endif
158ifeq ($(MONOLITHIC),1)
159__WXLIB_MONO_p = \
160 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
161endif
162ifeq ($(USE_GUI),1)
163__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
164endif
165ifeq ($(USE_GUI),1)
166__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
167endif
168ifeq ($(USE_GUI),1)
169__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
170endif
171ifeq ($(MSLU),1)
172__UNICOWS_LIB_p = -lunicows
173endif
174ifeq ($(BUILD),debug)
175ifeq ($(DEBUG_INFO),default)
176__DEBUGINFO = -g
177endif
178endif
179ifeq ($(BUILD),release)
180ifeq ($(DEBUG_INFO),default)
181__DEBUGINFO =
182endif
183endif
184ifeq ($(DEBUG_INFO),0)
185__DEBUGINFO =
186endif
187ifeq ($(DEBUG_INFO),1)
188__DEBUGINFO = -g
189endif
190
191
192all: $(OBJS)
193$(OBJS):
194 -if not exist $(OBJS) mkdir $(OBJS)
195
196### Targets: ###
197
198all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
199
200clean:
201 -if exist $(OBJS)\*.o del $(OBJS)\*.o
202 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
203 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
204 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
205 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
206 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
207
208$(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
209 $(CXX) -o $@ $(FL_DEMO1_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
210
211$(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
212 $(CXX) -o $@ $(FL_DEMO2_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
213
214$(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
215 $(CXX) -o $@ $(FL_SAMPLE1_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
216
217$(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
218 $(CXX) -o $@ $(FL_SAMPLE2_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
219
220$(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
221 $(CXX) -o $@ $(FL_SAMPLE3_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
222
223data_files:
224 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
225 for %%f in (bookmarks.bmp class_icon.bmp class_icon1.bmp copy.bmp cut.bmp file_icon.bmp folder_icon.bmp help_icon.bmp new.bmp nextmark.bmp open.bmp paste.bmp prevmark.bmp res_icon.bmp save.bmp saveall.bmp search.bmp start95_dp.bmp start95_pr.bmp tile.bmp) do if not exist $(OBJS)\bitmaps\%%f copy .\bitmaps\%%f $(OBJS)\bitmaps
226
227$(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
228 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
229
230$(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
231 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
232
233$(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
234 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
235
236$(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
237 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
238
239$(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
240 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
241
242$(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
243 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
244
245$(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
246 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
247
248$(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
249 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
250
251$(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
252 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
253
254$(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
255 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
256
257.PHONY: all clean data_files