]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/fl/makefile.gcc
Patch from Will Sadkin:
[wxWidgets.git] / contrib / samples / fl / makefile.gcc
CommitLineData
03206f17
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
03206f17
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
03206f17
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
b17c1746
DE
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 19FL_DEMO1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
03206f17 20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395
JS
21 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
22 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
69ada15b 23 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
9bfe7ad9 24 $(CPPFLAGS) $(CXXFLAGS)
03206f17
VS
25FL_DEMO1_OBJECTS = \
26 $(OBJS)\fl_demo1_fl_demo1.o \
27 $(OBJS)\fl_demo1_fl_demo1_rc.o
9bfe7ad9 28FL_DEMO2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
03206f17 29 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395
JS
30 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
31 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
69ada15b 32 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
9bfe7ad9 33 $(CPPFLAGS) $(CXXFLAGS)
03206f17
VS
34FL_DEMO2_OBJECTS = \
35 $(OBJS)\fl_demo2_fl_demo2.o \
36 $(OBJS)\fl_demo2_fl_demo2_rc.o
9bfe7ad9 37FL_SAMPLE1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
03206f17 38 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395
JS
39 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
40 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
69ada15b 41 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
9bfe7ad9 42 $(CPPFLAGS) $(CXXFLAGS)
03206f17
VS
43FL_SAMPLE1_OBJECTS = \
44 $(OBJS)\fl_sample1_fl_sample1.o \
45 $(OBJS)\fl_sample1_fl_sample1_rc.o
9bfe7ad9 46FL_SAMPLE2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
03206f17 47 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395
JS
48 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
49 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
69ada15b 50 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
9bfe7ad9 51 $(CPPFLAGS) $(CXXFLAGS)
03206f17
VS
52FL_SAMPLE2_OBJECTS = \
53 $(OBJS)\fl_sample2_fl_sample2.o \
54 $(OBJS)\fl_sample2_fl_sample2_rc.o
9bfe7ad9 55FL_SAMPLE3_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
03206f17 56 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395
JS
57 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
58 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
69ada15b 59 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
9bfe7ad9 60 $(CPPFLAGS) $(CXXFLAGS)
03206f17
VS
61FL_SAMPLE3_OBJECTS = \
62 $(OBJS)\fl_sample3_fl_sample3.o \
63 $(OBJS)\fl_sample3_fl_sample3_rc.o
03206f17
VS
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
03206f17
VS
84ifeq ($(UNICODE),1)
85WXUNICODEFLAG = u
86endif
87ifeq ($(WXUNIV),1)
88WXUNIVNAME = univ
89endif
b17c1746
DE
90ifeq ($(SHARED),1)
91WXDLLFLAG = dll
03206f17 92endif
b17c1746
DE
93ifeq ($(BUILD),debug)
94__OPTIMIZEFLAG = -O0
03206f17
VS
95endif
96ifeq ($(BUILD),release)
b17c1746 97__OPTIMIZEFLAG = -O2
03206f17 98endif
b17c1746
DE
99ifeq ($(USE_EXCEPTIONS),0)
100__EXCEPTIONSFLAG = -fno-rtti
03206f17 101endif
b17c1746
DE
102ifeq ($(USE_EXCEPTIONS),1)
103__EXCEPTIONSFLAG =
03206f17 104endif
b17c1746
DE
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__
03206f17
VS
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)
b17c1746 127__DEBUG_DEFINE_p_12 = --define __WXDEBUG__
03206f17
VS
128endif
129endif
130ifeq ($(DEBUG_FLAG),1)
b17c1746
DE
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)
03206f17
VS
144endif
145ifeq ($(SHARED),1)
146__DLLFLAG_p = -DWXUSINGDLL
147endif
148ifeq ($(SHARED),1)
b17c1746 149__DLLFLAG_p_12 = --define WXUSINGDLL
03206f17 150endif
b17c1746
DE
151ifeq ($(MONOLITHIC),0)
152__WXLIB_CORE_p = \
153 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
a4ad36cd 154endif
b17c1746
DE
155ifeq ($(MONOLITHIC),0)
156__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
a4ad36cd 157endif
b17c1746
DE
158ifeq ($(MONOLITHIC),1)
159__WXLIB_MONO_p = \
160 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
a4ad36cd 161endif
b17c1746
DE
162ifeq ($(USE_GUI),1)
163__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
a4ad36cd 164endif
03206f17
VS
165ifeq ($(USE_GUI),1)
166__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
167endif
168ifeq ($(USE_GUI),1)
169__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
170endif
2265a2d5
VS
171ifeq ($(MSLU),1)
172__UNICOWS_LIB_p = -lunicows
173endif
b17c1746
DE
174ifeq ($(BUILD),debug)
175ifeq ($(DEBUG_INFO),default)
176__DEBUGINFO = -g
03206f17 177endif
03206f17 178endif
b17c1746
DE
179ifeq ($(BUILD),release)
180ifeq ($(DEBUG_INFO),default)
181__DEBUGINFO =
03206f17 182endif
03206f17 183endif
b17c1746
DE
184ifeq ($(DEBUG_INFO),0)
185__DEBUGINFO =
186endif
187ifeq ($(DEBUG_INFO),1)
188__DEBUGINFO = -g
03206f17
VS
189endif
190
191
192all: $(OBJS)
193$(OBJS):
194 -if not exist $(OBJS) mkdir $(OBJS)
195
196### Targets: ###
197
9d5f4fbb 198all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
03206f17 199
b17c1746
DE
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
b92ca8cf 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
b17c1746
DE
210
211$(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
b92ca8cf 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
b17c1746
DE
213
214$(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
b92ca8cf 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
b17c1746
DE
216
217$(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
b92ca8cf 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
b17c1746
DE
219
220$(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
b92ca8cf 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
b17c1746
DE
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
9d5f4fbb 227$(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
03206f17
VS
228 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
229
9d5f4fbb 230$(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
b17c1746 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/"
03206f17 232
9d5f4fbb 233$(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
03206f17
VS
234 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
235
9d5f4fbb 236$(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
b17c1746 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/"
03206f17 238
9d5f4fbb 239$(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
03206f17
VS
240 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
241
9d5f4fbb 242$(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
b17c1746 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/"
03206f17 244
9d5f4fbb 245$(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
03206f17
VS
246 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
247
9d5f4fbb 248$(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
b17c1746 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/"
03206f17 250
9d5f4fbb 251$(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
03206f17
VS
252 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
253
9d5f4fbb 254$(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
b17c1746 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/"
03206f17 256
9d5f4fbb 257.PHONY: all clean data_files