]> git.saurik.com Git - wxWidgets.git/blob - demos/forty/makefile.gcc
fix GTK3 build
[wxWidgets.git] / demos / forty / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (http://www.bakefile.org)
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 CPPDEPS = -MT$@ -MF$@.d -MD -MP
16 WX_RELEASE_NODOT = 29
17 COMPILER_PREFIX = gcc
18 OBJS = \
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
22 SETUPHDIR = \
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 FORTY_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \
30 -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
31 -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
32 FORTY_OBJECTS = \
33 $(OBJS)\forty_forty.o \
34 $(OBJS)\forty_canvas.o \
35 $(OBJS)\forty_card.o \
36 $(OBJS)\forty_game.o \
37 $(OBJS)\forty_pile.o \
38 $(OBJS)\forty_playerdg.o \
39 $(OBJS)\forty_scoredg.o \
40 $(OBJS)\forty_scorefil.o \
41 $(OBJS)\forty_forty_rc.o
42
43 ### Conditionally set variables: ###
44
45 ifeq ($(TOOLKIT),GTK)
46 WIN32_TOOLKIT_LOWERCASE = gtk
47 endif
48 ifeq ($(TOOLKIT),MSW)
49 WIN32_TOOLKIT_LOWERCASE = msw
50 endif
51 ifeq ($(GCC_VERSION),2.95)
52 GCCFLAGS = -fvtable-thunks
53 endif
54 ifeq ($(USE_GUI),0)
55 PORTNAME = base
56 endif
57 ifeq ($(USE_GUI),1)
58 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
59 endif
60 ifeq ($(TOOLKIT),MAC)
61 WXBASEPORT = _carbon
62 endif
63 ifeq ($(OFFICIAL_BUILD),1)
64 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
65 endif
66 ifeq ($(BUILD),debug)
67 WXDEBUGFLAG = d
68 endif
69 ifeq ($(UNICODE),1)
70 WXUNICODEFLAG = u
71 endif
72 ifeq ($(WXUNIV),1)
73 WXUNIVNAME = univ
74 endif
75 ifeq ($(SHARED),1)
76 WXDLLFLAG = dll
77 endif
78 ifeq ($(SHARED),0)
79 LIBTYPE_SUFFIX = lib
80 endif
81 ifeq ($(SHARED),1)
82 LIBTYPE_SUFFIX = dll
83 endif
84 ifeq ($(MONOLITHIC),0)
85 EXTRALIBS_FOR_BASE =
86 endif
87 ifeq ($(MONOLITHIC),1)
88 EXTRALIBS_FOR_BASE =
89 endif
90 ifeq ($(TOOLKIT),GTK)
91 CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
92 endif
93 ifeq ($(TOOLKIT),GTK)
94 ifeq ($(TOOLKIT_VERSION),2)
95 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
96 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
97 glib-2.0.lib
98 endif
99 endif
100 ifeq ($(BUILD),debug)
101 __OPTIMIZEFLAG_2 = -O0
102 endif
103 ifeq ($(BUILD),release)
104 __OPTIMIZEFLAG_2 = -O2
105 endif
106 ifeq ($(USE_RTTI),0)
107 __RTTIFLAG_5 = -fno-rtti
108 endif
109 ifeq ($(USE_RTTI),1)
110 __RTTIFLAG_5 =
111 endif
112 ifeq ($(USE_EXCEPTIONS),0)
113 __EXCEPTIONSFLAG_6 = -fno-exceptions
114 endif
115 ifeq ($(USE_EXCEPTIONS),1)
116 __EXCEPTIONSFLAG_6 =
117 endif
118 ifeq ($(WXUNIV),1)
119 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
120 endif
121 ifeq ($(WXUNIV),1)
122 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
123 endif
124 ifeq ($(DEBUG_FLAG),0)
125 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
126 endif
127 ifeq ($(DEBUG_FLAG),0)
128 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
129 endif
130 ifeq ($(BUILD),release)
131 __NDEBUG_DEFINE_p = -DNDEBUG
132 endif
133 ifeq ($(BUILD),release)
134 __NDEBUG_DEFINE_p_1 = --define NDEBUG
135 endif
136 ifeq ($(USE_EXCEPTIONS),0)
137 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
138 endif
139 ifeq ($(USE_EXCEPTIONS),0)
140 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
141 endif
142 ifeq ($(USE_RTTI),0)
143 __RTTI_DEFINE_p = -DwxNO_RTTI
144 endif
145 ifeq ($(USE_RTTI),0)
146 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
147 endif
148 ifeq ($(USE_THREADS),0)
149 __THREAD_DEFINE_p = -DwxNO_THREADS
150 endif
151 ifeq ($(USE_THREADS),0)
152 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
153 endif
154 ifeq ($(UNICODE),0)
155 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
156 endif
157 ifeq ($(UNICODE),1)
158 __UNICODE_DEFINE_p = -D_UNICODE
159 endif
160 ifeq ($(UNICODE),0)
161 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
162 endif
163 ifeq ($(UNICODE),1)
164 __UNICODE_DEFINE_p_1 = --define _UNICODE
165 endif
166 ifeq ($(MSLU),1)
167 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
168 endif
169 ifeq ($(MSLU),1)
170 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
171 endif
172 ifeq ($(USE_CAIRO),1)
173 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
174 endif
175 ifeq ($(USE_CAIRO),1)
176 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
177 endif
178 ifeq ($(SHARED),1)
179 __DLLFLAG_p = -DWXUSINGDLL
180 endif
181 ifeq ($(SHARED),1)
182 __DLLFLAG_p_1 = --define WXUSINGDLL
183 endif
184 ifeq ($(MONOLITHIC),0)
185 __WXLIB_HTML_p = \
186 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
187 endif
188 ifeq ($(MONOLITHIC),0)
189 __WXLIB_ADV_p = \
190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
191 endif
192 ifeq ($(MONOLITHIC),0)
193 __WXLIB_XML_p = \
194 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
195 endif
196 ifeq ($(MONOLITHIC),0)
197 __WXLIB_CORE_p = \
198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
199 endif
200 ifeq ($(MONOLITHIC),0)
201 __WXLIB_BASE_p = \
202 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
203 endif
204 ifeq ($(MONOLITHIC),1)
205 __WXLIB_MONO_p = \
206 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
207 endif
208 ifeq ($(USE_GUI),1)
209 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
210 endif
211 ifeq ($(USE_GUI),1)
212 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
213 endif
214 ifeq ($(USE_GUI),1)
215 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
216 endif
217 ifeq ($(MSLU),1)
218 __UNICOWS_LIB_p = -lunicows
219 endif
220 ifeq ($(USE_CAIRO),1)
221 __CAIRO_LIB_p = -lcairo
222 endif
223 ifeq ($(USE_CAIRO),1)
224 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
225 endif
226 ifeq ($(BUILD),debug)
227 ifeq ($(DEBUG_INFO),default)
228 __DEBUGINFO = -g
229 endif
230 endif
231 ifeq ($(BUILD),release)
232 ifeq ($(DEBUG_INFO),default)
233 __DEBUGINFO =
234 endif
235 endif
236 ifeq ($(DEBUG_INFO),0)
237 __DEBUGINFO =
238 endif
239 ifeq ($(DEBUG_INFO),1)
240 __DEBUGINFO = -g
241 endif
242 ifeq ($(USE_THREADS),0)
243 __THREADSFLAG =
244 endif
245 ifeq ($(USE_THREADS),1)
246 __THREADSFLAG = -mthreads
247 endif
248
249
250 all: $(OBJS)
251 $(OBJS):
252 -if not exist $(OBJS) mkdir $(OBJS)
253
254 ### Targets: ###
255
256 all: $(OBJS)\forty.exe data
257
258 clean:
259 -if exist $(OBJS)\*.o del $(OBJS)\*.o
260 -if exist $(OBJS)\*.d del $(OBJS)\*.d
261 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
262
263 $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty_rc.o
264 $(CXX) -o $@ $(FORTY_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(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) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
265
266 data:
267 if not exist $(OBJS) mkdir $(OBJS)
268 for %%f in (about.htm) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
269
270 $(OBJS)\forty_forty.o: ./forty.cpp
271 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
272
273 $(OBJS)\forty_canvas.o: ./canvas.cpp
274 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
275
276 $(OBJS)\forty_card.o: ./card.cpp
277 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
278
279 $(OBJS)\forty_game.o: ./game.cpp
280 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
281
282 $(OBJS)\forty_pile.o: ./pile.cpp
283 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
284
285 $(OBJS)\forty_playerdg.o: ./playerdg.cpp
286 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
287
288 $(OBJS)\forty_scoredg.o: ./scoredg.cpp
289 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
290
291 $(OBJS)\forty_scorefil.o: ./scorefil.cpp
292 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $<
293
294 $(OBJS)\forty_forty_rc.o: ./forty.rc
295 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
296
297 .PHONY: all clean data
298
299
300 SHELL := $(COMSPEC)
301
302 # Dependencies tracking:
303 -include $(OBJS)/*.d