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