]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/fl/makefile.gcc
wxURI. Move Convert/to/fromURI into uri.cpp so that it is compiled in base. Regener...
[wxWidgets.git] / contrib / samples / fl / makefile.gcc
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
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 FL_DEMO1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
21 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
23 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
24 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
25 $(CPPFLAGS) $(CXXFLAGS)
26 FL_DEMO1_OBJECTS = \
27 $(OBJS)\fl_demo1_fl_demo1.o \
28 $(OBJS)\fl_demo1_fl_demo1_rc.o
29 FL_DEMO2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
30 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
31 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
32 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
33 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
34 $(CPPFLAGS) $(CXXFLAGS)
35 FL_DEMO2_OBJECTS = \
36 $(OBJS)\fl_demo2_fl_demo2.o \
37 $(OBJS)\fl_demo2_fl_demo2_rc.o
38 FL_SAMPLE1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
39 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
40 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
41 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
42 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
43 $(CPPFLAGS) $(CXXFLAGS)
44 FL_SAMPLE1_OBJECTS = \
45 $(OBJS)\fl_sample1_fl_sample1.o \
46 $(OBJS)\fl_sample1_fl_sample1_rc.o
47 FL_SAMPLE2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
48 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
49 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
50 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
51 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
52 $(CPPFLAGS) $(CXXFLAGS)
53 FL_SAMPLE2_OBJECTS = \
54 $(OBJS)\fl_sample2_fl_sample2.o \
55 $(OBJS)\fl_sample2_fl_sample2_rc.o
56 FL_SAMPLE3_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
57 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
58 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
59 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
60 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
61 $(CPPFLAGS) $(CXXFLAGS)
62 FL_SAMPLE3_OBJECTS = \
63 $(OBJS)\fl_sample3_fl_sample3.o \
64 $(OBJS)\fl_sample3_fl_sample3_rc.o
65
66 ### Conditionally set variables: ###
67
68 ifeq ($(GCC_VERSION),2.95)
69 GCCFLAGS = -fvtable-thunks
70 endif
71 ifeq ($(USE_GUI),0)
72 PORTNAME = base
73 endif
74 ifeq ($(USE_GUI),1)
75 PORTNAME = msw
76 endif
77 ifeq ($(BUILD),debug)
78 ifeq ($(DEBUG_FLAG),default)
79 WXDEBUGFLAG = d
80 endif
81 endif
82 ifeq ($(DEBUG_FLAG),1)
83 WXDEBUGFLAG = d
84 endif
85 ifeq ($(UNICODE),1)
86 WXUNICODEFLAG = u
87 endif
88 ifeq ($(WXUNIV),1)
89 WXUNIVNAME = univ
90 endif
91 ifeq ($(SHARED),1)
92 WXDLLFLAG = dll
93 endif
94 ifeq ($(MONOLITHIC),0)
95 EXTRALIBS_FOR_BASE =
96 endif
97 ifeq ($(MONOLITHIC),1)
98 EXTRALIBS_FOR_BASE =
99 endif
100 ifeq ($(BUILD),debug)
101 __OPTIMIZEFLAG = -O0
102 endif
103 ifeq ($(BUILD),release)
104 __OPTIMIZEFLAG = -O2
105 endif
106 ifeq ($(USE_EXCEPTIONS),0)
107 __EXCEPTIONSFLAG = -fno-rtti
108 endif
109 ifeq ($(USE_EXCEPTIONS),1)
110 __EXCEPTIONSFLAG =
111 endif
112 ifeq ($(USE_EXCEPTIONS),0)
113 __EXCEPTIONSFLAG_3 = -fno-exceptions
114 endif
115 ifeq ($(USE_EXCEPTIONS),1)
116 __EXCEPTIONSFLAG_3 =
117 endif
118 ifeq ($(WXUNIV),1)
119 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
120 endif
121 ifeq ($(WXUNIV),1)
122 __WXUNIV_DEFINE_p_12 = --define __WXUNIVERSAL__
123 endif
124 ifeq ($(BUILD),debug)
125 ifeq ($(DEBUG_FLAG),default)
126 __DEBUG_DEFINE_p = -D__WXDEBUG__
127 endif
128 endif
129 ifeq ($(DEBUG_FLAG),1)
130 __DEBUG_DEFINE_p = -D__WXDEBUG__
131 endif
132 ifeq ($(BUILD),debug)
133 ifeq ($(DEBUG_FLAG),default)
134 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
135 endif
136 endif
137 ifeq ($(DEBUG_FLAG),1)
138 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
139 endif
140 ifeq ($(UNICODE),1)
141 __UNICODE_DEFINE_p = -D_UNICODE
142 endif
143 ifeq ($(UNICODE),1)
144 __UNICODE_DEFINE_p_12 = --define _UNICODE
145 endif
146 ifeq ($(SHARED),0)
147 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
148 endif
149 ifeq ($(SHARED),1)
150 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
151 endif
152 ifeq ($(SHARED),1)
153 __DLLFLAG_p = -DWXUSINGDLL
154 endif
155 ifeq ($(SHARED),1)
156 __DLLFLAG_p_12 = --define WXUSINGDLL
157 endif
158 ifeq ($(MONOLITHIC),0)
159 __WXLIB_CORE_p = \
160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
161 endif
162 ifeq ($(MONOLITHIC),0)
163 __WXLIB_BASE_p = \
164 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
165 endif
166 ifeq ($(MONOLITHIC),1)
167 __WXLIB_MONO_p = \
168 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
169 endif
170 ifeq ($(USE_GUI),1)
171 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
172 endif
173 ifeq ($(USE_GUI),1)
174 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
175 endif
176 ifeq ($(USE_GUI),1)
177 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
178 endif
179 ifeq ($(MSLU),1)
180 __UNICOWS_LIB_p = -lunicows
181 endif
182 ifeq ($(BUILD),debug)
183 ifeq ($(DEBUG_INFO),default)
184 __DEBUGINFO = -g
185 endif
186 endif
187 ifeq ($(BUILD),release)
188 ifeq ($(DEBUG_INFO),default)
189 __DEBUGINFO =
190 endif
191 endif
192 ifeq ($(DEBUG_INFO),0)
193 __DEBUGINFO =
194 endif
195 ifeq ($(DEBUG_INFO),1)
196 __DEBUGINFO = -g
197 endif
198
199
200 all: $(OBJS)
201 $(OBJS):
202 -if not exist $(OBJS) mkdir $(OBJS)
203
204 ### Targets: ###
205
206 all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
207
208 clean:
209 -if exist $(OBJS)\*.o del $(OBJS)\*.o
210 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
211 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
212 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
213 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
214 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
215
216 $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
217 $(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
218
219 $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
220 $(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
221
222 $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
223 $(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
224
225 $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
226 $(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
227
228 $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
229 $(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
230
231 data_files:
232 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
233 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
234
235 $(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
236 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
237
238 $(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
239 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/"
240
241 $(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
242 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
243
244 $(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
245 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/"
246
247 $(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
248 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
249
250 $(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
251 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/"
252
253 $(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
254 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
255
256 $(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
257 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/"
258
259 $(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
260 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
261
262 $(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
263 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/"
264
265 .PHONY: all clean data_files