1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.2 (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 # -------------------------------------------------------------------------
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 FL_DEMO1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
22 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
23 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
24 $(CPPFLAGS) $(CXXFLAGS)
26 $(OBJS)\fl_demo1_fl_demo1.o \
27 $(OBJS)\fl_demo1_fl_demo1_rc.o
28 FL_DEMO2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
29 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
31 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
32 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
33 $(CPPFLAGS) $(CXXFLAGS)
35 $(OBJS)\fl_demo2_fl_demo2.o \
36 $(OBJS)\fl_demo2_fl_demo2_rc.o
37 FL_SAMPLE1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
38 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
39 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
40 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
41 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
42 $(CPPFLAGS) $(CXXFLAGS)
43 FL_SAMPLE1_OBJECTS = \
44 $(OBJS)\fl_sample1_fl_sample1.o \
45 $(OBJS)\fl_sample1_fl_sample1_rc.o
46 FL_SAMPLE2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
47 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
48 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
49 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
50 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
51 $(CPPFLAGS) $(CXXFLAGS)
52 FL_SAMPLE2_OBJECTS = \
53 $(OBJS)\fl_sample2_fl_sample2.o \
54 $(OBJS)\fl_sample2_fl_sample2_rc.o
55 FL_SAMPLE3_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
56 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
57 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
58 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
59 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_3) \
60 $(CPPFLAGS) $(CXXFLAGS)
61 FL_SAMPLE3_OBJECTS = \
62 $(OBJS)\fl_sample3_fl_sample3.o \
63 $(OBJS)\fl_sample3_fl_sample3_rc.o
65 ### Conditionally set variables: ###
67 ifeq ($(GCC_VERSION),2.95)
68 GCCFLAGS = -fvtable-thunks
77 ifeq ($(DEBUG_FLAG),default)
81 ifeq ($(DEBUG_FLAG),1)
96 ifeq ($(BUILD),release)
99 ifeq ($(USE_EXCEPTIONS),0)
100 __EXCEPTIONSFLAG = -fno-rtti
102 ifeq ($(USE_EXCEPTIONS),1)
105 ifeq ($(USE_EXCEPTIONS),0)
106 __EXCEPTIONSFLAG_3 = -fno-exceptions
108 ifeq ($(USE_EXCEPTIONS),1)
112 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
115 __WXUNIV_DEFINE_p_12 = --define __WXUNIVERSAL__
117 ifeq ($(BUILD),debug)
118 ifeq ($(DEBUG_FLAG),default)
119 __DEBUG_DEFINE_p = -D__WXDEBUG__
122 ifeq ($(DEBUG_FLAG),1)
123 __DEBUG_DEFINE_p = -D__WXDEBUG__
125 ifeq ($(BUILD),debug)
126 ifeq ($(DEBUG_FLAG),default)
127 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
130 ifeq ($(DEBUG_FLAG),1)
131 __DEBUG_DEFINE_p_12 = --define __WXDEBUG__
134 __UNICODE_DEFINE_p = -D_UNICODE
137 __UNICODE_DEFINE_p_12 = --define _UNICODE
140 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
143 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
146 __DLLFLAG_p = -DWXUSINGDLL
149 __DLLFLAG_p_12 = --define WXUSINGDLL
151 ifeq ($(MONOLITHIC),0)
153 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
155 ifeq ($(MONOLITHIC),0)
156 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
158 ifeq ($(MONOLITHIC),1)
160 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
163 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
166 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
169 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
172 __UNICOWS_LIB_p = -lunicows
174 ifeq ($(BUILD),debug)
175 ifeq ($(DEBUG_INFO),default)
179 ifeq ($(BUILD),release)
180 ifeq ($(DEBUG_INFO),default)
184 ifeq ($(DEBUG_INFO),0)
187 ifeq ($(DEBUG_INFO),1)
194 -if not exist $(OBJS) mkdir $(OBJS)
198 all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
201 -if exist $(OBJS)\*.o del $(OBJS)\*.o
202 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
203 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
204 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
205 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
206 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
208 $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
209 $(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 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
211 $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
212 $(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 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
214 $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
215 $(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 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
217 $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
218 $(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 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
220 $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
221 $(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 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
224 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
225 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
227 $(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
228 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
230 $(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
231 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 --include-dir ./../../include --define BMP_DIR="bitmaps/"
233 $(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
234 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
236 $(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
237 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 --include-dir ./../../include --define BMP_DIR="bitmaps/"
239 $(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
240 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
242 $(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
243 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 --include-dir ./../../include --define BMP_DIR="bitmaps/"
245 $(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
246 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
248 $(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
249 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 --include-dir ./../../include --define BMP_DIR="bitmaps/"
251 $(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
252 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
254 $(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
255 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 --include-dir ./../../include --define BMP_DIR="bitmaps/"
257 .PHONY: all clean data_files