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 # =========================================================================
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)
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)
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)
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
66 ### Conditionally set variables: ###
68 ifeq ($(GCC_VERSION),2.95)
69 GCCFLAGS = -fvtable-thunks
78 ifeq ($(DEBUG_FLAG),default)
82 ifeq ($(DEBUG_FLAG),1)
94 ifeq ($(MONOLITHIC),0)
97 ifeq ($(MONOLITHIC),1)
100 ifeq ($(BUILD),debug)
103 ifeq ($(BUILD),release)
106 ifeq ($(USE_EXCEPTIONS),0)
107 __EXCEPTIONSFLAG = -fno-rtti
109 ifeq ($(USE_EXCEPTIONS),1)
112 ifeq ($(USE_EXCEPTIONS),0)
113 __EXCEPTIONSFLAG_3 = -fno-exceptions
115 ifeq ($(USE_EXCEPTIONS),1)
119 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
122 __WXUNIV_DEFINE_p_12 = --define __WXUNIVERSAL__
124 ifeq ($(BUILD),debug)
125 ifeq ($(DEBUG_FLAG),default)
126 __DEBUG_DEFINE_p = -D__WXDEBUG__
129 ifeq ($(DEBUG_FLAG),1)
130 __DEBUG_DEFINE_p = -D__WXDEBUG__
132 ifeq ($(BUILD),debug)
133 ifeq ($(DEBUG_FLAG),default)
134 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
137 ifeq ($(DEBUG_FLAG),1)
138 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
141 __UNICODE_DEFINE_p = -D_UNICODE
144 __UNICODE_DEFINE_p_12 = --define _UNICODE
147 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
150 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
153 __DLLFLAG_p = -DWXUSINGDLL
156 __DLLFLAG_p_12 = --define WXUSINGDLL
158 ifeq ($(MONOLITHIC),0)
160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
162 ifeq ($(MONOLITHIC),0)
164 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
166 ifeq ($(MONOLITHIC),1)
168 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
171 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
174 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
177 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
180 __UNICOWS_LIB_p = -lunicows
182 ifeq ($(BUILD),debug)
183 ifeq ($(DEBUG_INFO),default)
187 ifeq ($(BUILD),release)
188 ifeq ($(DEBUG_INFO),default)
192 ifeq ($(DEBUG_INFO),0)
195 ifeq ($(DEBUG_INFO),1)
202 -if not exist $(OBJS) mkdir $(OBJS)
206 all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
209 -if exist $(OBJS)\*.o del $(OBJS)\*.o
210 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
211 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
212 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
213 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
214 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
216 $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
217 $(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
219 $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
220 $(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
222 $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
223 $(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
225 $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
226 $(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
228 $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
229 $(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
232 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
233 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
235 $(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
236 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
238 $(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.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/"
241 $(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
242 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
244 $(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.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/"
247 $(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
248 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
250 $(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.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/"
253 $(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
254 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
256 $(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.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/"
259 $(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
260 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
262 $(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
263 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/"
265 .PHONY: all clean data_files