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)
97 ifeq ($(BUILD),release)
100 ifeq ($(USE_EXCEPTIONS),0)
101 __EXCEPTIONSFLAG = -fno-rtti
103 ifeq ($(USE_EXCEPTIONS),1)
106 ifeq ($(USE_EXCEPTIONS),0)
107 __EXCEPTIONSFLAG_3 = -fno-exceptions
109 ifeq ($(USE_EXCEPTIONS),1)
113 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
116 __WXUNIV_DEFINE_p_12 = --define __WXUNIVERSAL__
118 ifeq ($(BUILD),debug)
119 ifeq ($(DEBUG_FLAG),default)
120 __DEBUG_DEFINE_p = -D__WXDEBUG__
123 ifeq ($(DEBUG_FLAG),1)
124 __DEBUG_DEFINE_p = -D__WXDEBUG__
126 ifeq ($(BUILD),debug)
127 ifeq ($(DEBUG_FLAG),default)
128 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
131 ifeq ($(DEBUG_FLAG),1)
132 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
135 __UNICODE_DEFINE_p = -D_UNICODE
138 __UNICODE_DEFINE_p_12 = --define _UNICODE
141 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
144 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
147 __DLLFLAG_p = -DWXUSINGDLL
150 __DLLFLAG_p_12 = --define WXUSINGDLL
152 ifeq ($(MONOLITHIC),0)
154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
156 ifeq ($(MONOLITHIC),0)
158 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
160 ifeq ($(MONOLITHIC),1)
162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
165 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
168 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
171 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
174 __UNICOWS_LIB_p = -lunicows
176 ifeq ($(BUILD),debug)
177 ifeq ($(DEBUG_INFO),default)
181 ifeq ($(BUILD),release)
182 ifeq ($(DEBUG_INFO),default)
186 ifeq ($(DEBUG_INFO),0)
189 ifeq ($(DEBUG_INFO),1)
196 -if not exist $(OBJS) mkdir $(OBJS)
200 all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
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
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)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
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)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
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)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
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)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
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)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
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
229 $(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
230 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
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/"
235 $(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
236 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
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/"
241 $(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
242 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
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/"
247 $(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
248 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
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/"
253 $(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
254 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
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/"
259 .PHONY: all clean data_files