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