]> git.saurik.com Git - wxWidgets.git/blame_incremental - demos/forty/makefile.gcc
Return smaller images for wxART_MENU/BUTTON under OS X.
[wxWidgets.git] / demos / forty / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.6 (http://www.bakefile.org)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD -MP
16WX_RELEASE_NODOT = 29
17COMPILER_PREFIX = gcc
18OBJS = \
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
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)
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
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)
53WXDEBUGFLAG = d
54endif
55ifeq ($(UNICODE),1)
56WXUNICODEFLAG = u
57endif
58ifeq ($(WXUNIV),1)
59WXUNIVNAME = univ
60endif
61ifeq ($(SHARED),1)
62WXDLLFLAG = dll
63endif
64ifeq ($(SHARED),0)
65LIBTYPE_SUFFIX = lib
66endif
67ifeq ($(SHARED),1)
68LIBTYPE_SUFFIX = dll
69endif
70ifeq ($(MONOLITHIC),0)
71EXTRALIBS_FOR_BASE =
72endif
73ifeq ($(MONOLITHIC),1)
74EXTRALIBS_FOR_BASE =
75endif
76ifeq ($(BUILD),debug)
77__OPTIMIZEFLAG_2 = -O0
78endif
79ifeq ($(BUILD),release)
80__OPTIMIZEFLAG_2 = -O2
81endif
82ifeq ($(USE_RTTI),0)
83__RTTIFLAG_5 = -fno-rtti
84endif
85ifeq ($(USE_RTTI),1)
86__RTTIFLAG_5 =
87endif
88ifeq ($(USE_EXCEPTIONS),0)
89__EXCEPTIONSFLAG_6 = -fno-exceptions
90endif
91ifeq ($(USE_EXCEPTIONS),1)
92__EXCEPTIONSFLAG_6 =
93endif
94ifeq ($(WXUNIV),1)
95__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
96endif
97ifeq ($(WXUNIV),1)
98__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
99endif
100ifeq ($(DEBUG_FLAG),0)
101__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
102endif
103ifeq ($(DEBUG_FLAG),0)
104__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
105endif
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
124ifeq ($(UNICODE),0)
125__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
126endif
127ifeq ($(UNICODE),1)
128__UNICODE_DEFINE_p = -D_UNICODE
129endif
130ifeq ($(UNICODE),0)
131__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
132endif
133ifeq ($(UNICODE),1)
134__UNICODE_DEFINE_p_1 = --define _UNICODE
135endif
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
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
148ifeq ($(SHARED),1)
149__DLLFLAG_p = -DWXUSINGDLL
150endif
151ifeq ($(SHARED),1)
152__DLLFLAG_p_1 = --define WXUSINGDLL
153endif
154ifeq ($(MONOLITHIC),0)
155__WXLIB_HTML_p = \
156 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
157endif
158ifeq ($(MONOLITHIC),0)
159__WXLIB_ADV_p = \
160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
161endif
162ifeq ($(MONOLITHIC),0)
163__WXLIB_XML_p = \
164 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
165endif
166ifeq ($(MONOLITHIC),0)
167__WXLIB_CORE_p = \
168 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
169endif
170ifeq ($(MONOLITHIC),0)
171__WXLIB_BASE_p = \
172 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
173endif
174ifeq ($(MONOLITHIC),1)
175__WXLIB_MONO_p = \
176 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
177endif
178ifeq ($(USE_GUI),1)
179__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
180endif
181ifeq ($(USE_GUI),1)
182__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
183endif
184ifeq ($(USE_GUI),1)
185__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
186endif
187ifeq ($(MSLU),1)
188__UNICOWS_LIB_p = -lunicows
189endif
190ifeq ($(USE_GDIPLUS),1)
191__GDIPLUS_LIB_p = -lgdiplus
192endif
193ifeq ($(BUILD),debug)
194ifeq ($(DEBUG_INFO),default)
195__DEBUGINFO = -g
196endif
197endif
198ifeq ($(BUILD),release)
199ifeq ($(DEBUG_INFO),default)
200__DEBUGINFO =
201endif
202endif
203ifeq ($(DEBUG_INFO),0)
204__DEBUGINFO =
205endif
206ifeq ($(DEBUG_INFO),1)
207__DEBUGINFO = -g
208endif
209ifeq ($(USE_THREADS),0)
210__THREADSFLAG =
211endif
212ifeq ($(USE_THREADS),1)
213__THREADSFLAG = -mthreads
214endif
215
216
217all: $(OBJS)
218$(OBJS):
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221### Targets: ###
222
223all: $(OBJS)\forty.exe data
224
225clean:
226 -if exist $(OBJS)\*.o del $(OBJS)\*.o
227 -if exist $(OBJS)\*.d del $(OBJS)\*.d
228 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
229
230$(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty_rc.o
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
232
233data:
234 if not exist $(OBJS) mkdir $(OBJS)
235 for %%f in (about.htm) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
236
237$(OBJS)\forty_forty.o: ./forty.cpp
238 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
239
240$(OBJS)\forty_canvas.o: ./canvas.cpp
241 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
242
243$(OBJS)\forty_card.o: ./card.cpp
244 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
245
246$(OBJS)\forty_game.o: ./game.cpp
247 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
248
249$(OBJS)\forty_pile.o: ./pile.cpp
250 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
251
252$(OBJS)\forty_playerdg.o: ./playerdg.cpp
253 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
254
255$(OBJS)\forty_scoredg.o: ./scoredg.cpp
256 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
257
258$(OBJS)\forty_scorefil.o: ./scorefil.cpp
259 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
260
261$(OBJS)\forty_forty_rc.o: ./forty.rc
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
263
264.PHONY: all clean data
265
266
267SHELL := $(COMSPEC)
268
269# Dependencies tracking:
270-include $(OBJS)/*.d