]>
Commit | Line | Data |
---|---|---|
03206f17 VS |
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 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../../build/msw/config.gcc |
03206f17 VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
15 | FL_DEMO1_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
16 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
17 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \ | |
18 | -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \ | |
19 | -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \ | |
2265a2d5 VS |
20 | $(__DLLFLAG_p) -I..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" \ |
21 | $(CXXFLAGS) | |
03206f17 VS |
22 | FL_DEMO1_OBJECTS = \ |
23 | $(OBJS)\fl_demo1_fl_demo1.o \ | |
24 | $(OBJS)\fl_demo1_fl_demo1_rc.o | |
25 | FL_DEMO2_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
26 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
27 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \ | |
28 | -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \ | |
29 | -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \ | |
2265a2d5 VS |
30 | $(__DLLFLAG_p) -I..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" \ |
31 | $(CXXFLAGS) | |
03206f17 VS |
32 | FL_DEMO2_OBJECTS = \ |
33 | $(OBJS)\fl_demo2_fl_demo2.o \ | |
34 | $(OBJS)\fl_demo2_fl_demo2_rc.o | |
35 | FL_SAMPLE1_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
36 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
37 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \ | |
38 | -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \ | |
39 | -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \ | |
2265a2d5 VS |
40 | $(__DLLFLAG_p) -I..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" \ |
41 | $(CXXFLAGS) | |
03206f17 VS |
42 | FL_SAMPLE1_OBJECTS = \ |
43 | $(OBJS)\fl_sample1_fl_sample1.o \ | |
44 | $(OBJS)\fl_sample1_fl_sample1_rc.o | |
45 | FL_SAMPLE2_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
46 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
47 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \ | |
48 | -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \ | |
49 | -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \ | |
2265a2d5 VS |
50 | $(__DLLFLAG_p) -I..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" \ |
51 | $(CXXFLAGS) | |
03206f17 VS |
52 | FL_SAMPLE2_OBJECTS = \ |
53 | $(OBJS)\fl_sample2_fl_sample2.o \ | |
54 | $(OBJS)\fl_sample2_fl_sample2_rc.o | |
55 | FL_SAMPLE3_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
56 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
57 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \ | |
58 | -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \ | |
59 | -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \ | |
2265a2d5 VS |
60 | $(__DLLFLAG_p) -I..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" \ |
61 | $(CXXFLAGS) | |
03206f17 VS |
62 | FL_SAMPLE3_OBJECTS = \ |
63 | $(OBJS)\fl_sample3_fl_sample3.o \ | |
64 | $(OBJS)\fl_sample3_fl_sample3_rc.o | |
65 | LIBDIRNAME = \ | |
66 | .\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
67 | OBJS = \ | |
68 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
69 | ||
70 | ### Conditionally set variables: ### | |
71 | ||
72 | ifeq ($(GCC_VERSION),2.95) | |
73 | GCCFLAGS = -fvtable-thunks | |
74 | endif | |
75 | ifeq ($(USE_GUI),0) | |
76 | PORTNAME = base | |
77 | endif | |
78 | ifeq ($(USE_GUI),1) | |
79 | PORTNAME = msw | |
80 | endif | |
81 | ifeq ($(BUILD),debug) | |
82 | ifeq ($(DEBUG_FLAG),default) | |
83 | WXDEBUGFLAG = d | |
84 | endif | |
85 | endif | |
86 | ifeq ($(DEBUG_FLAG),1) | |
87 | WXDEBUGFLAG = d | |
88 | endif | |
89 | ifeq ($(SHARED),1) | |
90 | WXDLLFLAG = dll | |
91 | endif | |
92 | ifeq ($(UNICODE),1) | |
93 | WXUNICODEFLAG = u | |
94 | endif | |
95 | ifeq ($(WXUNIV),1) | |
96 | WXUNIVNAME = univ | |
97 | endif | |
98 | ifeq ($(BUILD),debug) | |
99 | ifeq ($(DEBUG_INFO),default) | |
100 | __DEBUGINFO = -g | |
101 | endif | |
102 | endif | |
103 | ifeq ($(BUILD),release) | |
104 | ifeq ($(DEBUG_INFO),default) | |
105 | __DEBUGINFO = | |
106 | endif | |
107 | endif | |
108 | ifeq ($(DEBUG_INFO),0) | |
109 | __DEBUGINFO = | |
110 | endif | |
111 | ifeq ($(DEBUG_INFO),1) | |
112 | __DEBUGINFO = -g | |
113 | endif | |
114 | ifeq ($(BUILD),debug) | |
115 | ifeq ($(DEBUG_FLAG),default) | |
116 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
117 | endif | |
118 | endif | |
119 | ifeq ($(DEBUG_FLAG),1) | |
120 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
121 | endif | |
122 | ifeq ($(BUILD),debug) | |
123 | ifeq ($(DEBUG_FLAG),default) | |
124 | __DEBUG_DEFINE_p_14 = --define __WXDEBUG__ | |
125 | endif | |
126 | endif | |
127 | ifeq ($(DEBUG_FLAG),1) | |
128 | __DEBUG_DEFINE_p_14 = --define __WXDEBUG__ | |
129 | endif | |
130 | ifeq ($(SHARED),1) | |
131 | __DLLFLAG_p = -DWXUSINGDLL | |
132 | endif | |
133 | ifeq ($(SHARED),1) | |
134 | __DLLFLAG_p_12 = --define WXUSINGDLL | |
135 | endif | |
136 | ifeq ($(USE_GUI),1) | |
137 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
138 | endif | |
139 | ifeq ($(USE_GUI),1) | |
140 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
141 | endif | |
142 | ifeq ($(USE_GUI),1) | |
143 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
144 | endif | |
145 | ifeq ($(BUILD),debug) | |
146 | __OPTIMIZEFLAG = -O0 | |
147 | endif | |
148 | ifeq ($(BUILD),release) | |
149 | __OPTIMIZEFLAG = -O2 | |
150 | endif | |
151 | ifeq ($(UNICODE),1) | |
152 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
153 | endif | |
154 | ifeq ($(UNICODE),1) | |
155 | __UNICODE_DEFINE_p_14 = --define wxUSE_UNICODE=1 | |
156 | endif | |
2265a2d5 VS |
157 | ifeq ($(MSLU),1) |
158 | __UNICOWS_LIB_p = -lunicows | |
159 | endif | |
03206f17 VS |
160 | ifeq ($(MONOLITHIC),0) |
161 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
162 | endif | |
163 | ifeq ($(MONOLITHIC),0) | |
164 | __WXLIB_CORE_p = \ | |
165 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
166 | endif | |
167 | ifeq ($(MONOLITHIC),1) | |
168 | __WXLIB_MONO_p = \ | |
169 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
170 | endif | |
171 | ifeq ($(WXUNIV),1) | |
172 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
173 | endif | |
174 | ifeq ($(WXUNIV),1) | |
175 | __WXUNIV_DEFINE_p_11 = --define __WXUNIVERSAL__ | |
176 | endif | |
177 | ||
178 | ||
179 | all: $(OBJS) | |
180 | $(OBJS): | |
181 | -if not exist $(OBJS) mkdir $(OBJS) | |
182 | ||
183 | ### Targets: ### | |
184 | ||
185 | all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe | |
186 | ||
187 | $(OBJS)\fl_demo1_fl_demo1.o: .\fl_demo1.cpp | |
188 | $(CXX) -c -o $@ $(FL_DEMO1_CXXFLAGS) $< | |
189 | ||
190 | $(OBJS)\fl_demo1_fl_demo1_rc.o: .\fl_demo1.rc | |
2265a2d5 | 191 | 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 $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_12) --include-dir ../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/" |
03206f17 VS |
192 | |
193 | $(OBJS)\fl_demo2_fl_demo2.o: .\fl_demo2.cpp | |
194 | $(CXX) -c -o $@ $(FL_DEMO2_CXXFLAGS) $< | |
195 | ||
196 | $(OBJS)\fl_demo2_fl_demo2_rc.o: .\fl_demo2.rc | |
2265a2d5 | 197 | 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 $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_12) --include-dir ../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/" |
03206f17 VS |
198 | |
199 | $(OBJS)\fl_sample1_fl_sample1.o: .\fl_sample1.cpp | |
200 | $(CXX) -c -o $@ $(FL_SAMPLE1_CXXFLAGS) $< | |
201 | ||
202 | $(OBJS)\fl_sample1_fl_sample1_rc.o: .\fl_sample1.rc | |
2265a2d5 | 203 | 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 $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_12) --include-dir ../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/" |
03206f17 VS |
204 | |
205 | $(OBJS)\fl_sample2_fl_sample2.o: .\fl_sample2.cpp | |
206 | $(CXX) -c -o $@ $(FL_SAMPLE2_CXXFLAGS) $< | |
207 | ||
208 | $(OBJS)\fl_sample2_fl_sample2_rc.o: .\fl_sample2.rc | |
2265a2d5 | 209 | 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 $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_12) --include-dir ../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/" |
03206f17 VS |
210 | |
211 | $(OBJS)\fl_sample3_fl_sample3.o: .\fl_sample3.cpp | |
212 | $(CXX) -c -o $@ $(FL_SAMPLE3_CXXFLAGS) $< | |
213 | ||
214 | $(OBJS)\fl_sample3_fl_sample3_rc.o: .\fl_sample3.rc | |
2265a2d5 | 215 | 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 $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_12) --include-dir ../../../samples --include-dir ./../../include --define BMP_DIR="bitmaps/" |
03206f17 VS |
216 | |
217 | clean: | |
218 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
219 | -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe | |
220 | -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe | |
221 | -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe | |
222 | -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe | |
223 | -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe | |
224 | ||
225 | $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1_rc.o | |
2265a2d5 | 226 | $(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 |
03206f17 VS |
227 | |
228 | $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2_rc.o | |
2265a2d5 | 229 | $(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 |
03206f17 VS |
230 | |
231 | $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1_rc.o | |
2265a2d5 | 232 | $(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 |
03206f17 VS |
233 | |
234 | $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2_rc.o | |
2265a2d5 | 235 | $(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 |
03206f17 VS |
236 | |
237 | $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3_rc.o | |
2265a2d5 | 238 | $(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 |
03206f17 VS |
239 | |
240 | .PHONY: all clean |