1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 FL_DEMO1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
25 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH \
26 -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
27 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\fl_demo1_fl_demo1.o \
30 $(OBJS)\fl_demo1_fl_demo1_rc.o
31 FL_DEMO2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
32 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
35 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH \
36 -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
37 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
39 $(OBJS)\fl_demo2_fl_demo2.o \
40 $(OBJS)\fl_demo2_fl_demo2_rc.o
41 FL_SAMPLE1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
42 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
43 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
44 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
45 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH \
46 -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
47 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
48 FL_SAMPLE1_OBJECTS = \
49 $(OBJS)\fl_sample1_fl_sample1.o \
50 $(OBJS)\fl_sample1_fl_sample1_rc.o
51 FL_SAMPLE2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
52 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
53 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
54 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
55 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH \
56 -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
57 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
58 FL_SAMPLE2_OBJECTS = \
59 $(OBJS)\fl_sample2_fl_sample2.o \
60 $(OBJS)\fl_sample2_fl_sample2_rc.o
61 FL_SAMPLE3_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
62 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
63 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
64 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
65 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH \
66 -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
67 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
68 FL_SAMPLE3_OBJECTS = \
69 $(OBJS)\fl_sample3_fl_sample3.o \
70 $(OBJS)\fl_sample3_fl_sample3_rc.o
72 ### Conditionally set variables: ###
74 ifeq ($(GCC_VERSION),2.95)
75 GCCFLAGS = -fvtable-thunks
84 ifeq ($(DEBUG_FLAG),default)
88 ifeq ($(DEBUG_FLAG),1)
106 ifeq ($(MONOLITHIC),0)
109 ifeq ($(MONOLITHIC),1)
112 ifeq ($(BUILD),debug)
115 ifeq ($(BUILD),release)
119 __RTTIFLAG = -fno-rtti
124 ifeq ($(USE_EXCEPTIONS),0)
125 __EXCEPTIONSFLAG = -fno-exceptions
127 ifeq ($(USE_EXCEPTIONS),1)
131 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
134 __WXUNIV_DEFINE_p_12 = --define __WXUNIVERSAL__
136 ifeq ($(BUILD),debug)
137 ifeq ($(DEBUG_FLAG),default)
138 __DEBUG_DEFINE_p = -D__WXDEBUG__
141 ifeq ($(DEBUG_FLAG),1)
142 __DEBUG_DEFINE_p = -D__WXDEBUG__
144 ifeq ($(BUILD),debug)
145 ifeq ($(DEBUG_FLAG),default)
146 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
149 ifeq ($(DEBUG_FLAG),1)
150 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
152 ifeq ($(USE_EXCEPTIONS),0)
153 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
155 ifeq ($(USE_EXCEPTIONS),0)
156 __EXCEPTIONS_DEFINE_p_12 = --define wxNO_EXCEPTIONS
159 __RTTI_DEFINE_p = -DwxNO_RTTI
162 __RTTI_DEFINE_p_12 = --define wxNO_RTTI
164 ifeq ($(USE_THREADS),0)
165 __THREAD_DEFINE_p = -DwxNO_THREADS
167 ifeq ($(USE_THREADS),0)
168 __THREAD_DEFINE_p_12 = --define wxNO_THREADS
171 __UNICODE_DEFINE_p = -D_UNICODE
174 __UNICODE_DEFINE_p_12 = --define _UNICODE
177 __DLLFLAG_p = -DWXUSINGDLL
180 __DLLFLAG_p_12 = --define WXUSINGDLL
182 ifeq ($(MONOLITHIC),0)
184 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
186 ifeq ($(MONOLITHIC),0)
188 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
190 ifeq ($(MONOLITHIC),1)
192 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
195 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
198 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
201 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
204 __UNICOWS_LIB_p = -lunicows
206 ifeq ($(BUILD),debug)
207 ifeq ($(DEBUG_INFO),default)
211 ifeq ($(BUILD),release)
212 ifeq ($(DEBUG_INFO),default)
216 ifeq ($(DEBUG_INFO),0)
219 ifeq ($(DEBUG_INFO),1)
222 ifeq ($(USE_THREADS),0)
225 ifeq ($(USE_THREADS),1)
226 __THREADSFLAG = -mthreads
232 -if not exist $(OBJS) mkdir $(OBJS)
236 all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
239 -if exist $(OBJS)\*.o del $(OBJS)\*.o
240 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
241 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
242 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
243 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
244 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
246 $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
247 $(CXX) -o $@ $(FL_DEMO1_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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
249 $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
250 $(CXX) -o $@ $(FL_DEMO2_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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
252 $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
253 $(CXX) -o $@ $(FL_SAMPLE1_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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
255 $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
256 $(CXX) -o $@ $(FL_SAMPLE2_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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
258 $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
259 $(CXX) -o $@ $(FL_SAMPLE3_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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
262 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
263 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
265 $(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
266 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
268 $(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
269 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__EXCEPTIONS_DEFINE_p_12) $(__RTTI_DEFINE_p_12) $(__THREAD_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/"
271 $(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
272 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
274 $(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
275 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__EXCEPTIONS_DEFINE_p_12) $(__RTTI_DEFINE_p_12) $(__THREAD_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/"
277 $(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
278 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
280 $(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
281 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__EXCEPTIONS_DEFINE_p_12) $(__RTTI_DEFINE_p_12) $(__THREAD_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/"
283 $(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
284 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
286 $(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
287 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__EXCEPTIONS_DEFINE_p_12) $(__RTTI_DEFINE_p_12) $(__THREAD_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/"
289 $(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
290 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
292 $(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
293 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__EXCEPTIONS_DEFINE_p_12) $(__RTTI_DEFINE_p_12) $(__THREAD_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/"
295 .PHONY: all clean data_files