]> git.saurik.com Git - wxWidgets.git/blame - demos/life/makefile.gcc
Need wxFULL_REPAINT_ON_SIZE for the background to erase properly (needs to be
[wxWidgets.git] / demos / life / makefile.gcc
CommitLineData
264af224
VS
1# =========================================================================
2# This makefile was generated by
d3d0b8db 3# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
264af224
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
264af224
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
b17c1746
DE
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
d3d0b8db 18LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
a2e268df
VS
21LIFE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
d3d0b8db
JS
23 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
24 -DNOPCH $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy \
25 $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
26LIFE_OBJECTS = \
27 $(OBJS)\life_life.o \
28 $(OBJS)\life_dialogs.o \
29 $(OBJS)\life_game.o \
30 $(OBJS)\life_reader.o \
31 $(OBJS)\life_life_rc.o
264af224
VS
32
33### Conditionally set variables: ###
34
35ifeq ($(GCC_VERSION),2.95)
36GCCFLAGS = -fvtable-thunks
37endif
38ifeq ($(USE_GUI),0)
39PORTNAME = base
40endif
41ifeq ($(USE_GUI),1)
42PORTNAME = msw
43endif
44ifeq ($(BUILD),debug)
45ifeq ($(DEBUG_FLAG),default)
46WXDEBUGFLAG = d
47endif
48endif
49ifeq ($(DEBUG_FLAG),1)
50WXDEBUGFLAG = d
51endif
264af224
VS
52ifeq ($(UNICODE),1)
53WXUNICODEFLAG = u
54endif
55ifeq ($(WXUNIV),1)
56WXUNIVNAME = univ
57endif
b17c1746
DE
58ifeq ($(SHARED),1)
59WXDLLFLAG = dll
264af224 60endif
d3d0b8db
JS
61ifeq ($(SHARED),0)
62LIBTYPE_SUFFIX = lib
63endif
64ifeq ($(SHARED),1)
65LIBTYPE_SUFFIX = dll
66endif
dd65d8c8
RN
67ifeq ($(MONOLITHIC),0)
68EXTRALIBS_FOR_BASE =
69endif
70ifeq ($(MONOLITHIC),1)
71EXTRALIBS_FOR_BASE =
72endif
b17c1746
DE
73ifeq ($(BUILD),debug)
74__OPTIMIZEFLAG_2 = -O0
264af224
VS
75endif
76ifeq ($(BUILD),release)
b17c1746 77__OPTIMIZEFLAG_2 = -O2
264af224 78endif
b17c1746
DE
79ifeq ($(USE_EXCEPTIONS),0)
80__EXCEPTIONSFLAG_4 = -fno-rtti
264af224 81endif
b17c1746
DE
82ifeq ($(USE_EXCEPTIONS),1)
83__EXCEPTIONSFLAG_4 =
264af224 84endif
b17c1746
DE
85ifeq ($(USE_EXCEPTIONS),0)
86__EXCEPTIONSFLAG_5 = -fno-exceptions
87endif
88ifeq ($(USE_EXCEPTIONS),1)
89__EXCEPTIONSFLAG_5 =
90endif
91ifeq ($(WXUNIV),1)
92__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
93endif
94ifeq ($(WXUNIV),1)
95__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
264af224
VS
96endif
97ifeq ($(BUILD),debug)
98ifeq ($(DEBUG_FLAG),default)
99__DEBUG_DEFINE_p = -D__WXDEBUG__
100endif
101endif
102ifeq ($(DEBUG_FLAG),1)
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104endif
105ifeq ($(BUILD),debug)
106ifeq ($(DEBUG_FLAG),default)
107__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108endif
109endif
110ifeq ($(DEBUG_FLAG),1)
111__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
112endif
b17c1746
DE
113ifeq ($(UNICODE),1)
114__UNICODE_DEFINE_p = -D_UNICODE
115endif
116ifeq ($(UNICODE),1)
117__UNICODE_DEFINE_p_1 = --define _UNICODE
118endif
264af224
VS
119ifeq ($(SHARED),1)
120__DLLFLAG_p = -DWXUSINGDLL
121endif
122ifeq ($(SHARED),1)
123__DLLFLAG_p_1 = --define WXUSINGDLL
124endif
b17c1746
DE
125ifeq ($(MONOLITHIC),0)
126__WXLIB_CORE_p = \
c33fae85 127 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 128endif
b17c1746 129ifeq ($(MONOLITHIC),0)
c33fae85
RN
130__WXLIB_BASE_p = \
131 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 132endif
b17c1746
DE
133ifeq ($(MONOLITHIC),1)
134__WXLIB_MONO_p = \
c33fae85 135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 136endif
b17c1746 137ifeq ($(USE_GUI),1)
9c2d002b 138__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
a4ad36cd 139endif
264af224 140ifeq ($(USE_GUI),1)
9c2d002b 141__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
264af224
VS
142endif
143ifeq ($(USE_GUI),1)
9c2d002b 144__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
264af224 145endif
b17c1746
DE
146ifeq ($(MSLU),1)
147__UNICOWS_LIB_p = -lunicows
264af224 148endif
b17c1746
DE
149ifeq ($(BUILD),debug)
150ifeq ($(DEBUG_INFO),default)
151__DEBUGINFO = -g
4e209a20 152endif
264af224 153endif
b17c1746
DE
154ifeq ($(BUILD),release)
155ifeq ($(DEBUG_INFO),default)
156__DEBUGINFO =
264af224 157endif
264af224 158endif
b17c1746
DE
159ifeq ($(DEBUG_INFO),0)
160__DEBUGINFO =
264af224 161endif
b17c1746
DE
162ifeq ($(DEBUG_INFO),1)
163__DEBUGINFO = -g
264af224
VS
164endif
165
166
167all: $(OBJS)
168$(OBJS):
169 -if not exist $(OBJS) mkdir $(OBJS)
170
171### Targets: ###
172
173all: $(OBJS)\life.exe data
174
b17c1746
DE
175clean:
176 -if exist $(OBJS)\*.o del $(OBJS)\*.o
177 -if exist $(OBJS)\life.exe del $(OBJS)\life.exe
178
179$(OBJS)\life.exe: $(LIFE_OBJECTS) $(OBJS)\life_life_rc.o
dd65d8c8 180 $(CXX) -o $@ $(LIFE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746
DE
181
182data:
183 if not exist $(OBJS) mkdir $(OBJS)
184 for %%f in (breeder.lif) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
185
186$(OBJS)\life_life.o: ./life.cpp
187 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $<
188
1c3a6972 189$(OBJS)\life_dialogs.o: ./dialogs.cpp
264af224
VS
190 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $<
191
1c3a6972 192$(OBJS)\life_game.o: ./game.cpp
264af224
VS
193 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $<
194
b17c1746 195$(OBJS)\life_reader.o: ./reader.cpp
264af224
VS
196 $(CXX) -c -o $@ $(LIFE_CXXFLAGS) $<
197
1c3a6972 198$(OBJS)\life_life_rc.o: ./life.rc
d3d0b8db 199 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
264af224 200
fd9f42b6 201.PHONY: all clean data
d3d0b8db 202