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