]>
Commit | Line | Data |
---|---|---|
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 | ||
7 | include ../../../build/msw/config.gcc | |
8 | ||
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
15 | FL_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) | |
21 | FL_DEMO1_OBJECTS = \ | |
22 | $(OBJS)\fl_demo1_fl_demo1.o \ | |
23 | $(OBJS)\fl_demo1_fl_demo1_rc.o | |
24 | FL_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) | |
30 | FL_DEMO2_OBJECTS = \ | |
31 | $(OBJS)\fl_demo2_fl_demo2.o \ | |
32 | $(OBJS)\fl_demo2_fl_demo2_rc.o | |
33 | FL_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) | |
39 | FL_SAMPLE1_OBJECTS = \ | |
40 | $(OBJS)\fl_sample1_fl_sample1.o \ | |
41 | $(OBJS)\fl_sample1_fl_sample1_rc.o | |
42 | FL_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) | |
48 | FL_SAMPLE2_OBJECTS = \ | |
49 | $(OBJS)\fl_sample2_fl_sample2.o \ | |
50 | $(OBJS)\fl_sample2_fl_sample2_rc.o | |
51 | FL_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) | |
57 | FL_SAMPLE3_OBJECTS = \ | |
58 | $(OBJS)\fl_sample3_fl_sample3.o \ | |
59 | $(OBJS)\fl_sample3_fl_sample3_rc.o | |
60 | OBJS = \ | |
61 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
62 | SETUPHDIR = \ | |
63 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
64 | ||
65 | ### Conditionally set variables: ### | |
66 | ||
67 | ifeq ($(GCC_VERSION),2.95) | |
68 | GCCFLAGS = -fvtable-thunks | |
69 | endif | |
70 | ifeq ($(SHARED),0) | |
71 | LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG) | |
72 | endif | |
73 | ifeq ($(SHARED),1) | |
74 | LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG) | |
75 | endif | |
76 | ifeq ($(USE_GUI),0) | |
77 | PORTNAME = base | |
78 | endif | |
79 | ifeq ($(USE_GUI),1) | |
80 | PORTNAME = msw | |
81 | endif | |
82 | ifeq ($(BUILD),debug) | |
83 | ifeq ($(DEBUG_FLAG),default) | |
84 | WXDEBUGFLAG = d | |
85 | endif | |
86 | endif | |
87 | ifeq ($(DEBUG_FLAG),1) | |
88 | WXDEBUGFLAG = d | |
89 | endif | |
90 | ifeq ($(SHARED),1) | |
91 | WXDLLFLAG = dll | |
92 | endif | |
93 | ifeq ($(UNICODE),1) | |
94 | WXUNICODEFLAG = u | |
95 | endif | |
96 | ifeq ($(WXUNIV),1) | |
97 | WXUNIVNAME = univ | |
98 | endif | |
99 | ifeq ($(BUILD),debug) | |
100 | ifeq ($(DEBUG_INFO),default) | |
101 | __DEBUGINFO = -g | |
102 | endif | |
103 | endif | |
104 | ifeq ($(BUILD),release) | |
105 | ifeq ($(DEBUG_INFO),default) | |
106 | __DEBUGINFO = | |
107 | endif | |
108 | endif | |
109 | ifeq ($(DEBUG_INFO),0) | |
110 | __DEBUGINFO = | |
111 | endif | |
112 | ifeq ($(DEBUG_INFO),1) | |
113 | __DEBUGINFO = -g | |
114 | endif | |
115 | ifeq ($(BUILD),debug) | |
116 | ifeq ($(DEBUG_FLAG),default) | |
117 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
118 | endif | |
119 | endif | |
120 | ifeq ($(DEBUG_FLAG),1) | |
121 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
122 | endif | |
123 | ifeq ($(BUILD),debug) | |
124 | ifeq ($(DEBUG_FLAG),default) | |
125 | __DEBUG_DEFINE_p_14 = --define __WXDEBUG__ | |
126 | endif | |
127 | endif | |
128 | ifeq ($(DEBUG_FLAG),1) | |
129 | __DEBUG_DEFINE_p_14 = --define __WXDEBUG__ | |
130 | endif | |
131 | ifeq ($(SHARED),1) | |
132 | __DLLFLAG_p = -DWXUSINGDLL | |
133 | endif | |
134 | ifeq ($(SHARED),1) | |
135 | __DLLFLAG_p_12 = --define WXUSINGDLL | |
136 | endif | |
137 | ifeq ($(USE_EXCEPTIONS),0) | |
138 | __EXCEPTIONSFLAG = -fno-rtti | |
139 | endif | |
140 | ifeq ($(USE_EXCEPTIONS),1) | |
141 | __EXCEPTIONSFLAG = | |
142 | endif | |
143 | ifeq ($(USE_EXCEPTIONS),0) | |
144 | __EXCEPTIONSFLAG_1 = -fno-exceptions | |
145 | endif | |
146 | ifeq ($(USE_EXCEPTIONS),1) | |
147 | __EXCEPTIONSFLAG_1 = | |
148 | endif | |
149 | ifeq ($(USE_GUI),1) | |
150 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
151 | endif | |
152 | ifeq ($(USE_GUI),1) | |
153 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
154 | endif | |
155 | ifeq ($(USE_GUI),1) | |
156 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
157 | endif | |
158 | ifeq ($(BUILD),debug) | |
159 | __OPTIMIZEFLAG = -O0 | |
160 | endif | |
161 | ifeq ($(BUILD),release) | |
162 | __OPTIMIZEFLAG = -O2 | |
163 | endif | |
164 | ifeq ($(UNICODE),1) | |
165 | __UNICODE_DEFINE_p = -D_UNICODE | |
166 | endif | |
167 | ifeq ($(UNICODE),1) | |
168 | __UNICODE_DEFINE_p_14 = --define _UNICODE | |
169 | endif | |
170 | ifeq ($(MSLU),1) | |
171 | __UNICOWS_LIB_p = -lunicows | |
172 | endif | |
173 | ifeq ($(MONOLITHIC),0) | |
174 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
175 | endif | |
176 | ifeq ($(MONOLITHIC),0) | |
177 | __WXLIB_CORE_p = \ | |
178 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
179 | endif | |
180 | ifeq ($(MONOLITHIC),1) | |
181 | __WXLIB_MONO_p = \ | |
182 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
183 | endif | |
184 | ifeq ($(WXUNIV),1) | |
185 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
186 | endif | |
187 | ifeq ($(WXUNIV),1) | |
188 | __WXUNIV_DEFINE_p_11 = --define __WXUNIVERSAL__ | |
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 | $(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 | ||
230 | clean: | |
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 | ||
238 | data_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 |