]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/samples/fl/makefile.gcc
Ignore Borland build directory; Ignore 3 .lib files generated by DigitalMars.
[wxWidgets.git] / contrib / samples / fl / makefile.gcc
... / ...
CommitLineData
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/msw/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$(SETUPHDIR) -Wall -I. \
18 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
19 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS) $(__EXCEPTIONSFLAG) \
20 $(__EXCEPTIONSFLAG_1)
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$(SETUPHDIR) -Wall -I. \
27 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
28 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS) $(__EXCEPTIONSFLAG) \
29 $(__EXCEPTIONSFLAG_1)
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$(SETUPHDIR) -Wall -I. \
36 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
37 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS) $(__EXCEPTIONSFLAG) \
38 $(__EXCEPTIONSFLAG_1)
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$(SETUPHDIR) -Wall -I. \
45 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
46 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS) $(__EXCEPTIONSFLAG) \
47 $(__EXCEPTIONSFLAG_1)
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$(SETUPHDIR) -Wall -I. \
54 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
55 -DBMP_DIR=\"bitmaps/\" $(CXXFLAGS) $(__EXCEPTIONSFLAG) \
56 $(__EXCEPTIONSFLAG_1)
57FL_SAMPLE3_OBJECTS = \
58 $(OBJS)\fl_sample3_fl_sample3.o \
59 $(OBJS)\fl_sample3_fl_sample3_rc.o
60OBJS = \
61 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
62SETUPHDIR = \
63 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
64
65### Conditionally set variables: ###
66
67ifeq ($(GCC_VERSION),2.95)
68GCCFLAGS = -fvtable-thunks
69endif
70ifeq ($(SHARED),0)
71LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
72endif
73ifeq ($(SHARED),1)
74LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
75endif
76ifeq ($(USE_GUI),0)
77PORTNAME = base
78endif
79ifeq ($(USE_GUI),1)
80PORTNAME = msw
81endif
82ifeq ($(BUILD),debug)
83ifeq ($(DEBUG_FLAG),default)
84WXDEBUGFLAG = d
85endif
86endif
87ifeq ($(DEBUG_FLAG),1)
88WXDEBUGFLAG = d
89endif
90ifeq ($(SHARED),1)
91WXDLLFLAG = dll
92endif
93ifeq ($(UNICODE),1)
94WXUNICODEFLAG = u
95endif
96ifeq ($(WXUNIV),1)
97WXUNIVNAME = univ
98endif
99ifeq ($(BUILD),debug)
100ifeq ($(DEBUG_INFO),default)
101__DEBUGINFO = -g
102endif
103endif
104ifeq ($(BUILD),release)
105ifeq ($(DEBUG_INFO),default)
106__DEBUGINFO =
107endif
108endif
109ifeq ($(DEBUG_INFO),0)
110__DEBUGINFO =
111endif
112ifeq ($(DEBUG_INFO),1)
113__DEBUGINFO = -g
114endif
115ifeq ($(BUILD),debug)
116ifeq ($(DEBUG_FLAG),default)
117__DEBUG_DEFINE_p = -D__WXDEBUG__
118endif
119endif
120ifeq ($(DEBUG_FLAG),1)
121__DEBUG_DEFINE_p = -D__WXDEBUG__
122endif
123ifeq ($(BUILD),debug)
124ifeq ($(DEBUG_FLAG),default)
125__DEBUG_DEFINE_p_14 = --define __WXDEBUG__
126endif
127endif
128ifeq ($(DEBUG_FLAG),1)
129__DEBUG_DEFINE_p_14 = --define __WXDEBUG__
130endif
131ifeq ($(SHARED),1)
132__DLLFLAG_p = -DWXUSINGDLL
133endif
134ifeq ($(SHARED),1)
135__DLLFLAG_p_12 = --define WXUSINGDLL
136endif
137ifeq ($(USE_EXCEPTIONS),0)
138__EXCEPTIONSFLAG = -fno-rtti
139endif
140ifeq ($(USE_EXCEPTIONS),1)
141__EXCEPTIONSFLAG =
142endif
143ifeq ($(USE_EXCEPTIONS),0)
144__EXCEPTIONSFLAG_1 = -fno-exceptions
145endif
146ifeq ($(USE_EXCEPTIONS),1)
147__EXCEPTIONSFLAG_1 =
148endif
149ifeq ($(USE_GUI),1)
150__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
151endif
152ifeq ($(USE_GUI),1)
153__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
154endif
155ifeq ($(USE_GUI),1)
156__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
157endif
158ifeq ($(BUILD),debug)
159__OPTIMIZEFLAG = -O0
160endif
161ifeq ($(BUILD),release)
162__OPTIMIZEFLAG = -O2
163endif
164ifeq ($(UNICODE),1)
165__UNICODE_DEFINE_p = -D_UNICODE
166endif
167ifeq ($(UNICODE),1)
168__UNICODE_DEFINE_p_14 = --define _UNICODE
169endif
170ifeq ($(MSLU),1)
171__UNICOWS_LIB_p = -lunicows
172endif
173ifeq ($(MONOLITHIC),0)
174__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
175endif
176ifeq ($(MONOLITHIC),0)
177__WXLIB_CORE_p = \
178 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
179endif
180ifeq ($(MONOLITHIC),1)
181__WXLIB_MONO_p = \
182 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
183endif
184ifeq ($(WXUNIV),1)
185__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
186endif
187ifeq ($(WXUNIV),1)
188__WXUNIV_DEFINE_p_11 = --define __WXUNIVERSAL__
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
200$(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
201 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
202
203$(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
204 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 $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
205
206$(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
207 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
208
209$(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
210 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 $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
211
212$(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
213 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
214
215$(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
216 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 $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
217
218$(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
219 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
220
221$(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
222 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 $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
223
224$(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
225 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
226
227$(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
228 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 $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
229
230clean:
231 -if exist $(OBJS)\*.o del $(OBJS)\*.o
232 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
233 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
234 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
235 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
236 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
237
238data_files:
239 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
240 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
241
242$(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
243 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
244
245$(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
246 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
247
248$(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
249 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
250
251$(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
252 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
253
254$(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
255 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
256
257.PHONY: all clean data_files