]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.gcc
add more high-level event concepts, fixing native button number
[wxWidgets.git] / samples / render / makefile.gcc
CommitLineData
f82b7036
KO
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
f82b7036
KO
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
14b682f7 17WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
f82b7036
KO
18COMPILER_PREFIX = gcc\r
19OBJS = \\r
14b682f7
VZ
20 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
21LIBDIRNAME = \
22 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
f82b7036
KO
23SETUPHDIR = \\r
24 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
25RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
22a3b6e4 26 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
00fb97de
KO
27 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
28 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
b796194b
VS
29 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r
30 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \\r
22a3b6e4
VZ
31 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
32 $(CPPFLAGS) $(CXXFLAGS)
f82b7036
KO
33RENDER_OBJECTS = \\r
34 $(OBJS)\render_sample_rc.o \\r
35 $(OBJS)\render_render.o\r
36RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r
22a3b6e4 37 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
00fb97de
KO
38 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
39 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
b796194b 40 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
f82b7036 41 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \\r
22a3b6e4
VZ
42 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
43 $(CPPFLAGS) $(CXXFLAGS)
f82b7036
KO
44RENDDLL_OBJECTS = \\r
45 $(OBJS)\renddll_renddll.o\r
46\r
47### Conditionally set variables: ###\r
48\r
22a3b6e4
VZ
49ifeq ($(TOOLKIT),GTK)
50WIN32_TOOLKIT_LOWERCASE = gtk
51endif
52ifeq ($(TOOLKIT),MSW)
53WIN32_TOOLKIT_LOWERCASE = msw
54endif
f82b7036
KO
55ifeq ($(GCC_VERSION),2.95)\r
56GCCFLAGS = -fvtable-thunks\r
57endif\r
58ifeq ($(USE_GUI),0)\r
59PORTNAME = base\r
60endif\r
61ifeq ($(USE_GUI),1)\r
22a3b6e4
VZ
62PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
63endif
64ifeq ($(TOOLKIT),MAC)
65WXBASEPORT = _carbon
66endif
14b682f7
VZ
67ifeq ($(OFFICIAL_BUILD),1)
68COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
69endif
70ifeq ($(OFFICIAL_BUILD),0)
71WXCOMPILER = _gcc
72endif
73ifeq ($(OFFICIAL_BUILD),1)
74WXCOMPILER = _gcc$(COMPILER_VERSION)
75endif
f82b7036
KO
76ifeq ($(BUILD),debug)\r
77WXDEBUGFLAG = d\r
78endif\r
79ifeq ($(UNICODE),1)\r
80WXUNICODEFLAG = u\r
81endif\r
82ifeq ($(WXUNIV),1)\r
83WXUNIVNAME = univ\r
84endif\r
85ifeq ($(SHARED),1)\r
86WXDLLFLAG = dll\r
87endif\r
88ifeq ($(SHARED),0)\r
89LIBTYPE_SUFFIX = lib\r
90endif\r
91ifeq ($(SHARED),1)\r
92LIBTYPE_SUFFIX = dll\r
93endif\r
94ifeq ($(MONOLITHIC),0)\r
95EXTRALIBS_FOR_BASE = \r
96endif\r
97ifeq ($(MONOLITHIC),1)\r
51ec29ea 98EXTRALIBS_FOR_BASE = \r
f82b7036 99endif\r
22a3b6e4
VZ
100ifeq ($(TOOLKIT),GTK)
101CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
102endif
103ifeq ($(TOOLKIT),GTK)
104ifeq ($(TOOLKIT_VERSION),2)
105LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
106 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
107 glib-2.0.lib
108endif
109endif
f82b7036
KO
110ifeq ($(WXUNIV),1)\r
111__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
112endif\r
113ifeq ($(DEBUG_FLAG),0)\r
114__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
115endif\r
00fb97de
KO
116ifeq ($(BUILD),release)\r
117__NDEBUG_DEFINE_p_1 = --define NDEBUG\r
118endif\r
f82b7036
KO
119ifeq ($(USE_EXCEPTIONS),0)\r
120__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
121endif\r
122ifeq ($(USE_RTTI),0)\r
123__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
124endif\r
125ifeq ($(USE_THREADS),0)\r
126__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
127endif\r
128ifeq ($(UNICODE),0)\r
129__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
130endif\r
131ifeq ($(UNICODE),1)\r
132__UNICODE_DEFINE_p_1 = --define _UNICODE\r
133endif\r
134ifeq ($(MSLU),1)\r
135__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
136endif\r
f82b7036
KO
137ifeq ($(USE_CAIRO),1)\r
138__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
139endif\r
140ifeq ($(SHARED),1)\r
141__DLLFLAG_p = -DWXUSINGDLL\r
142endif\r
143ifeq ($(SHARED),1)\r
144__DLLFLAG_p_1 = --define WXUSINGDLL\r
145endif\r
146ifeq ($(SHARED),1)\r
147__renddll___depname = \\r
14b682f7 148 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
f82b7036
KO
149endif\r
150ifeq ($(BUILD),debug)\r
151__OPTIMIZEFLAG = -O0\r
152endif\r
153ifeq ($(BUILD),release)\r
154__OPTIMIZEFLAG = -O2\r
155endif\r
156ifeq ($(USE_RTTI),0)\r
157__RTTIFLAG = -fno-rtti\r
158endif\r
159ifeq ($(USE_RTTI),1)\r
160__RTTIFLAG = \r
161endif\r
162ifeq ($(USE_EXCEPTIONS),0)\r
163__EXCEPTIONSFLAG = -fno-exceptions\r
164endif\r
165ifeq ($(USE_EXCEPTIONS),1)\r
166__EXCEPTIONSFLAG = \r
167endif\r
168ifeq ($(WXUNIV),1)\r
169__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
170endif\r
171ifeq ($(DEBUG_FLAG),0)\r
172__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
173endif\r
00fb97de
KO
174ifeq ($(BUILD),release)\r
175__NDEBUG_DEFINE_p = -DNDEBUG\r
176endif\r
f82b7036
KO
177ifeq ($(USE_EXCEPTIONS),0)\r
178__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
179endif\r
180ifeq ($(USE_RTTI),0)\r
181__RTTI_DEFINE_p = -DwxNO_RTTI\r
182endif\r
183ifeq ($(USE_THREADS),0)\r
184__THREAD_DEFINE_p = -DwxNO_THREADS\r
185endif\r
186ifeq ($(UNICODE),0)\r
187__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
188endif\r
189ifeq ($(UNICODE),1)\r
190__UNICODE_DEFINE_p = -D_UNICODE\r
191endif\r
192ifeq ($(MSLU),1)\r
193__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
194endif\r
f82b7036
KO
195ifeq ($(USE_CAIRO),1)\r
196____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
197endif\r
198ifeq ($(MONOLITHIC),0)\r
199__WXLIB_CORE_p = \\r
200 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
201endif\r
202ifeq ($(MONOLITHIC),0)\r
203__WXLIB_BASE_p = \\r
22a3b6e4 204 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
f82b7036
KO
205endif\r
206ifeq ($(MONOLITHIC),1)\r
207__WXLIB_MONO_p = \\r
208 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
209endif\r
210ifeq ($(USE_GUI),1)\r
211__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
212endif\r
213ifeq ($(USE_GUI),1)\r
214__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
215endif\r
216ifeq ($(USE_GUI),1)\r
217__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
218endif\r
219ifeq ($(MSLU),1)\r
220__UNICOWS_LIB_p = -lunicows\r
221endif\r
f82b7036
KO
222ifeq ($(USE_CAIRO),1)\r
223__CAIRO_LIB_p = -lcairo\r
224endif\r
225ifeq ($(USE_CAIRO),1)\r
226____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
227endif\r
228ifeq ($(BUILD),debug)\r
229ifeq ($(DEBUG_INFO),default)\r
230__DEBUGINFO = -g\r
231endif\r
232endif\r
233ifeq ($(BUILD),release)\r
234ifeq ($(DEBUG_INFO),default)\r
235__DEBUGINFO = \r
236endif\r
237endif\r
238ifeq ($(DEBUG_INFO),0)\r
239__DEBUGINFO = \r
240endif\r
241ifeq ($(DEBUG_INFO),1)\r
242__DEBUGINFO = -g\r
243endif\r
244ifeq ($(USE_THREADS),0)\r
245__THREADSFLAG = \r
246endif\r
247ifeq ($(USE_THREADS),1)\r
248__THREADSFLAG = -mthreads\r
249endif\r
250\r
251\r
252all: $(OBJS)\r
253$(OBJS):\r
254 -if not exist $(OBJS) mkdir $(OBJS)\r
255\r
256### Targets: ###\r
257\r
258all: $(OBJS)\render.exe $(__renddll___depname)\r
259\r
260clean: \r
261 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
262 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
263 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe\r
14b682f7 264 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
f82b7036
KO
265\r
266$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o\r
22a3b6e4 267 $(CXX) -o $@ $(RENDER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__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
f82b7036
KO
268\r
269ifeq ($(SHARED),1)\r
14b682f7 270$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll: $(RENDDLL_OBJECTS)
22a3b6e4 271 $(CXX) $(LINK_MODULE_FLAGS) -fPIC -o $@ $(RENDDLL_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__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
f82b7036
KO
272endif\r
273\r
274$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc\r
22a3b6e4 275 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
f82b7036
KO
276\r
277$(OBJS)\render_render.o: ./render.cpp\r
278 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<\r
279\r
280$(OBJS)\renddll_renddll.o: ./renddll.cpp\r
281 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<\r
282\r
283.PHONY: all clean\r
284\r
285\r
286SHELL := $(COMSPEC)\r
287\r
288# Dependencies tracking:\r
289-include $(OBJS)/*.d\r