]>
Commit | Line | Data |
---|---|---|
f82b7036 KO |
1 | # =========================================================================\r |
2 | # This makefile was generated by\r | |
00eef16d | 3 | # Bakefile 0.2.9 (http://www.bakefile.org)\r |
f82b7036 KO |
4 | # Do not modify, all changes will be overwritten!\r |
5 | # =========================================================================\r | |
6 | \r | |
7 | include ../../build/msw/config.gcc\r | |
8 | \r | |
9 | # -------------------------------------------------------------------------\r | |
10 | # Do not modify the rest of this file!\r | |
11 | # -------------------------------------------------------------------------\r | |
12 | \r | |
13 | ### Variables: ###\r | |
14 | \r | |
15 | CPPDEPS = -MT$@ -MF$@.d -MD -MP\r | |
16 | WX_RELEASE_NODOT = 29\r | |
17 | COMPILER_PREFIX = gcc\r | |
18 | OBJS = \\r | |
14b682f7 VZ |
19 | $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
20 | LIBDIRNAME = \ | |
21 | .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG) | |
f82b7036 KO |
22 | SETUPHDIR = \\r |
23 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
24 | DIALOGS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r | |
22a3b6e4 | 25 | $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ |
00fb97de KO |
26 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r |
27 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r | |
b796194b | 28 | $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r |
f82b7036 KO |
29 | $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \\r |
30 | -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \\r | |
22a3b6e4 | 31 | -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS) |
f82b7036 | 32 | DIALOGS_OBJECTS = \\r |
00eef16d | 33 | $(OBJS)\dialogs_sample_rc.o \\r |
f82b7036 | 34 | $(OBJS)\dialogs_dialogs.o \\r |
00eef16d | 35 | $(____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS)\r |
f82b7036 KO |
36 | \r |
37 | ### Conditionally set variables: ###\r | |
38 | \r | |
22a3b6e4 VZ |
39 | ifeq ($(TOOLKIT),GTK) |
40 | WIN32_TOOLKIT_LOWERCASE = gtk | |
41 | endif | |
42 | ifeq ($(TOOLKIT),MSW) | |
43 | WIN32_TOOLKIT_LOWERCASE = msw | |
44 | endif | |
f82b7036 KO |
45 | ifeq ($(GCC_VERSION),2.95)\r |
46 | GCCFLAGS = -fvtable-thunks\r | |
47 | endif\r | |
48 | ifeq ($(USE_GUI),0)\r | |
49 | PORTNAME = base\r | |
50 | endif\r | |
51 | ifeq ($(USE_GUI),1)\r | |
22a3b6e4 VZ |
52 | PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) |
53 | endif | |
54 | ifeq ($(TOOLKIT),MAC) | |
55 | WXBASEPORT = _carbon | |
56 | endif | |
14b682f7 VZ |
57 | ifeq ($(OFFICIAL_BUILD),1) |
58 | COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD | |
22a3b6e4 | 59 | endif\r |
f82b7036 KO |
60 | ifeq ($(BUILD),debug)\r |
61 | WXDEBUGFLAG = d\r | |
62 | endif\r | |
63 | ifeq ($(UNICODE),1)\r | |
64 | WXUNICODEFLAG = u\r | |
65 | endif\r | |
66 | ifeq ($(WXUNIV),1)\r | |
67 | WXUNIVNAME = univ\r | |
68 | endif\r | |
69 | ifeq ($(SHARED),1)\r | |
70 | WXDLLFLAG = dll\r | |
71 | endif\r | |
72 | ifeq ($(SHARED),0)\r | |
73 | LIBTYPE_SUFFIX = lib\r | |
74 | endif\r | |
75 | ifeq ($(SHARED),1)\r | |
76 | LIBTYPE_SUFFIX = dll\r | |
77 | endif\r | |
78 | ifeq ($(MONOLITHIC),0)\r | |
79 | EXTRALIBS_FOR_BASE = \r | |
80 | endif\r | |
81 | ifeq ($(MONOLITHIC),1)\r | |
51ec29ea | 82 | EXTRALIBS_FOR_BASE = \r |
f82b7036 | 83 | endif\r |
22a3b6e4 VZ |
84 | ifeq ($(TOOLKIT),GTK) |
85 | CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields | |
86 | endif | |
87 | ifeq ($(TOOLKIT),GTK) | |
88 | ifeq ($(TOOLKIT_VERSION),2) | |
89 | LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \ | |
90 | gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \ | |
91 | glib-2.0.lib | |
92 | endif | |
93 | endif | |
f82b7036 KO |
94 | ifeq ($(BUILD),debug)\r |
95 | __OPTIMIZEFLAG_2 = -O0\r | |
96 | endif\r | |
97 | ifeq ($(BUILD),release)\r | |
98 | __OPTIMIZEFLAG_2 = -O2\r | |
99 | endif\r | |
100 | ifeq ($(USE_RTTI),0)\r | |
101 | __RTTIFLAG_5 = -fno-rtti\r | |
102 | endif\r | |
103 | ifeq ($(USE_RTTI),1)\r | |
104 | __RTTIFLAG_5 = \r | |
105 | endif\r | |
106 | ifeq ($(USE_EXCEPTIONS),0)\r | |
107 | __EXCEPTIONSFLAG_6 = -fno-exceptions\r | |
108 | endif\r | |
109 | ifeq ($(USE_EXCEPTIONS),1)\r | |
110 | __EXCEPTIONSFLAG_6 = \r | |
111 | endif\r | |
112 | ifeq ($(WXUNIV),1)\r | |
113 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r | |
114 | endif\r | |
115 | ifeq ($(WXUNIV),1)\r | |
116 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r | |
117 | endif\r | |
118 | ifeq ($(DEBUG_FLAG),0)\r | |
119 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r | |
120 | endif\r | |
121 | ifeq ($(DEBUG_FLAG),0)\r | |
122 | __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r | |
123 | endif\r | |
00fb97de KO |
124 | ifeq ($(BUILD),release)\r |
125 | __NDEBUG_DEFINE_p = -DNDEBUG\r | |
126 | endif\r | |
127 | ifeq ($(BUILD),release)\r | |
128 | __NDEBUG_DEFINE_p_1 = --define NDEBUG\r | |
129 | endif\r | |
f82b7036 KO |
130 | ifeq ($(USE_EXCEPTIONS),0)\r |
131 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r | |
132 | endif\r | |
133 | ifeq ($(USE_EXCEPTIONS),0)\r | |
134 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r | |
135 | endif\r | |
136 | ifeq ($(USE_RTTI),0)\r | |
137 | __RTTI_DEFINE_p = -DwxNO_RTTI\r | |
138 | endif\r | |
139 | ifeq ($(USE_RTTI),0)\r | |
140 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI\r | |
141 | endif\r | |
142 | ifeq ($(USE_THREADS),0)\r | |
143 | __THREAD_DEFINE_p = -DwxNO_THREADS\r | |
144 | endif\r | |
145 | ifeq ($(USE_THREADS),0)\r | |
146 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS\r | |
147 | endif\r | |
148 | ifeq ($(UNICODE),0)\r | |
149 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r | |
150 | endif\r | |
151 | ifeq ($(UNICODE),1)\r | |
152 | __UNICODE_DEFINE_p = -D_UNICODE\r | |
153 | endif\r | |
154 | ifeq ($(UNICODE),0)\r | |
155 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r | |
156 | endif\r | |
157 | ifeq ($(UNICODE),1)\r | |
158 | __UNICODE_DEFINE_p_1 = --define _UNICODE\r | |
159 | endif\r | |
160 | ifeq ($(MSLU),1)\r | |
161 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r | |
162 | endif\r | |
163 | ifeq ($(MSLU),1)\r | |
164 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r | |
165 | endif\r | |
f82b7036 KO |
166 | ifeq ($(USE_CAIRO),1)\r |
167 | ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r | |
168 | endif\r | |
169 | ifeq ($(USE_CAIRO),1)\r | |
170 | __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r | |
171 | endif\r | |
172 | ifeq ($(SHARED),1)\r | |
173 | __DLLFLAG_p = -DWXUSINGDLL\r | |
174 | endif\r | |
175 | ifeq ($(SHARED),1)\r | |
176 | __DLLFLAG_p_1 = --define WXUSINGDLL\r | |
177 | endif\r | |
178 | ifeq ($(SHARED),0)\r | |
22a3b6e4 VZ |
179 | ifeq ($(TOOLKIT),MAC) |
180 | ifeq ($(WXUNIV),0) | |
181 | ____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS = \ | |
182 | $(OBJS)\dialogs_colrdlgg.o \ | |
183 | $(OBJS)\dialogs_dirdlgg.o \ | |
184 | $(OBJS)\dialogs_filedlgg.o | |
185 | endif | |
186 | endif | |
187 | endif | |
188 | ifeq ($(SHARED),0) | |
189 | ifeq ($(TOOLKIT),MSW) | |
f82b7036 KO |
190 | ifeq ($(WXUNIV),0)\r |
191 | ____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS = \\r | |
192 | $(OBJS)\dialogs_colrdlgg.o \\r | |
193 | $(OBJS)\dialogs_dirdlgg.o \\r | |
194 | $(OBJS)\dialogs_filedlgg.o \\r | |
195 | $(OBJS)\dialogs_fontdlgg.o\r | |
196 | endif\r | |
197 | endif\r | |
22a3b6e4 VZ |
198 | endif |
199 | ifeq ($(SHARED),0) | |
200 | ifeq ($(TOOLKIT),PM) | |
201 | ifeq ($(WXUNIV),0) | |
202 | ____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS = \ | |
203 | $(OBJS)\dialogs_fontdlgg.o \ | |
204 | $(OBJS)\dialogs_filedlgg.o | |
205 | endif | |
206 | endif | |
207 | endif | |
208 | ifeq ($(TOOLKIT),GTK) | |
209 | ifeq ($(TOOLKIT_VERSION),2) | |
210 | ____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS = \ | |
211 | $(OBJS)\dialogs_filedlgg.o | |
212 | endif | |
213 | endif | |
f82b7036 KO |
214 | ifeq ($(MONOLITHIC),0)\r |
215 | __WXLIB_ADV_p = \\r | |
216 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv\r | |
217 | endif\r | |
218 | ifeq ($(MONOLITHIC),0)\r | |
219 | __WXLIB_CORE_p = \\r | |
220 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r | |
221 | endif\r | |
222 | ifeq ($(MONOLITHIC),0)\r | |
223 | __WXLIB_BASE_p = \\r | |
22a3b6e4 | 224 | -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
f82b7036 KO |
225 | endif\r |
226 | ifeq ($(MONOLITHIC),1)\r | |
227 | __WXLIB_MONO_p = \\r | |
228 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
229 | endif\r | |
230 | ifeq ($(USE_GUI),1)\r | |
231 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r | |
232 | endif\r | |
233 | ifeq ($(USE_GUI),1)\r | |
234 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r | |
235 | endif\r | |
236 | ifeq ($(USE_GUI),1)\r | |
237 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r | |
238 | endif\r | |
239 | ifeq ($(MSLU),1)\r | |
240 | __UNICOWS_LIB_p = -lunicows\r | |
241 | endif\r | |
f82b7036 KO |
242 | ifeq ($(USE_CAIRO),1)\r |
243 | __CAIRO_LIB_p = -lcairo\r | |
244 | endif\r | |
245 | ifeq ($(USE_CAIRO),1)\r | |
246 | ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r | |
247 | endif\r | |
248 | ifeq ($(BUILD),debug)\r | |
249 | ifeq ($(DEBUG_INFO),default)\r | |
250 | __DEBUGINFO = -g\r | |
251 | endif\r | |
252 | endif\r | |
253 | ifeq ($(BUILD),release)\r | |
254 | ifeq ($(DEBUG_INFO),default)\r | |
255 | __DEBUGINFO = \r | |
256 | endif\r | |
257 | endif\r | |
258 | ifeq ($(DEBUG_INFO),0)\r | |
259 | __DEBUGINFO = \r | |
260 | endif\r | |
261 | ifeq ($(DEBUG_INFO),1)\r | |
262 | __DEBUGINFO = -g\r | |
263 | endif\r | |
264 | ifeq ($(USE_THREADS),0)\r | |
265 | __THREADSFLAG = \r | |
266 | endif\r | |
267 | ifeq ($(USE_THREADS),1)\r | |
268 | __THREADSFLAG = -mthreads\r | |
269 | endif\r | |
270 | \r | |
271 | \r | |
272 | all: $(OBJS)\r | |
273 | $(OBJS):\r | |
274 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
275 | \r | |
276 | ### Targets: ###\r | |
277 | \r | |
278 | all: $(OBJS)\dialogs.exe data\r | |
279 | \r | |
280 | clean: \r | |
281 | -if exist $(OBJS)\*.o del $(OBJS)\*.o\r | |
282 | -if exist $(OBJS)\*.d del $(OBJS)\*.d\r | |
283 | -if exist $(OBJS)\dialogs.exe del $(OBJS)\dialogs.exe\r | |
284 | \r | |
00eef16d | 285 | $(OBJS)\dialogs.exe: $(DIALOGS_OBJECTS) $(OBJS)\dialogs_sample_rc.o\r |
22a3b6e4 | 286 | $(CXX) -o $@ $(DIALOGS_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet |
f82b7036 KO |
287 | \r |
288 | data: \r | |
289 | if not exist $(OBJS) mkdir $(OBJS)\r | |
290 | for %%f in (tips.txt) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r | |
291 | \r | |
00eef16d | 292 | $(OBJS)\dialogs_sample_rc.o: ./../../samples/sample.rc\r |
22a3b6e4 | 293 | windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH |
00eef16d | 294 | \r |
f82b7036 KO |
295 | $(OBJS)\dialogs_dialogs.o: ./dialogs.cpp\r |
296 | $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<\r | |
297 | \r | |
22a3b6e4 VZ |
298 | ifeq ($(SHARED),0) |
299 | ifeq ($(WXUNIV),0) | |
f82b7036 KO |
300 | $(OBJS)\dialogs_colrdlgg.o: ./../../src/generic/colrdlgg.cpp\r |
301 | $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<\r | |
22a3b6e4 VZ |
302 | endif |
303 | endif | |
f82b7036 | 304 | \r |
22a3b6e4 VZ |
305 | ifeq ($(SHARED),0) |
306 | ifeq ($(WXUNIV),0) | |
f82b7036 KO |
307 | $(OBJS)\dialogs_dirdlgg.o: ./../../src/generic/dirdlgg.cpp\r |
308 | $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<\r | |
22a3b6e4 VZ |
309 | endif |
310 | endif | |
f82b7036 | 311 | \r |
22a3b6e4 VZ |
312 | ifeq ($(SHARED),0) |
313 | ifeq ($(WXUNIV),0) | |
f82b7036 KO |
314 | $(OBJS)\dialogs_filedlgg.o: ./../../src/generic/filedlgg.cpp\r |
315 | $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<\r | |
22a3b6e4 VZ |
316 | endif |
317 | endif | |
f82b7036 | 318 | \r |
22a3b6e4 VZ |
319 | ifeq ($(TOOLKIT),GTK) |
320 | ifeq ($(TOOLKIT_VERSION),2) | |
321 | $(OBJS)\dialogs_filedlgg.o: ./../../src/generic/filedlgg.cpp | |
322 | $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $< | |
323 | endif | |
324 | endif | |
325 | ||
326 | ifeq ($(SHARED),0) | |
327 | ifeq ($(TOOLKIT),PM) | |
328 | ifeq ($(WXUNIV),0) | |
329 | $(OBJS)\dialogs_filedlgg.o: ./../../src/generic/filedlgg.cpp | |
330 | $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $< | |
331 | endif | |
332 | endif | |
333 | endif | |
334 | ||
335 | ifeq ($(SHARED),0) | |
336 | ifeq ($(WXUNIV),0) | |
f82b7036 KO |
337 | $(OBJS)\dialogs_fontdlgg.o: ./../../src/generic/fontdlgg.cpp\r |
338 | $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<\r | |
22a3b6e4 VZ |
339 | endif |
340 | endif | |
f82b7036 | 341 | \r |
f82b7036 KO |
342 | .PHONY: all clean data\r |
343 | \r | |
344 | \r | |
345 | SHELL := $(COMSPEC)\r | |
346 | \r | |
347 | # Dependencies tracking:\r | |
348 | -include $(OBJS)/*.d\r |