]> git.saurik.com Git - wxWidgets.git/blame - demos/forty/makefile.gcc
Merged GSOC Ribbon work from SOC2009_RIBBON branch into trunk.
[wxWidgets.git] / demos / forty / makefile.gcc
CommitLineData
264af224
VS
1# =========================================================================
2# This makefile was generated by
95ff11c4 3# Bakefile 0.2.6 (http://www.bakefile.org)
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
03c6117e 15CPPDEPS = -MT$@ -MF$@.d -MD -MP
ae4ccf12 16WX_RELEASE_NODOT = 29
7379e476 17COMPILER_PREFIX = gcc
b17c1746 18OBJS = \
7379e476
VZ
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
23FORTY_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
29 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
30FORTY_OBJECTS = \
31 $(OBJS)\forty_forty.o \
32 $(OBJS)\forty_canvas.o \
33 $(OBJS)\forty_card.o \
34 $(OBJS)\forty_game.o \
35 $(OBJS)\forty_pile.o \
36 $(OBJS)\forty_playerdg.o \
37 $(OBJS)\forty_scoredg.o \
38 $(OBJS)\forty_scorefil.o \
39 $(OBJS)\forty_forty_rc.o
264af224
VS
40
41### Conditionally set variables: ###
42
43ifeq ($(GCC_VERSION),2.95)
44GCCFLAGS = -fvtable-thunks
45endif
46ifeq ($(USE_GUI),0)
47PORTNAME = base
48endif
49ifeq ($(USE_GUI),1)
50PORTNAME = msw
51endif
52ifeq ($(BUILD),debug)
264af224
VS
53WXDEBUGFLAG = d
54endif
264af224
VS
55ifeq ($(UNICODE),1)
56WXUNICODEFLAG = u
57endif
58ifeq ($(WXUNIV),1)
59WXUNIVNAME = univ
60endif
b17c1746
DE
61ifeq ($(SHARED),1)
62WXDLLFLAG = dll
264af224 63endif
d3d0b8db
JS
64ifeq ($(SHARED),0)
65LIBTYPE_SUFFIX = lib
66endif
67ifeq ($(SHARED),1)
68LIBTYPE_SUFFIX = dll
69endif
dd65d8c8
RN
70ifeq ($(MONOLITHIC),0)
71EXTRALIBS_FOR_BASE =
72endif
73ifeq ($(MONOLITHIC),1)
74EXTRALIBS_FOR_BASE =
75endif
b17c1746
DE
76ifeq ($(BUILD),debug)
77__OPTIMIZEFLAG_2 = -O0
264af224
VS
78endif
79ifeq ($(BUILD),release)
b17c1746 80__OPTIMIZEFLAG_2 = -O2
264af224 81endif
8c9f8f91
JS
82ifeq ($(USE_RTTI),0)
83__RTTIFLAG_5 = -fno-rtti
264af224 84endif
8c9f8f91
JS
85ifeq ($(USE_RTTI),1)
86__RTTIFLAG_5 =
264af224 87endif
b17c1746 88ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 89__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
90endif
91ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 92__EXCEPTIONSFLAG_6 =
b17c1746
DE
93endif
94ifeq ($(WXUNIV),1)
95__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
96endif
97ifeq ($(WXUNIV),1)
98__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
264af224 99endif
d12d9eda
VZ
100ifeq ($(DEBUG_FLAG),0)
101__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
264af224 102endif
d12d9eda
VZ
103ifeq ($(DEBUG_FLAG),0)
104__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
264af224 105endif
8c9f8f91
JS
106ifeq ($(USE_EXCEPTIONS),0)
107__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
108endif
109ifeq ($(USE_EXCEPTIONS),0)
110__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
111endif
112ifeq ($(USE_RTTI),0)
113__RTTI_DEFINE_p = -DwxNO_RTTI
114endif
115ifeq ($(USE_RTTI),0)
116__RTTI_DEFINE_p_1 = --define wxNO_RTTI
117endif
118ifeq ($(USE_THREADS),0)
119__THREAD_DEFINE_p = -DwxNO_THREADS
120endif
121ifeq ($(USE_THREADS),0)
122__THREAD_DEFINE_p_1 = --define wxNO_THREADS
123endif
7379e476
VZ
124ifeq ($(UNICODE),0)
125__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
126endif
b17c1746
DE
127ifeq ($(UNICODE),1)
128__UNICODE_DEFINE_p = -D_UNICODE
129endif
7379e476
VZ
130ifeq ($(UNICODE),0)
131__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
132endif
b17c1746
DE
133ifeq ($(UNICODE),1)
134__UNICODE_DEFINE_p_1 = --define _UNICODE
135endif
2113bc77
MW
136ifeq ($(MSLU),1)
137__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
138endif
139ifeq ($(MSLU),1)
140__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
141endif
3abcf424
RD
142ifeq ($(USE_GDIPLUS),1)
143__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
144endif
145ifeq ($(USE_GDIPLUS),1)
146__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
147endif
264af224
VS
148ifeq ($(SHARED),1)
149__DLLFLAG_p = -DWXUSINGDLL
150endif
151ifeq ($(SHARED),1)
152__DLLFLAG_p_1 = --define WXUSINGDLL
153endif
b17c1746
DE
154ifeq ($(MONOLITHIC),0)
155__WXLIB_HTML_p = \
c33fae85 156 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 157endif
b17c1746 158ifeq ($(MONOLITHIC),0)
c4839ccf 159__WXLIB_ADV_p = \
c33fae85 160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
c4839ccf
JS
161endif
162ifeq ($(MONOLITHIC),0)
ebef1625
MW
163__WXLIB_XML_p = \
164 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
165endif
166ifeq ($(MONOLITHIC),0)
b17c1746 167__WXLIB_CORE_p = \
c33fae85 168 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 169endif
b17c1746 170ifeq ($(MONOLITHIC),0)
c33fae85
RN
171__WXLIB_BASE_p = \
172 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 173endif
b17c1746
DE
174ifeq ($(MONOLITHIC),1)
175__WXLIB_MONO_p = \
c33fae85 176 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 177endif
264af224 178ifeq ($(USE_GUI),1)
9c2d002b 179__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
264af224
VS
180endif
181ifeq ($(USE_GUI),1)
9c2d002b 182__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
264af224
VS
183endif
184ifeq ($(USE_GUI),1)
9c2d002b 185__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
264af224 186endif
4e209a20
VS
187ifeq ($(MSLU),1)
188__UNICOWS_LIB_p = -lunicows
189endif
3abcf424
RD
190ifeq ($(USE_GDIPLUS),1)
191__GDIPLUS_LIB_p = -lgdiplus
192endif
b17c1746
DE
193ifeq ($(BUILD),debug)
194ifeq ($(DEBUG_INFO),default)
195__DEBUGINFO = -g
264af224 196endif
264af224 197endif
b17c1746
DE
198ifeq ($(BUILD),release)
199ifeq ($(DEBUG_INFO),default)
200__DEBUGINFO =
264af224 201endif
b17c1746
DE
202endif
203ifeq ($(DEBUG_INFO),0)
204__DEBUGINFO =
205endif
206ifeq ($(DEBUG_INFO),1)
207__DEBUGINFO = -g
264af224 208endif
8c9f8f91
JS
209ifeq ($(USE_THREADS),0)
210__THREADSFLAG =
211endif
212ifeq ($(USE_THREADS),1)
213__THREADSFLAG = -mthreads
214endif
264af224
VS
215
216
217all: $(OBJS)
218$(OBJS):
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221### Targets: ###
222
154fd1e4 223all: $(OBJS)\forty.exe data
264af224 224
b17c1746
DE
225clean:
226 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 227 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746 228 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
264af224 229
b17c1746 230$(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty_rc.o
b44f5137 231 $(CXX) -o $@ $(FORTY_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_XML_p) $(__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
264af224 232
154fd1e4
WS
233data:
234 if not exist $(OBJS) mkdir $(OBJS)
235 for %%f in (about.htm) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
236
1c3a6972 237$(OBJS)\forty_forty.o: ./forty.cpp
0d90d6ea 238 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
264af224 239
b17c1746 240$(OBJS)\forty_canvas.o: ./canvas.cpp
0d90d6ea 241 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
242
243$(OBJS)\forty_card.o: ./card.cpp
0d90d6ea 244 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
264af224 245
1c3a6972 246$(OBJS)\forty_game.o: ./game.cpp
0d90d6ea 247 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
264af224 248
1c3a6972 249$(OBJS)\forty_pile.o: ./pile.cpp
0d90d6ea 250 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
264af224 251
1c3a6972 252$(OBJS)\forty_playerdg.o: ./playerdg.cpp
0d90d6ea 253 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
264af224 254
1c3a6972 255$(OBJS)\forty_scoredg.o: ./scoredg.cpp
0d90d6ea 256 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
264af224 257
1c3a6972 258$(OBJS)\forty_scorefil.o: ./scorefil.cpp
0d90d6ea 259 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
264af224 260
b17c1746 261$(OBJS)\forty_forty_rc.o: ./forty.rc
7379e476 262 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
264af224 263
154fd1e4 264.PHONY: all clean data
d3d0b8db 265
8c9f8f91 266
6e0fbb3d
VS
267SHELL := $(COMSPEC)
268
0d90d6ea
JS
269# Dependencies tracking:
270-include $(OBJS)/*.d