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