]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/samples/fl/makefile.gcc
Sample update - wxTE_AUTO_URL from Mart R. [patch 1126182]
[wxWidgets.git] / contrib / samples / fl / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.6 (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
15WX_RELEASE_NODOT = 25
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21FL_DEMO1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
25 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
26 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
27FL_DEMO1_OBJECTS = \
28 $(OBJS)\fl_demo1_fl_demo1.o \
29 $(OBJS)\fl_demo1_fl_demo1_rc.o
30FL_DEMO2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
31 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
33 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
34 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
35 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
36FL_DEMO2_OBJECTS = \
37 $(OBJS)\fl_demo2_fl_demo2.o \
38 $(OBJS)\fl_demo2_fl_demo2_rc.o
39FL_SAMPLE1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
40 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
41 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
42 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
43 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
44 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
45FL_SAMPLE1_OBJECTS = \
46 $(OBJS)\fl_sample1_fl_sample1.o \
47 $(OBJS)\fl_sample1_fl_sample1_rc.o
48FL_SAMPLE2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
49 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
50 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
51 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
52 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
53 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
54FL_SAMPLE2_OBJECTS = \
55 $(OBJS)\fl_sample2_fl_sample2.o \
56 $(OBJS)\fl_sample2_fl_sample2_rc.o
57FL_SAMPLE3_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
58 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
59 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
60 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
61 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
62 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
63FL_SAMPLE3_OBJECTS = \
64 $(OBJS)\fl_sample3_fl_sample3.o \
65 $(OBJS)\fl_sample3_fl_sample3_rc.o
66
67### Conditionally set variables: ###
68
69ifeq ($(GCC_VERSION),2.95)
70GCCFLAGS = -fvtable-thunks
71endif
72ifeq ($(USE_GUI),0)
73PORTNAME = base
74endif
75ifeq ($(USE_GUI),1)
76PORTNAME = msw
77endif
78ifeq ($(BUILD),debug)
79ifeq ($(DEBUG_FLAG),default)
80WXDEBUGFLAG = d
81endif
82endif
83ifeq ($(DEBUG_FLAG),1)
84WXDEBUGFLAG = d
85endif
86ifeq ($(UNICODE),1)
87WXUNICODEFLAG = u
88endif
89ifeq ($(WXUNIV),1)
90WXUNIVNAME = univ
91endif
92ifeq ($(SHARED),1)
93WXDLLFLAG = dll
94endif
95ifeq ($(SHARED),0)
96LIBTYPE_SUFFIX = lib
97endif
98ifeq ($(SHARED),1)
99LIBTYPE_SUFFIX = dll
100endif
101ifeq ($(MONOLITHIC),0)
102EXTRALIBS_FOR_BASE =
103endif
104ifeq ($(MONOLITHIC),1)
105EXTRALIBS_FOR_BASE =
106endif
107ifeq ($(BUILD),debug)
108__OPTIMIZEFLAG = -O0
109endif
110ifeq ($(BUILD),release)
111__OPTIMIZEFLAG = -O2
112endif
113ifeq ($(USE_EXCEPTIONS),0)
114__EXCEPTIONSFLAG = -fno-rtti
115endif
116ifeq ($(USE_EXCEPTIONS),1)
117__EXCEPTIONSFLAG =
118endif
119ifeq ($(USE_EXCEPTIONS),0)
120__EXCEPTIONSFLAG_3 = -fno-exceptions
121endif
122ifeq ($(USE_EXCEPTIONS),1)
123__EXCEPTIONSFLAG_3 =
124endif
125ifeq ($(WXUNIV),1)
126__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
127endif
128ifeq ($(WXUNIV),1)
129__WXUNIV_DEFINE_p_12 = --define __WXUNIVERSAL__
130endif
131ifeq ($(BUILD),debug)
132ifeq ($(DEBUG_FLAG),default)
133__DEBUG_DEFINE_p = -D__WXDEBUG__
134endif
135endif
136ifeq ($(DEBUG_FLAG),1)
137__DEBUG_DEFINE_p = -D__WXDEBUG__
138endif
139ifeq ($(BUILD),debug)
140ifeq ($(DEBUG_FLAG),default)
141__DEBUG_DEFINE_p_12 = --define __WXDEBUG__
142endif
143endif
144ifeq ($(DEBUG_FLAG),1)
145__DEBUG_DEFINE_p_12 = --define __WXDEBUG__
146endif
147ifeq ($(UNICODE),1)
148__UNICODE_DEFINE_p = -D_UNICODE
149endif
150ifeq ($(UNICODE),1)
151__UNICODE_DEFINE_p_12 = --define _UNICODE
152endif
153ifeq ($(SHARED),1)
154__DLLFLAG_p = -DWXUSINGDLL
155endif
156ifeq ($(SHARED),1)
157__DLLFLAG_p_12 = --define WXUSINGDLL
158endif
159ifeq ($(MONOLITHIC),0)
160__WXLIB_CORE_p = \
161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
162endif
163ifeq ($(MONOLITHIC),0)
164__WXLIB_BASE_p = \
165 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
166endif
167ifeq ($(MONOLITHIC),1)
168__WXLIB_MONO_p = \
169 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
170endif
171ifeq ($(USE_GUI),1)
172__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
173endif
174ifeq ($(USE_GUI),1)
175__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
176endif
177ifeq ($(USE_GUI),1)
178__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
179endif
180ifeq ($(MSLU),1)
181__UNICOWS_LIB_p = -lunicows
182endif
183ifeq ($(BUILD),debug)
184ifeq ($(DEBUG_INFO),default)
185__DEBUGINFO = -g
186endif
187endif
188ifeq ($(BUILD),release)
189ifeq ($(DEBUG_INFO),default)
190__DEBUGINFO =
191endif
192endif
193ifeq ($(DEBUG_INFO),0)
194__DEBUGINFO =
195endif
196ifeq ($(DEBUG_INFO),1)
197__DEBUGINFO = -g
198endif
199
200
201all: $(OBJS)
202$(OBJS):
203 -if not exist $(OBJS) mkdir $(OBJS)
204
205### Targets: ###
206
207all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
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)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_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) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
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)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_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) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
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)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_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) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
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)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_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) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
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)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_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) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
231
232data_files:
233 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
234 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
235
236$(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
237 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
238
239$(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
240 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 --define NOPCH --include-dir ./../../include --define BMP_DIR="bitmaps/"
241
242$(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
243 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
244
245$(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
246 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 --define NOPCH --include-dir ./../../include --define BMP_DIR="bitmaps/"
247
248$(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
249 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
250
251$(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
252 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 --define NOPCH --include-dir ./../../include --define BMP_DIR="bitmaps/"
253
254$(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
255 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
256
257$(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
258 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 --define NOPCH --include-dir ./../../include --define BMP_DIR="bitmaps/"
259
260$(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
261 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
262
263$(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
264 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 --define NOPCH --include-dir ./../../include --define BMP_DIR="bitmaps/"
265
266.PHONY: all clean data_files
267