]> git.saurik.com Git - wxWidgets.git/blame - demos/life/makefile.gcc
Always set focus to the item selected using Select()
[wxWidgets.git] / demos / life / makefile.gcc
CommitLineData
a7ebaf0d
KO
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.8 (http://www.bakefile.org)\r
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
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
21SETUPHDIR = \\r
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
23LIFE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) $(GCCFLAGS) \\r
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r
25 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \\r
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \\r
27 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \\r
28 -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \\r
29 $(CPPFLAGS) $(CXXFLAGS)\r
30LIFE_OBJECTS = \\r
31 $(OBJS)\life_life.o \\r
32 $(OBJS)\life_dialogs.o \\r
33 $(OBJS)\life_game.o \\r
34 $(OBJS)\life_reader.o \\r
35 $(OBJS)\life_life_rc.o\r
36\r
37### Conditionally set variables: ###\r
38\r
39ifeq ($(GCC_VERSION),2.95)\r
40GCCFLAGS = -fvtable-thunks\r
41endif\r
42ifeq ($(USE_GUI),0)\r
43PORTNAME = base\r
44endif\r
45ifeq ($(USE_GUI),1)\r
46PORTNAME = msw\r
47endif\r
48ifeq ($(BUILD),debug)\r
49WXDEBUGFLAG = d\r
50endif\r
51ifeq ($(UNICODE),1)\r
52WXUNICODEFLAG = u\r
53endif\r
54ifeq ($(WXUNIV),1)\r
55WXUNIVNAME = univ\r
56endif\r
57ifeq ($(SHARED),1)\r
58WXDLLFLAG = dll\r
59endif\r
60ifeq ($(SHARED),0)\r
61LIBTYPE_SUFFIX = lib\r
62endif\r
63ifeq ($(SHARED),1)\r
64LIBTYPE_SUFFIX = dll\r
65endif\r
66ifeq ($(MONOLITHIC),0)\r
67EXTRALIBS_FOR_BASE = \r
68endif\r
69ifeq ($(MONOLITHIC),1)\r
70EXTRALIBS_FOR_BASE = \r
71endif\r
72ifeq ($(BUILD),debug)\r
73__OPTIMIZEFLAG_2 = -O0\r
74endif\r
75ifeq ($(BUILD),release)\r
76__OPTIMIZEFLAG_2 = -O2\r
77endif\r
78ifeq ($(USE_RTTI),0)\r
79__RTTIFLAG_5 = -fno-rtti\r
80endif\r
81ifeq ($(USE_RTTI),1)\r
82__RTTIFLAG_5 = \r
83endif\r
84ifeq ($(USE_EXCEPTIONS),0)\r
85__EXCEPTIONSFLAG_6 = -fno-exceptions\r
86endif\r
87ifeq ($(USE_EXCEPTIONS),1)\r
88__EXCEPTIONSFLAG_6 = \r
89endif\r
90ifeq ($(WXUNIV),1)\r
91__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
92endif\r
93ifeq ($(WXUNIV),1)\r
94__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
95endif\r
96ifeq ($(DEBUG_FLAG),0)\r
97__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
98endif\r
99ifeq ($(DEBUG_FLAG),0)\r
100__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
101endif\r
102ifeq ($(USE_EXCEPTIONS),0)\r
103__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
104endif\r
105ifeq ($(USE_EXCEPTIONS),0)\r
106__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
107endif\r
108ifeq ($(USE_RTTI),0)\r
109__RTTI_DEFINE_p = -DwxNO_RTTI\r
110endif\r
111ifeq ($(USE_RTTI),0)\r
112__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
113endif\r
114ifeq ($(USE_THREADS),0)\r
115__THREAD_DEFINE_p = -DwxNO_THREADS\r
116endif\r
117ifeq ($(USE_THREADS),0)\r
118__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
119endif\r
120ifeq ($(UNICODE),0)\r
121__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
122endif\r
123ifeq ($(UNICODE),1)\r
124__UNICODE_DEFINE_p = -D_UNICODE\r
125endif\r
126ifeq ($(UNICODE),0)\r
127__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
128endif\r
129ifeq ($(UNICODE),1)\r
130__UNICODE_DEFINE_p_1 = --define _UNICODE\r
131endif\r
132ifeq ($(MSLU),1)\r
133__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
134endif\r
135ifeq ($(MSLU),1)\r
136__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
137endif\r
138ifeq ($(USE_GDIPLUS),1)\r
139__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1\r
140endif\r
141ifeq ($(USE_GDIPLUS),1)\r
142__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1\r
143endif\r
144ifeq ($(SHARED),1)\r
145__DLLFLAG_p = -DWXUSINGDLL\r
146endif\r
147ifeq ($(SHARED),1)\r
148__DLLFLAG_p_1 = --define WXUSINGDLL\r
149endif\r
150ifeq ($(MONOLITHIC),0)\r
151__WXLIB_CORE_p = \\r
152 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
153endif\r
154ifeq ($(MONOLITHIC),0)\r
155__WXLIB_BASE_p = \\r
156 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
157endif\r
158ifeq ($(MONOLITHIC),1)\r
159__WXLIB_MONO_p = \\r
160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
161endif\r
162ifeq ($(USE_GUI),1)\r
163__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
164endif\r
165ifeq ($(USE_GUI),1)\r
166__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
167endif\r
168ifeq ($(USE_GUI),1)\r
169__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
170endif\r
171ifeq ($(MSLU),1)\r
172__UNICOWS_LIB_p = -lunicows\r
173endif\r
174ifeq ($(USE_GDIPLUS),1)\r
175__GDIPLUS_LIB_p = -lgdiplus\r
176endif\r
177ifeq ($(BUILD),debug)\r
178ifeq ($(DEBUG_INFO),default)\r
179__DEBUGINFO = -g\r
180endif\r
181endif\r
182ifeq ($(BUILD),release)\r
183ifeq ($(DEBUG_INFO),default)\r
184__DEBUGINFO = \r
185endif\r
186endif\r
187ifeq ($(DEBUG_INFO),0)\r
188__DEBUGINFO = \r
189endif\r
190ifeq ($(DEBUG_INFO),1)\r
191__DEBUGINFO = -g\r
192endif\r
193ifeq ($(USE_THREADS),0)\r
194__THREADSFLAG = \r
195endif\r
196ifeq ($(USE_THREADS),1)\r
197__THREADSFLAG = -mthreads\r
198endif\r
199\r
200\r
201all: $(OBJS)\r
202$(OBJS):\r
203 -if not exist $(OBJS) mkdir $(OBJS)\r
204\r
205### Targets: ###\r
206\r
207all: $(OBJS)\life.exe data\r
208\r
209clean: \r
210 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
211 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
212 -if exist $(OBJS)\life.exe del $(OBJS)\life.exe\r
213\r
214$(OBJS)\life.exe: $(LIFE_OBJECTS) $(OBJS)\life_life_rc.o\r
215 $(CXX) -o $@ $(LIFE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
216\r
217data: \r
218 if not exist $(OBJS) mkdir $(OBJS)\r
219 for %%f in (breeder.lif) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
220\r
221$(OBJS)\life_life.o: ./life.cpp\r
222 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $(CPPDEPS) $<\r
223\r
224$(OBJS)\life_dialogs.o: ./dialogs.cpp\r
225 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $(CPPDEPS) $<\r
226\r
227$(OBJS)\life_game.o: ./game.cpp\r
228 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $(CPPDEPS) $<\r
229\r
230$(OBJS)\life_reader.o: ./reader.cpp\r
231 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $(CPPDEPS) $<\r
232\r
233$(OBJS)\life_life_rc.o: ./life.rc\r
234 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH\r
235\r
236.PHONY: all clean data\r
237\r
238\r
239SHELL := $(COMSPEC)\r
240\r
241# Dependencies tracking:\r
242-include $(OBJS)/*.d\r