]> git.saurik.com Git - wxWidgets.git/blob - demos/forty/makefile.gcc
fix index of appended items (broken by previous commit)
[wxWidgets.git] / demos / forty / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 26
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 FORTY_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)
27 FORTY_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
37
38 ### Conditionally set variables: ###
39
40 ifeq ($(GCC_VERSION),2.95)
41 GCCFLAGS = -fvtable-thunks
42 endif
43 ifeq ($(USE_GUI),0)
44 PORTNAME = base
45 endif
46 ifeq ($(USE_GUI),1)
47 PORTNAME = msw
48 endif
49 ifeq ($(BUILD),debug)
50 ifeq ($(DEBUG_FLAG),default)
51 WXDEBUGFLAG = d
52 endif
53 endif
54 ifeq ($(DEBUG_FLAG),1)
55 WXDEBUGFLAG = d
56 endif
57 ifeq ($(UNICODE),1)
58 WXUNICODEFLAG = u
59 endif
60 ifeq ($(WXUNIV),1)
61 WXUNIVNAME = univ
62 endif
63 ifeq ($(SHARED),1)
64 WXDLLFLAG = dll
65 endif
66 ifeq ($(SHARED),0)
67 LIBTYPE_SUFFIX = lib
68 endif
69 ifeq ($(SHARED),1)
70 LIBTYPE_SUFFIX = dll
71 endif
72 ifeq ($(MONOLITHIC),0)
73 EXTRALIBS_FOR_BASE =
74 endif
75 ifeq ($(MONOLITHIC),1)
76 EXTRALIBS_FOR_BASE =
77 endif
78 ifeq ($(BUILD),debug)
79 __OPTIMIZEFLAG_2 = -O0
80 endif
81 ifeq ($(BUILD),release)
82 __OPTIMIZEFLAG_2 = -O2
83 endif
84 ifeq ($(USE_RTTI),0)
85 __RTTIFLAG_5 = -fno-rtti
86 endif
87 ifeq ($(USE_RTTI),1)
88 __RTTIFLAG_5 =
89 endif
90 ifeq ($(USE_EXCEPTIONS),0)
91 __EXCEPTIONSFLAG_6 = -fno-exceptions
92 endif
93 ifeq ($(USE_EXCEPTIONS),1)
94 __EXCEPTIONSFLAG_6 =
95 endif
96 ifeq ($(WXUNIV),1)
97 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
98 endif
99 ifeq ($(WXUNIV),1)
100 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
101 endif
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p = -D__WXDEBUG__
105 endif
106 endif
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p = -D__WXDEBUG__
109 endif
110 ifeq ($(BUILD),debug)
111 ifeq ($(DEBUG_FLAG),default)
112 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
113 endif
114 endif
115 ifeq ($(DEBUG_FLAG),1)
116 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
117 endif
118 ifeq ($(USE_EXCEPTIONS),0)
119 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
120 endif
121 ifeq ($(USE_EXCEPTIONS),0)
122 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
123 endif
124 ifeq ($(USE_RTTI),0)
125 __RTTI_DEFINE_p = -DwxNO_RTTI
126 endif
127 ifeq ($(USE_RTTI),0)
128 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
129 endif
130 ifeq ($(USE_THREADS),0)
131 __THREAD_DEFINE_p = -DwxNO_THREADS
132 endif
133 ifeq ($(USE_THREADS),0)
134 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
135 endif
136 ifeq ($(UNICODE),1)
137 __UNICODE_DEFINE_p = -D_UNICODE
138 endif
139 ifeq ($(UNICODE),1)
140 __UNICODE_DEFINE_p_1 = --define _UNICODE
141 endif
142 ifeq ($(SHARED),1)
143 __DLLFLAG_p = -DWXUSINGDLL
144 endif
145 ifeq ($(SHARED),1)
146 __DLLFLAG_p_1 = --define WXUSINGDLL
147 endif
148 ifeq ($(MONOLITHIC),0)
149 __WXLIB_HTML_p = \
150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
151 endif
152 ifeq ($(MONOLITHIC),0)
153 __WXLIB_ADV_p = \
154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
155 endif
156 ifeq ($(MONOLITHIC),0)
157 __WXLIB_CORE_p = \
158 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
159 endif
160 ifeq ($(MONOLITHIC),0)
161 __WXLIB_BASE_p = \
162 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
163 endif
164 ifeq ($(MONOLITHIC),1)
165 __WXLIB_MONO_p = \
166 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
167 endif
168 ifeq ($(USE_GUI),1)
169 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
170 endif
171 ifeq ($(USE_GUI),1)
172 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
173 endif
174 ifeq ($(USE_GUI),1)
175 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
176 endif
177 ifeq ($(MSLU),1)
178 __UNICOWS_LIB_p = -lunicows
179 endif
180 ifeq ($(BUILD),debug)
181 ifeq ($(DEBUG_INFO),default)
182 __DEBUGINFO = -g
183 endif
184 endif
185 ifeq ($(BUILD),release)
186 ifeq ($(DEBUG_INFO),default)
187 __DEBUGINFO =
188 endif
189 endif
190 ifeq ($(DEBUG_INFO),0)
191 __DEBUGINFO =
192 endif
193 ifeq ($(DEBUG_INFO),1)
194 __DEBUGINFO = -g
195 endif
196 ifeq ($(USE_THREADS),0)
197 __THREADSFLAG =
198 endif
199 ifeq ($(USE_THREADS),1)
200 __THREADSFLAG = -mthreads
201 endif
202
203
204 all: $(OBJS)
205 $(OBJS):
206 -if not exist $(OBJS) mkdir $(OBJS)
207
208 ### Targets: ###
209
210 all: $(OBJS)\forty.exe data
211
212 clean:
213 -if exist $(OBJS)\*.o del $(OBJS)\*.o
214 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
215
216 $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty_rc.o
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
218
219 data:
220 if not exist $(OBJS) mkdir $(OBJS)
221 for %%f in (about.htm) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
222
223 $(OBJS)\forty_forty.o: ./forty.cpp
224 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
225
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) $<
231
232 $(OBJS)\forty_game.o: ./game.cpp
233 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
234
235 $(OBJS)\forty_pile.o: ./pile.cpp
236 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
237
238 $(OBJS)\forty_playerdg.o: ./playerdg.cpp
239 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
240
241 $(OBJS)\forty_scoredg.o: ./scoredg.cpp
242 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
243
244 $(OBJS)\forty_scorefil.o: ./scorefil.cpp
245 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
246
247 $(OBJS)\forty_forty_rc.o: ./forty.rc
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
249
250 .PHONY: all clean data
251
252