1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
25 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
26 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\fl_demo1_fl_demo1.o \
29 $(OBJS)\fl_demo1_fl_demo1_rc.o
30 FL_DEMO2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
31 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
33 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
34 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
35 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
37 $(OBJS)\fl_demo2_fl_demo2.o \
38 $(OBJS)\fl_demo2_fl_demo2_rc.o
39 FL_SAMPLE1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
40 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
41 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
42 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
43 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
44 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
45 FL_SAMPLE1_OBJECTS = \
46 $(OBJS)\fl_sample1_fl_sample1.o \
47 $(OBJS)\fl_sample1_fl_sample1_rc.o
48 FL_SAMPLE2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
49 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
50 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
51 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
52 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
53 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
54 FL_SAMPLE2_OBJECTS = \
55 $(OBJS)\fl_sample2_fl_sample2.o \
56 $(OBJS)\fl_sample2_fl_sample2_rc.o
57 FL_SAMPLE3_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
58 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
59 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
60 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH -I.\..\..\include \
61 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
62 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
63 FL_SAMPLE3_OBJECTS = \
64 $(OBJS)\fl_sample3_fl_sample3.o \
65 $(OBJS)\fl_sample3_fl_sample3_rc.o
67 ### Conditionally set variables: ###
69 ifeq ($(GCC_VERSION),2.95)
70 GCCFLAGS = -fvtable-thunks
79 ifeq ($(DEBUG_FLAG),default)
83 ifeq ($(DEBUG_FLAG),1)
101 ifeq ($(MONOLITHIC),0)
104 ifeq ($(MONOLITHIC),1)
107 ifeq ($(BUILD),debug)
110 ifeq ($(BUILD),release)
113 ifeq ($(USE_EXCEPTIONS),0)
114 __EXCEPTIONSFLAG = -fno-rtti
116 ifeq ($(USE_EXCEPTIONS),1)
119 ifeq ($(USE_EXCEPTIONS),0)
120 __EXCEPTIONSFLAG_3 = -fno-exceptions
122 ifeq ($(USE_EXCEPTIONS),1)
126 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
129 __WXUNIV_DEFINE_p_12 = --define __WXUNIVERSAL__
131 ifeq ($(BUILD),debug)
132 ifeq ($(DEBUG_FLAG),default)
133 __DEBUG_DEFINE_p = -D__WXDEBUG__
136 ifeq ($(DEBUG_FLAG),1)
137 __DEBUG_DEFINE_p = -D__WXDEBUG__
139 ifeq ($(BUILD),debug)
140 ifeq ($(DEBUG_FLAG),default)
141 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
144 ifeq ($(DEBUG_FLAG),1)
145 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
148 __UNICODE_DEFINE_p = -D_UNICODE
151 __UNICODE_DEFINE_p_12 = --define _UNICODE
154 __DLLFLAG_p = -DWXUSINGDLL
157 __DLLFLAG_p_12 = --define WXUSINGDLL
159 ifeq ($(MONOLITHIC),0)
161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
163 ifeq ($(MONOLITHIC),0)
165 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
167 ifeq ($(MONOLITHIC),1)
169 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
172 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
175 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
178 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
181 __UNICOWS_LIB_p = -lunicows
183 ifeq ($(BUILD),debug)
184 ifeq ($(DEBUG_INFO),default)
188 ifeq ($(BUILD),release)
189 ifeq ($(DEBUG_INFO),default)
193 ifeq ($(DEBUG_INFO),0)
196 ifeq ($(DEBUG_INFO),1)
203 -if not exist $(OBJS) mkdir $(OBJS)
207 all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
210 -if exist $(OBJS)\*.o del $(OBJS)\*.o
211 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
212 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
213 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
214 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
215 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
217 $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
218 $(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
220 $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
221 $(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
223 $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
224 $(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
226 $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
227 $(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
229 $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
230 $(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
233 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
234 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
236 $(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
237 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
239 $(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
240 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/"
242 $(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
243 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
245 $(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
246 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/"
248 $(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
249 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
251 $(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
252 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/"
254 $(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
255 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
257 $(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
258 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/"
260 $(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
261 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
263 $(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
264 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/"
266 .PHONY: all clean data_files