]> git.saurik.com Git - wxWidgets.git/blame - samples/dialogs/makefile.gcc
Make TOOLKIT variable constant in MSW makefiles.
[wxWidgets.git] / samples / dialogs / makefile.gcc
CommitLineData
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
7include ../../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
15CPPDEPS = -MT$@ -MF$@.d -MD -MP\r
16WX_RELEASE_NODOT = 29\r
17COMPILER_PREFIX = gcc\r
18OBJS = \\r
14b682f7
VZ
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
f82b7036
KO
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24DIALOGS_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 32DIALOGS_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
39ifeq ($(TOOLKIT),GTK)
40WIN32_TOOLKIT_LOWERCASE = gtk
41endif
42ifeq ($(TOOLKIT),MSW)
43WIN32_TOOLKIT_LOWERCASE = msw
44endif
f82b7036
KO
45ifeq ($(GCC_VERSION),2.95)\r
46GCCFLAGS = -fvtable-thunks\r
47endif\r
48ifeq ($(USE_GUI),0)\r
49PORTNAME = base\r
50endif\r
51ifeq ($(USE_GUI),1)\r
22a3b6e4
VZ
52PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
53endif
54ifeq ($(TOOLKIT),MAC)
55WXBASEPORT = _carbon
56endif
14b682f7
VZ
57ifeq ($(OFFICIAL_BUILD),1)
58COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
22a3b6e4 59endif\r
f82b7036
KO
60ifeq ($(BUILD),debug)\r
61WXDEBUGFLAG = d\r
62endif\r
63ifeq ($(UNICODE),1)\r
64WXUNICODEFLAG = u\r
65endif\r
66ifeq ($(WXUNIV),1)\r
67WXUNIVNAME = univ\r
68endif\r
69ifeq ($(SHARED),1)\r
70WXDLLFLAG = dll\r
71endif\r
72ifeq ($(SHARED),0)\r
73LIBTYPE_SUFFIX = lib\r
74endif\r
75ifeq ($(SHARED),1)\r
76LIBTYPE_SUFFIX = dll\r
77endif\r
78ifeq ($(MONOLITHIC),0)\r
79EXTRALIBS_FOR_BASE = \r
80endif\r
81ifeq ($(MONOLITHIC),1)\r
51ec29ea 82EXTRALIBS_FOR_BASE = \r
f82b7036 83endif\r
22a3b6e4
VZ
84ifeq ($(TOOLKIT),GTK)
85CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
86endif
87ifeq ($(TOOLKIT),GTK)
88ifeq ($(TOOLKIT_VERSION),2)
89LIB_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
92endif
93endif
f82b7036
KO
94ifeq ($(BUILD),debug)\r
95__OPTIMIZEFLAG_2 = -O0\r
96endif\r
97ifeq ($(BUILD),release)\r
98__OPTIMIZEFLAG_2 = -O2\r
99endif\r
100ifeq ($(USE_RTTI),0)\r
101__RTTIFLAG_5 = -fno-rtti\r
102endif\r
103ifeq ($(USE_RTTI),1)\r
104__RTTIFLAG_5 = \r
105endif\r
106ifeq ($(USE_EXCEPTIONS),0)\r
107__EXCEPTIONSFLAG_6 = -fno-exceptions\r
108endif\r
109ifeq ($(USE_EXCEPTIONS),1)\r
110__EXCEPTIONSFLAG_6 = \r
111endif\r
112ifeq ($(WXUNIV),1)\r
113__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
114endif\r
115ifeq ($(WXUNIV),1)\r
116__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
117endif\r
118ifeq ($(DEBUG_FLAG),0)\r
119__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
120endif\r
121ifeq ($(DEBUG_FLAG),0)\r
122__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
123endif\r
00fb97de
KO
124ifeq ($(BUILD),release)\r
125__NDEBUG_DEFINE_p = -DNDEBUG\r
126endif\r
127ifeq ($(BUILD),release)\r
128__NDEBUG_DEFINE_p_1 = --define NDEBUG\r
129endif\r
f82b7036
KO
130ifeq ($(USE_EXCEPTIONS),0)\r
131__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
132endif\r
133ifeq ($(USE_EXCEPTIONS),0)\r
134__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
135endif\r
136ifeq ($(USE_RTTI),0)\r
137__RTTI_DEFINE_p = -DwxNO_RTTI\r
138endif\r
139ifeq ($(USE_RTTI),0)\r
140__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
141endif\r
142ifeq ($(USE_THREADS),0)\r
143__THREAD_DEFINE_p = -DwxNO_THREADS\r
144endif\r
145ifeq ($(USE_THREADS),0)\r
146__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
147endif\r
148ifeq ($(UNICODE),0)\r
149__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
150endif\r
151ifeq ($(UNICODE),1)\r
152__UNICODE_DEFINE_p = -D_UNICODE\r
153endif\r
154ifeq ($(UNICODE),0)\r
155__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
156endif\r
157ifeq ($(UNICODE),1)\r
158__UNICODE_DEFINE_p_1 = --define _UNICODE\r
159endif\r
160ifeq ($(MSLU),1)\r
161__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
162endif\r
163ifeq ($(MSLU),1)\r
164__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
165endif\r
f82b7036
KO
166ifeq ($(USE_CAIRO),1)\r
167____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
168endif\r
169ifeq ($(USE_CAIRO),1)\r
170__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
171endif\r
172ifeq ($(SHARED),1)\r
173__DLLFLAG_p = -DWXUSINGDLL\r
174endif\r
175ifeq ($(SHARED),1)\r
176__DLLFLAG_p_1 = --define WXUSINGDLL\r
177endif\r
178ifeq ($(SHARED),0)\r
22a3b6e4
VZ
179ifeq ($(TOOLKIT),MAC)
180ifeq ($(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
185endif
186endif
187endif
188ifeq ($(SHARED),0)
189ifeq ($(TOOLKIT),MSW)
f82b7036
KO
190ifeq ($(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
196endif\r
197endif\r
22a3b6e4
VZ
198endif
199ifeq ($(SHARED),0)
200ifeq ($(TOOLKIT),PM)
201ifeq ($(WXUNIV),0)
202____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS = \
203 $(OBJS)\dialogs_fontdlgg.o \
204 $(OBJS)\dialogs_filedlgg.o
205endif
206endif
207endif
208ifeq ($(TOOLKIT),GTK)
209ifeq ($(TOOLKIT_VERSION),2)
210____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS = \
211 $(OBJS)\dialogs_filedlgg.o
212endif
213endif
f82b7036
KO
214ifeq ($(MONOLITHIC),0)\r
215__WXLIB_ADV_p = \\r
216 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv\r
217endif\r
218ifeq ($(MONOLITHIC),0)\r
219__WXLIB_CORE_p = \\r
220 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
221endif\r
222ifeq ($(MONOLITHIC),0)\r
223__WXLIB_BASE_p = \\r
22a3b6e4 224 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
f82b7036
KO
225endif\r
226ifeq ($(MONOLITHIC),1)\r
227__WXLIB_MONO_p = \\r
228 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
229endif\r
230ifeq ($(USE_GUI),1)\r
231__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
232endif\r
233ifeq ($(USE_GUI),1)\r
234__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
235endif\r
236ifeq ($(USE_GUI),1)\r
237__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
238endif\r
239ifeq ($(MSLU),1)\r
240__UNICOWS_LIB_p = -lunicows\r
241endif\r
f82b7036
KO
242ifeq ($(USE_CAIRO),1)\r
243__CAIRO_LIB_p = -lcairo\r
244endif\r
245ifeq ($(USE_CAIRO),1)\r
246____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
247endif\r
248ifeq ($(BUILD),debug)\r
249ifeq ($(DEBUG_INFO),default)\r
250__DEBUGINFO = -g\r
251endif\r
252endif\r
253ifeq ($(BUILD),release)\r
254ifeq ($(DEBUG_INFO),default)\r
255__DEBUGINFO = \r
256endif\r
257endif\r
258ifeq ($(DEBUG_INFO),0)\r
259__DEBUGINFO = \r
260endif\r
261ifeq ($(DEBUG_INFO),1)\r
262__DEBUGINFO = -g\r
263endif\r
264ifeq ($(USE_THREADS),0)\r
265__THREADSFLAG = \r
266endif\r
267ifeq ($(USE_THREADS),1)\r
268__THREADSFLAG = -mthreads\r
269endif\r
270\r
271\r
272all: $(OBJS)\r
273$(OBJS):\r
274 -if not exist $(OBJS) mkdir $(OBJS)\r
275\r
276### Targets: ###\r
277\r
278all: $(OBJS)\dialogs.exe data\r
279\r
280clean: \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
288data: \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
298ifeq ($(SHARED),0)
299ifeq ($(WXUNIV),0)
f82b7036
KO
300$(OBJS)\dialogs_colrdlgg.o: ./../../src/generic/colrdlgg.cpp\r
301 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<\r
22a3b6e4
VZ
302endif
303endif
f82b7036 304\r
22a3b6e4
VZ
305ifeq ($(SHARED),0)
306ifeq ($(WXUNIV),0)
f82b7036
KO
307$(OBJS)\dialogs_dirdlgg.o: ./../../src/generic/dirdlgg.cpp\r
308 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<\r
22a3b6e4
VZ
309endif
310endif
f82b7036 311\r
22a3b6e4
VZ
312ifeq ($(SHARED),0)
313ifeq ($(WXUNIV),0)
f82b7036
KO
314$(OBJS)\dialogs_filedlgg.o: ./../../src/generic/filedlgg.cpp\r
315 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<\r
22a3b6e4
VZ
316endif
317endif
f82b7036 318\r
22a3b6e4
VZ
319ifeq ($(TOOLKIT),GTK)
320ifeq ($(TOOLKIT_VERSION),2)
321$(OBJS)\dialogs_filedlgg.o: ./../../src/generic/filedlgg.cpp
322 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<
323endif
324endif
325
326ifeq ($(SHARED),0)
327ifeq ($(TOOLKIT),PM)
328ifeq ($(WXUNIV),0)
329$(OBJS)\dialogs_filedlgg.o: ./../../src/generic/filedlgg.cpp
330 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<
331endif
332endif
333endif
334
335ifeq ($(SHARED),0)
336ifeq ($(WXUNIV),0)
f82b7036
KO
337$(OBJS)\dialogs_fontdlgg.o: ./../../src/generic/fontdlgg.cpp\r
338 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<\r
22a3b6e4
VZ
339endif
340endif
f82b7036 341\r
f82b7036
KO
342.PHONY: all clean data\r
343\r
344\r
345SHELL := $(COMSPEC)\r
346\r
347# Dependencies tracking:\r
348-include $(OBJS)/*.d\r