1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (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 # -------------------------------------------------------------------------
15 FL_DEMO1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
18 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
19 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_1) \
20 $(CPPFLAGS) $(CXXFLAGS)
22 $(OBJS)\fl_demo1_fl_demo1.o \
23 $(OBJS)\fl_demo1_fl_demo1_rc.o
24 FL_DEMO2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
25 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
27 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
28 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_1) \
29 $(CPPFLAGS) $(CXXFLAGS)
31 $(OBJS)\fl_demo2_fl_demo2.o \
32 $(OBJS)\fl_demo2_fl_demo2_rc.o
33 FL_SAMPLE1_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
35 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
36 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
37 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_1) \
38 $(CPPFLAGS) $(CXXFLAGS)
39 FL_SAMPLE1_OBJECTS = \
40 $(OBJS)\fl_sample1_fl_sample1.o \
41 $(OBJS)\fl_sample1_fl_sample1_rc.o
42 FL_SAMPLE2_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
43 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
44 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
45 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
46 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_1) \
47 $(CPPFLAGS) $(CXXFLAGS)
48 FL_SAMPLE2_OBJECTS = \
49 $(OBJS)\fl_sample2_fl_sample2.o \
50 $(OBJS)\fl_sample2_fl_sample2_rc.o
51 FL_SAMPLE3_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
52 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
53 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
54 $(__DLLFLAG_p) -I.\..\..\..\samples -I.\..\..\include \
55 -DBMP_DIR=\"bitmaps/\" $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_1) \
56 $(CPPFLAGS) $(CXXFLAGS)
57 FL_SAMPLE3_OBJECTS = \
58 $(OBJS)\fl_sample3_fl_sample3.o \
59 $(OBJS)\fl_sample3_fl_sample3_rc.o
61 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
63 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
65 ### Conditionally set variables: ###
67 ifeq ($(GCC_VERSION),2.95)
68 GCCFLAGS = -fvtable-thunks
71 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
74 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
83 ifeq ($(DEBUG_FLAG),default)
87 ifeq ($(DEBUG_FLAG),1)
100 ifeq ($(DEBUG_INFO),default)
104 ifeq ($(BUILD),release)
105 ifeq ($(DEBUG_INFO),default)
109 ifeq ($(DEBUG_INFO),0)
112 ifeq ($(DEBUG_INFO),1)
115 ifeq ($(BUILD),debug)
116 ifeq ($(DEBUG_FLAG),default)
117 __DEBUG_DEFINE_p = -D__WXDEBUG__
120 ifeq ($(DEBUG_FLAG),1)
121 __DEBUG_DEFINE_p = -D__WXDEBUG__
123 ifeq ($(BUILD),debug)
124 ifeq ($(DEBUG_FLAG),default)
125 __DEBUG_DEFINE_p_14 = --define __WXDEBUG__
128 ifeq ($(DEBUG_FLAG),1)
129 __DEBUG_DEFINE_p_14 = --define __WXDEBUG__
132 __DLLFLAG_p = -DWXUSINGDLL
135 __DLLFLAG_p_12 = --define WXUSINGDLL
137 ifeq ($(USE_EXCEPTIONS),0)
138 __EXCEPTIONSFLAG = -fno-rtti
140 ifeq ($(USE_EXCEPTIONS),1)
143 ifeq ($(USE_EXCEPTIONS),0)
144 __EXCEPTIONSFLAG_1 = -fno-exceptions
146 ifeq ($(USE_EXCEPTIONS),1)
150 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
153 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
156 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
158 ifeq ($(BUILD),debug)
161 ifeq ($(BUILD),release)
165 __UNICODE_DEFINE_p = -D_UNICODE
168 __UNICODE_DEFINE_p_14 = --define _UNICODE
171 __UNICOWS_LIB_p = -lunicows
173 ifeq ($(MONOLITHIC),0)
174 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
176 ifeq ($(MONOLITHIC),0)
178 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
180 ifeq ($(MONOLITHIC),1)
182 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
185 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
188 __WXUNIV_DEFINE_p_11 = --define __WXUNIVERSAL__
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
200 $(OBJS)\fl_demo1_fl_demo1.o: ./fl_demo1.cpp
201 $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $<
203 $(OBJS)\fl_demo1_fl_demo1_rc.o: ./fl_demo1.rc
204 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_14) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
206 $(OBJS)\fl_demo2_fl_demo2.o: ./fl_demo2.cpp
207 $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $<
209 $(OBJS)\fl_demo2_fl_demo2_rc.o: ./fl_demo2.rc
210 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_14) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
212 $(OBJS)\fl_sample1_fl_sample1.o: ./fl_sample1.cpp
213 $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $<
215 $(OBJS)\fl_sample1_fl_sample1_rc.o: ./fl_sample1.rc
216 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_14) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
218 $(OBJS)\fl_sample2_fl_sample2.o: ./fl_sample2.cpp
219 $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $<
221 $(OBJS)\fl_sample2_fl_sample2_rc.o: ./fl_sample2.rc
222 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_14) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
224 $(OBJS)\fl_sample3_fl_sample3.o: ./fl_sample3.cpp
225 $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $<
227 $(OBJS)\fl_sample3_fl_sample3_rc.o: ./fl_sample3.rc
228 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_14) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_12) --include-dir ./../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/"
231 -if exist $(OBJS)\*.o del $(OBJS)\*.o
232 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
233 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
234 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
235 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
236 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
239 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
240 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
242 $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o
243 $(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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
245 $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o
246 $(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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
248 $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o
249 $(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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
251 $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o
252 $(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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
254 $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o
255 $(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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
257 .PHONY: all clean data_files