]> git.saurik.com Git - wxWidgets.git/blame - demos/life/makefile.gcc
Allow wxPreferencesEditor::Dismiss() to work when using modal dialogs too.
[wxWidgets.git] / demos / life / makefile.gcc
CommitLineData
a7ebaf0d
KO
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
a7ebaf0d
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)
a7ebaf0d
KO
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24LIFE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) $(GCCFLAGS) \\r
22a3b6e4 25 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
da8b1d4b
KO
26 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
b796194b
VS
28 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W \\r
29 -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \\r
22a3b6e4
VZ
30 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
31 $(CPPFLAGS) $(CXXFLAGS)
a7ebaf0d
KO
32LIFE_OBJECTS = \\r
33 $(OBJS)\life_life.o \\r
34 $(OBJS)\life_dialogs.o \\r
35 $(OBJS)\life_game.o \\r
36 $(OBJS)\life_reader.o \\r
37 $(OBJS)\life_life_rc.o\r
38\r
39### Conditionally set variables: ###\r
40\r
22a3b6e4
VZ
41ifeq ($(TOOLKIT),GTK)
42WIN32_TOOLKIT_LOWERCASE = gtk
43endif
44ifeq ($(TOOLKIT),MSW)
45WIN32_TOOLKIT_LOWERCASE = msw
46endif
a7ebaf0d
KO
47ifeq ($(GCC_VERSION),2.95)\r
48GCCFLAGS = -fvtable-thunks\r
49endif\r
50ifeq ($(USE_GUI),0)\r
51PORTNAME = base\r
52endif\r
53ifeq ($(USE_GUI),1)\r
22a3b6e4
VZ
54PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
55endif
56ifeq ($(TOOLKIT),MAC)
57WXBASEPORT = _carbon
58endif
14b682f7
VZ
59ifeq ($(OFFICIAL_BUILD),1)
60COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
22a3b6e4 61endif\r
a7ebaf0d
KO
62ifeq ($(BUILD),debug)\r
63WXDEBUGFLAG = d\r
64endif\r
65ifeq ($(UNICODE),1)\r
66WXUNICODEFLAG = u\r
67endif\r
68ifeq ($(WXUNIV),1)\r
69WXUNIVNAME = univ\r
70endif\r
71ifeq ($(SHARED),1)\r
72WXDLLFLAG = dll\r
73endif\r
74ifeq ($(SHARED),0)\r
75LIBTYPE_SUFFIX = lib\r
76endif\r
77ifeq ($(SHARED),1)\r
78LIBTYPE_SUFFIX = dll\r
79endif\r
80ifeq ($(MONOLITHIC),0)\r
81EXTRALIBS_FOR_BASE = \r
82endif\r
83ifeq ($(MONOLITHIC),1)\r
51ec29ea 84EXTRALIBS_FOR_BASE = \r
a7ebaf0d 85endif\r
22a3b6e4
VZ
86ifeq ($(TOOLKIT),GTK)
87CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
88endif
89ifeq ($(TOOLKIT),GTK)
90ifeq ($(TOOLKIT_VERSION),2)
91LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
92 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
93 glib-2.0.lib
94endif
95endif
a7ebaf0d
KO
96ifeq ($(BUILD),debug)\r
97__OPTIMIZEFLAG_2 = -O0\r
98endif\r
99ifeq ($(BUILD),release)\r
100__OPTIMIZEFLAG_2 = -O2\r
101endif\r
102ifeq ($(USE_RTTI),0)\r
103__RTTIFLAG_5 = -fno-rtti\r
104endif\r
105ifeq ($(USE_RTTI),1)\r
106__RTTIFLAG_5 = \r
107endif\r
108ifeq ($(USE_EXCEPTIONS),0)\r
109__EXCEPTIONSFLAG_6 = -fno-exceptions\r
110endif\r
111ifeq ($(USE_EXCEPTIONS),1)\r
112__EXCEPTIONSFLAG_6 = \r
113endif\r
114ifeq ($(WXUNIV),1)\r
115__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
116endif\r
117ifeq ($(WXUNIV),1)\r
118__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
119endif\r
120ifeq ($(DEBUG_FLAG),0)\r
121__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
122endif\r
123ifeq ($(DEBUG_FLAG),0)\r
124__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
125endif\r
da8b1d4b
KO
126ifeq ($(BUILD),release)\r
127__NDEBUG_DEFINE_p = -DNDEBUG\r
128endif\r
129ifeq ($(BUILD),release)\r
130__NDEBUG_DEFINE_p_1 = --define NDEBUG\r
131endif\r
a7ebaf0d
KO
132ifeq ($(USE_EXCEPTIONS),0)\r
133__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
134endif\r
135ifeq ($(USE_EXCEPTIONS),0)\r
136__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
137endif\r
138ifeq ($(USE_RTTI),0)\r
139__RTTI_DEFINE_p = -DwxNO_RTTI\r
140endif\r
141ifeq ($(USE_RTTI),0)\r
142__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
143endif\r
144ifeq ($(USE_THREADS),0)\r
145__THREAD_DEFINE_p = -DwxNO_THREADS\r
146endif\r
147ifeq ($(USE_THREADS),0)\r
148__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
149endif\r
150ifeq ($(UNICODE),0)\r
151__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
152endif\r
153ifeq ($(UNICODE),1)\r
154__UNICODE_DEFINE_p = -D_UNICODE\r
155endif\r
156ifeq ($(UNICODE),0)\r
157__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
158endif\r
159ifeq ($(UNICODE),1)\r
160__UNICODE_DEFINE_p_1 = --define _UNICODE\r
161endif\r
162ifeq ($(MSLU),1)\r
163__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
164endif\r
165ifeq ($(MSLU),1)\r
166__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
167endif\r
f82b7036
KO
168ifeq ($(USE_CAIRO),1)\r
169____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
170endif\r
171ifeq ($(USE_CAIRO),1)\r
172__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
173endif\r
a7ebaf0d
KO
174ifeq ($(SHARED),1)\r
175__DLLFLAG_p = -DWXUSINGDLL\r
176endif\r
177ifeq ($(SHARED),1)\r
178__DLLFLAG_p_1 = --define WXUSINGDLL\r
179endif\r
180ifeq ($(MONOLITHIC),0)\r
181__WXLIB_CORE_p = \\r
182 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
183endif\r
184ifeq ($(MONOLITHIC),0)\r
185__WXLIB_BASE_p = \\r
22a3b6e4 186 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a7ebaf0d
KO
187endif\r
188ifeq ($(MONOLITHIC),1)\r
189__WXLIB_MONO_p = \\r
190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
191endif\r
192ifeq ($(USE_GUI),1)\r
193__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
194endif\r
195ifeq ($(USE_GUI),1)\r
196__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
197endif\r
198ifeq ($(USE_GUI),1)\r
199__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
200endif\r
201ifeq ($(MSLU),1)\r
202__UNICOWS_LIB_p = -lunicows\r
203endif\r
f82b7036
KO
204ifeq ($(USE_CAIRO),1)\r
205__CAIRO_LIB_p = -lcairo\r
206endif\r
207ifeq ($(USE_CAIRO),1)\r
208____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
209endif\r
a7ebaf0d
KO
210ifeq ($(BUILD),debug)\r
211ifeq ($(DEBUG_INFO),default)\r
212__DEBUGINFO = -g\r
213endif\r
214endif\r
215ifeq ($(BUILD),release)\r
216ifeq ($(DEBUG_INFO),default)\r
217__DEBUGINFO = \r
218endif\r
219endif\r
220ifeq ($(DEBUG_INFO),0)\r
221__DEBUGINFO = \r
222endif\r
223ifeq ($(DEBUG_INFO),1)\r
224__DEBUGINFO = -g\r
225endif\r
226ifeq ($(USE_THREADS),0)\r
227__THREADSFLAG = \r
228endif\r
229ifeq ($(USE_THREADS),1)\r
230__THREADSFLAG = -mthreads\r
231endif\r
232\r
233\r
234all: $(OBJS)\r
235$(OBJS):\r
236 -if not exist $(OBJS) mkdir $(OBJS)\r
237\r
238### Targets: ###\r
239\r
240all: $(OBJS)\life.exe data\r
241\r
242clean: \r
243 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
244 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
245 -if exist $(OBJS)\life.exe del $(OBJS)\life.exe\r
246\r
247$(OBJS)\life.exe: $(LIFE_OBJECTS) $(OBJS)\life_life_rc.o\r
22a3b6e4 248 $(CXX) -o $@ $(LIFE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__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
a7ebaf0d
KO
249\r
250data: \r
251 if not exist $(OBJS) mkdir $(OBJS)\r
252 for %%f in (breeder.lif) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
253\r
254$(OBJS)\life_life.o: ./life.cpp\r
255 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $(CPPDEPS) $<\r
256\r
257$(OBJS)\life_dialogs.o: ./dialogs.cpp\r
258 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $(CPPDEPS) $<\r
259\r
260$(OBJS)\life_game.o: ./game.cpp\r
261 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $(CPPDEPS) $<\r
262\r
263$(OBJS)\life_reader.o: ./reader.cpp\r
264 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $(CPPDEPS) $<\r
265\r
266$(OBJS)\life_life_rc.o: ./life.rc\r
22a3b6e4 267 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
a7ebaf0d
KO
268\r
269.PHONY: all clean data\r
270\r
271\r
272SHELL := $(COMSPEC)\r
273\r
274# Dependencies tracking:\r
275-include $(OBJS)/*.d\r