]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/fl/makefile.gcc
Regenerated makefiles for 3rd-party lib change
[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 ($(BUILD),debug)
95 __OPTIMIZEFLAG = -O0
96 endif
97 ifeq ($(BUILD),release)
98 __OPTIMIZEFLAG = -O2
99 endif
100 ifeq ($(USE_EXCEPTIONS),0)
101 __EXCEPTIONSFLAG = -fno-rtti
102 endif
103 ifeq ($(USE_EXCEPTIONS),1)
104 __EXCEPTIONSFLAG =
105 endif
106 ifeq ($(USE_EXCEPTIONS),0)
107 __EXCEPTIONSFLAG_3 = -fno-exceptions
108 endif
109 ifeq ($(USE_EXCEPTIONS),1)
110 __EXCEPTIONSFLAG_3 =
111 endif
112 ifeq ($(WXUNIV),1)
113 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
114 endif
115 ifeq ($(WXUNIV),1)
116 __WXUNIV_DEFINE_p_12 = --define __WXUNIVERSAL__
117 endif
118 ifeq ($(BUILD),debug)
119 ifeq ($(DEBUG_FLAG),default)
120 __DEBUG_DEFINE_p = -D__WXDEBUG__
121 endif
122 endif
123 ifeq ($(DEBUG_FLAG),1)
124 __DEBUG_DEFINE_p = -D__WXDEBUG__
125 endif
126 ifeq ($(BUILD),debug)
127 ifeq ($(DEBUG_FLAG),default)
128 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
129 endif
130 endif
131 ifeq ($(DEBUG_FLAG),1)
132 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
133 endif
134 ifeq ($(UNICODE),1)
135 __UNICODE_DEFINE_p = -D_UNICODE
136 endif
137 ifeq ($(UNICODE),1)
138 __UNICODE_DEFINE_p_12 = --define _UNICODE
139 endif
140 ifeq ($(SHARED),0)
141 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
142 endif
143 ifeq ($(SHARED),1)
144 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
145 endif
146 ifeq ($(SHARED),1)
147 __DLLFLAG_p = -DWXUSINGDLL
148 endif
149 ifeq ($(SHARED),1)
150 __DLLFLAG_p_12 = --define WXUSINGDLL
151 endif
152 ifeq ($(MONOLITHIC),0)
153 __WXLIB_CORE_p = \
154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
155 endif
156 ifeq ($(MONOLITHIC),0)
157 __WXLIB_BASE_p = \
158 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
159 endif
160 ifeq ($(MONOLITHIC),1)
161 __WXLIB_MONO_p = \
162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
163 endif
164 ifeq ($(USE_GUI),1)
165 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
166 endif
167 ifeq ($(USE_GUI),1)
168 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
169 endif
170 ifeq ($(USE_GUI),1)
171 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
172 endif
173 ifeq ($(MSLU),1)
174 __UNICOWS_LIB_p = -lunicows
175 endif
176 ifeq ($(BUILD),debug)
177 ifeq ($(DEBUG_INFO),default)
178 __DEBUGINFO = -g
179 endif
180 endif
181 ifeq ($(BUILD),release)
182 ifeq ($(DEBUG_INFO),default)
183 __DEBUGINFO =
184 endif
185 endif
186 ifeq ($(DEBUG_INFO),0)
187 __DEBUGINFO =
188 endif
189 ifeq ($(DEBUG_INFO),1)
190 __DEBUGINFO = -g
191 endif
192
193
194 all: $(OBJS)
195 $(OBJS):
196 -if not exist $(OBJS) mkdir $(OBJS)
197
198 ### Targets: ###
199
200 all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
201
202 clean:
203 -if exist $(OBJS)\*.o del $(OBJS)\*.o
204 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
205 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
206 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
207 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
208 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
209
210 $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
211 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
212
213 $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
214 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
215
216 $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
217 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
218
219 $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
220 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
221
222 $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
223 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
224
225 data_files:
226 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
227 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
228
229 $(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
230 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
231
232 $(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
233 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/"
234
235 $(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
236 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
237
238 $(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.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_sample1_fl_sample1.o: ./fl_sample1.cpp
242 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
243
244 $(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.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_sample2_fl_sample2.o: ./fl_sample2.cpp
248 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
249
250 $(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.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_sample3_fl_sample3.o: ./fl_sample3.cpp
254 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
255
256 $(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.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 .PHONY: all clean data_files