]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/fl/makefile.gcc
added wxDbGrid
[wxWidgets.git] / contrib / samples / fl / makefile.gcc
CommitLineData
03206f17
VS
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
7include ../../../build/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15FL_DEMO1_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
18 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
19 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
20 $(__DLLFLAG_p) -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
21FL_DEMO1_OBJECTS = \
22 $(OBJS)\fl_demo1_fl_demo1.o \
23 $(OBJS)\fl_demo1_fl_demo1_rc.o
24FL_DEMO2_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
25 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
27 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
28 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
29 $(__DLLFLAG_p) -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
30FL_DEMO2_OBJECTS = \
31 $(OBJS)\fl_demo2_fl_demo2.o \
32 $(OBJS)\fl_demo2_fl_demo2_rc.o
33FL_SAMPLE1_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
35 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
36 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
37 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
38 $(__DLLFLAG_p) -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
39FL_SAMPLE1_OBJECTS = \
40 $(OBJS)\fl_sample1_fl_sample1.o \
41 $(OBJS)\fl_sample1_fl_sample1_rc.o
42FL_SAMPLE2_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
43 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
44 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
45 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
46 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
47 $(__DLLFLAG_p) -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
48FL_SAMPLE2_OBJECTS = \
49 $(OBJS)\fl_sample2_fl_sample2.o \
50 $(OBJS)\fl_sample2_fl_sample2_rc.o
51FL_SAMPLE3_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
52 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
53 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
54 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
55 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
56 $(__DLLFLAG_p) -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS)
57FL_SAMPLE3_OBJECTS = \
58 $(OBJS)\fl_sample3_fl_sample3.o \
59 $(OBJS)\fl_sample3_fl_sample3_rc.o
60LIBDIRNAME = \
61 .\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
62OBJS = \
63 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
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 ($(SHARED),1)
85WXDLLFLAG = dll
86endif
87ifeq ($(UNICODE),1)
88WXUNICODEFLAG = u
89endif
90ifeq ($(WXUNIV),1)
91WXUNIVNAME = univ
92endif
93ifeq ($(BUILD),debug)
94ifeq ($(DEBUG_INFO),default)
95__DEBUGINFO = -g
96endif
97endif
98ifeq ($(BUILD),release)
99ifeq ($(DEBUG_INFO),default)
100__DEBUGINFO =
101endif
102endif
103ifeq ($(DEBUG_INFO),0)
104__DEBUGINFO =
105endif
106ifeq ($(DEBUG_INFO),1)
107__DEBUGINFO = -g
108endif
109ifeq ($(BUILD),debug)
110ifeq ($(DEBUG_FLAG),default)
111__DEBUG_DEFINE_p = -D__WXDEBUG__
112endif
113endif
114ifeq ($(DEBUG_FLAG),1)
115__DEBUG_DEFINE_p = -D__WXDEBUG__
116endif
117ifeq ($(BUILD),debug)
118ifeq ($(DEBUG_FLAG),default)
119__DEBUG_DEFINE_p_14 = --define __WXDEBUG__
120endif
121endif
122ifeq ($(DEBUG_FLAG),1)
123__DEBUG_DEFINE_p_14 = --define __WXDEBUG__
124endif
125ifeq ($(SHARED),1)
126__DLLFLAG_p = -DWXUSINGDLL
127endif
128ifeq ($(SHARED),1)
129__DLLFLAG_p_12 = --define WXUSINGDLL
130endif
131ifeq ($(USE_GUI),1)
132__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
133endif
134ifeq ($(USE_GUI),1)
135__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
136endif
137ifeq ($(USE_GUI),1)
138__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
139endif
140ifeq ($(BUILD),debug)
141__OPTIMIZEFLAG = -O0
142endif
143ifeq ($(BUILD),release)
144__OPTIMIZEFLAG = -O2
145endif
146ifeq ($(UNICODE),1)
147__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
148endif
149ifeq ($(UNICODE),1)
150__UNICODE_DEFINE_p_14 = --define wxUSE_UNICODE=1
151endif
152ifeq ($(MONOLITHIC),0)
153__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
154endif
155ifeq ($(MONOLITHIC),0)
156__WXLIB_CORE_p = \
157 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
158endif
159ifeq ($(MONOLITHIC),1)
160__WXLIB_MONO_p = \
161 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
162endif
163ifeq ($(WXUNIV),1)
164__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
165endif
166ifeq ($(WXUNIV),1)
167__WXUNIV_DEFINE_p_11 = --define __WXUNIVERSAL__
168endif
169
170
171all: $(OBJS)
172$(OBJS):
173 -if not exist $(OBJS) mkdir $(OBJS)
174
175### Targets: ###
176
177all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe
178
179$(OBJS)\fl_demo1_fl_demo1.o: .\fl_demo1.cpp
180 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
181
182$(OBJS)\fl_demo1_fl_demo1_rc.o: .\fl_demo1.rc
183 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_14) --include-dir ./../../../include --include-dir $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../include --define BMP_DIR=\"bitmaps/\"
184
185$(OBJS)\fl_demo2_fl_demo2.o: .\fl_demo2.cpp
186 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
187
188$(OBJS)\fl_demo2_fl_demo2_rc.o: .\fl_demo2.rc
189 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_14) --include-dir ./../../../include --include-dir $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../include --define BMP_DIR=\"bitmaps/\"
190
191$(OBJS)\fl_sample1_fl_sample1.o: .\fl_sample1.cpp
192 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
193
194$(OBJS)\fl_sample1_fl_sample1_rc.o: .\fl_sample1.rc
195 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_14) --include-dir ./../../../include --include-dir $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../include --define BMP_DIR=\"bitmaps/\"
196
197$(OBJS)\fl_sample2_fl_sample2.o: .\fl_sample2.cpp
198 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
199
200$(OBJS)\fl_sample2_fl_sample2_rc.o: .\fl_sample2.rc
201 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_14) --include-dir ./../../../include --include-dir $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../include --define BMP_DIR=\"bitmaps/\"
202
203$(OBJS)\fl_sample3_fl_sample3.o: .\fl_sample3.cpp
204 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
205
206$(OBJS)\fl_sample3_fl_sample3_rc.o: .\fl_sample3.rc
207 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_14) --include-dir ./../../../include --include-dir $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../include --define BMP_DIR=\"bitmaps/\"
208
209clean:
210 -if exist $(OBJS)\*.o del $(OBJS)\*.o
211 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
212 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
213 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
214 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
215 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
216
217$(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
218 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
219
220$(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
221 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
222
223$(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
224 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
225
226$(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
227 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
228
229$(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
230 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
231
232.PHONY: all clean