]> git.saurik.com Git - wxWidgets.git/blame - demos/forty/makefile.gcc
removed code which doesn't do anything (patch 1175655)
[wxWidgets.git] / demos / forty / makefile.gcc
CommitLineData
264af224
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (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)
8c9f8f91
JS
21FORTY_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
25 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
27FORTY_OBJECTS = \
28 $(OBJS)\forty_forty.o \
29 $(OBJS)\forty_canvas.o \
30 $(OBJS)\forty_card.o \
31 $(OBJS)\forty_game.o \
32 $(OBJS)\forty_pile.o \
33 $(OBJS)\forty_playerdg.o \
34 $(OBJS)\forty_scoredg.o \
35 $(OBJS)\forty_scorefil.o \
36 $(OBJS)\forty_forty_rc.o
264af224
VS
37
38### Conditionally set variables: ###
39
40ifeq ($(GCC_VERSION),2.95)
41GCCFLAGS = -fvtable-thunks
42endif
43ifeq ($(USE_GUI),0)
44PORTNAME = base
45endif
46ifeq ($(USE_GUI),1)
47PORTNAME = msw
48endif
49ifeq ($(BUILD),debug)
50ifeq ($(DEBUG_FLAG),default)
51WXDEBUGFLAG = d
52endif
53endif
54ifeq ($(DEBUG_FLAG),1)
55WXDEBUGFLAG = d
56endif
264af224
VS
57ifeq ($(UNICODE),1)
58WXUNICODEFLAG = u
59endif
60ifeq ($(WXUNIV),1)
61WXUNIVNAME = univ
62endif
b17c1746
DE
63ifeq ($(SHARED),1)
64WXDLLFLAG = dll
264af224 65endif
d3d0b8db
JS
66ifeq ($(SHARED),0)
67LIBTYPE_SUFFIX = lib
68endif
69ifeq ($(SHARED),1)
70LIBTYPE_SUFFIX = dll
71endif
dd65d8c8
RN
72ifeq ($(MONOLITHIC),0)
73EXTRALIBS_FOR_BASE =
74endif
75ifeq ($(MONOLITHIC),1)
76EXTRALIBS_FOR_BASE =
77endif
b17c1746
DE
78ifeq ($(BUILD),debug)
79__OPTIMIZEFLAG_2 = -O0
264af224
VS
80endif
81ifeq ($(BUILD),release)
b17c1746 82__OPTIMIZEFLAG_2 = -O2
264af224 83endif
8c9f8f91
JS
84ifeq ($(USE_RTTI),0)
85__RTTIFLAG_5 = -fno-rtti
264af224 86endif
8c9f8f91
JS
87ifeq ($(USE_RTTI),1)
88__RTTIFLAG_5 =
264af224 89endif
b17c1746 90ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 91__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
92endif
93ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 94__EXCEPTIONSFLAG_6 =
b17c1746
DE
95endif
96ifeq ($(WXUNIV),1)
97__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
98endif
99ifeq ($(WXUNIV),1)
100__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
264af224
VS
101endif
102ifeq ($(BUILD),debug)
103ifeq ($(DEBUG_FLAG),default)
104__DEBUG_DEFINE_p = -D__WXDEBUG__
105endif
106endif
107ifeq ($(DEBUG_FLAG),1)
108__DEBUG_DEFINE_p = -D__WXDEBUG__
109endif
110ifeq ($(BUILD),debug)
111ifeq ($(DEBUG_FLAG),default)
112__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
113endif
114endif
115ifeq ($(DEBUG_FLAG),1)
116__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
117endif
8c9f8f91
JS
118ifeq ($(USE_EXCEPTIONS),0)
119__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
120endif
121ifeq ($(USE_EXCEPTIONS),0)
122__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
123endif
124ifeq ($(USE_RTTI),0)
125__RTTI_DEFINE_p = -DwxNO_RTTI
126endif
127ifeq ($(USE_RTTI),0)
128__RTTI_DEFINE_p_1 = --define wxNO_RTTI
129endif
130ifeq ($(USE_THREADS),0)
131__THREAD_DEFINE_p = -DwxNO_THREADS
132endif
133ifeq ($(USE_THREADS),0)
134__THREAD_DEFINE_p_1 = --define wxNO_THREADS
135endif
b17c1746
DE
136ifeq ($(UNICODE),1)
137__UNICODE_DEFINE_p = -D_UNICODE
138endif
139ifeq ($(UNICODE),1)
140__UNICODE_DEFINE_p_1 = --define _UNICODE
141endif
264af224
VS
142ifeq ($(SHARED),1)
143__DLLFLAG_p = -DWXUSINGDLL
144endif
145ifeq ($(SHARED),1)
146__DLLFLAG_p_1 = --define WXUSINGDLL
147endif
b17c1746
DE
148ifeq ($(MONOLITHIC),0)
149__WXLIB_HTML_p = \
c33fae85 150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 151endif
b17c1746 152ifeq ($(MONOLITHIC),0)
c4839ccf 153__WXLIB_ADV_p = \
c33fae85 154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
c4839ccf
JS
155endif
156ifeq ($(MONOLITHIC),0)
b17c1746 157__WXLIB_CORE_p = \
c33fae85 158 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 159endif
b17c1746 160ifeq ($(MONOLITHIC),0)
c33fae85
RN
161__WXLIB_BASE_p = \
162 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 163endif
b17c1746
DE
164ifeq ($(MONOLITHIC),1)
165__WXLIB_MONO_p = \
c33fae85 166 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 167endif
264af224 168ifeq ($(USE_GUI),1)
9c2d002b 169__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
264af224
VS
170endif
171ifeq ($(USE_GUI),1)
9c2d002b 172__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
264af224
VS
173endif
174ifeq ($(USE_GUI),1)
9c2d002b 175__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
264af224 176endif
4e209a20
VS
177ifeq ($(MSLU),1)
178__UNICOWS_LIB_p = -lunicows
179endif
b17c1746
DE
180ifeq ($(BUILD),debug)
181ifeq ($(DEBUG_INFO),default)
182__DEBUGINFO = -g
264af224 183endif
264af224 184endif
b17c1746
DE
185ifeq ($(BUILD),release)
186ifeq ($(DEBUG_INFO),default)
187__DEBUGINFO =
264af224 188endif
b17c1746
DE
189endif
190ifeq ($(DEBUG_INFO),0)
191__DEBUGINFO =
192endif
193ifeq ($(DEBUG_INFO),1)
194__DEBUGINFO = -g
264af224 195endif
8c9f8f91
JS
196ifeq ($(USE_THREADS),0)
197__THREADSFLAG =
198endif
199ifeq ($(USE_THREADS),1)
200__THREADSFLAG = -mthreads
201endif
264af224
VS
202
203
204all: $(OBJS)
205$(OBJS):
206 -if not exist $(OBJS) mkdir $(OBJS)
207
208### Targets: ###
209
154fd1e4 210all: $(OBJS)\forty.exe data
264af224 211
b17c1746
DE
212clean:
213 -if exist $(OBJS)\*.o del $(OBJS)\*.o
214 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
264af224 215
b17c1746 216$(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty_rc.o
8c9f8f91 217 $(CXX) -o $@ $(FORTY_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_HTML_p) $(__WXLIB_ADV_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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
264af224 218
154fd1e4
WS
219data:
220 if not exist $(OBJS) mkdir $(OBJS)
221 for %%f in (about.htm) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
222
1c3a6972 223$(OBJS)\forty_forty.o: ./forty.cpp
264af224
VS
224 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
225
b17c1746
DE
226$(OBJS)\forty_canvas.o: ./canvas.cpp
227 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
228
229$(OBJS)\forty_card.o: ./card.cpp
230 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
264af224 231
1c3a6972 232$(OBJS)\forty_game.o: ./game.cpp
264af224
VS
233 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
234
1c3a6972 235$(OBJS)\forty_pile.o: ./pile.cpp
264af224
VS
236 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
237
1c3a6972 238$(OBJS)\forty_playerdg.o: ./playerdg.cpp
264af224
VS
239 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
240
1c3a6972 241$(OBJS)\forty_scoredg.o: ./scoredg.cpp
264af224
VS
242 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
243
1c3a6972 244$(OBJS)\forty_scorefil.o: ./scorefil.cpp
264af224
VS
245 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
246
b17c1746 247$(OBJS)\forty_forty_rc.o: ./forty.rc
8c9f8f91 248 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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
264af224 249
154fd1e4 250.PHONY: all clean data
d3d0b8db 251
8c9f8f91 252