]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/penguin/makefile.gcc
Remove USE_GDIPLUS setting from bakefiles.
[wxWidgets.git] / samples / opengl / penguin / makefile.gcc
CommitLineData
f82b7036
KO
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.8 (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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
20LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
21SETUPHDIR = \\r
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
23PENGUIN_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
00fb97de
KO
25 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
26 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
27 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include \\r
f82b7036
KO
28 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \\r
29 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CFLAGS)\r
30PENGUIN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
31 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
00fb97de
KO
32 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
33 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
34 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include \\r
f82b7036
KO
35 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \\r
36 -I.\..\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \\r
37 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
38PENGUIN_OBJECTS = \\r
39 $(OBJS)\penguin_penguin.o \\r
40 $(OBJS)\penguin_dxfrenderer.o \\r
41 $(OBJS)\penguin_trackball.o \\r
42 $(OBJS)\penguin_penguin_rc.o\r
43\r
44### Conditionally set variables: ###\r
45\r
46ifeq ($(GCC_VERSION),2.95)\r
47GCCFLAGS = -fvtable-thunks\r
48endif\r
49ifeq ($(USE_GUI),0)\r
50PORTNAME = base\r
51endif\r
52ifeq ($(USE_GUI),1)\r
53PORTNAME = msw\r
54endif\r
55ifeq ($(BUILD),debug)\r
56WXDEBUGFLAG = d\r
57endif\r
58ifeq ($(UNICODE),1)\r
59WXUNICODEFLAG = u\r
60endif\r
61ifeq ($(WXUNIV),1)\r
62WXUNIVNAME = univ\r
63endif\r
64ifeq ($(SHARED),1)\r
65WXDLLFLAG = dll\r
66endif\r
67ifeq ($(SHARED),0)\r
68LIBTYPE_SUFFIX = lib\r
69endif\r
70ifeq ($(SHARED),1)\r
71LIBTYPE_SUFFIX = dll\r
72endif\r
73ifeq ($(MONOLITHIC),0)\r
74EXTRALIBS_FOR_BASE = \r
75endif\r
76ifeq ($(MONOLITHIC),1)\r
77EXTRALIBS_FOR_BASE = \r
78endif\r
79ifeq ($(USE_OPENGL),1)\r
80__penguin___depname = $(OBJS)\penguin.exe\r
81endif\r
82ifeq ($(BUILD),debug)\r
83__OPTIMIZEFLAG_2 = -O0\r
84endif\r
85ifeq ($(BUILD),release)\r
86__OPTIMIZEFLAG_2 = -O2\r
87endif\r
88ifeq ($(USE_RTTI),0)\r
89__RTTIFLAG_5 = -fno-rtti\r
90endif\r
91ifeq ($(USE_RTTI),1)\r
92__RTTIFLAG_5 = \r
93endif\r
94ifeq ($(USE_EXCEPTIONS),0)\r
95__EXCEPTIONSFLAG_6 = -fno-exceptions\r
96endif\r
97ifeq ($(USE_EXCEPTIONS),1)\r
98__EXCEPTIONSFLAG_6 = \r
99endif\r
100ifeq ($(WXUNIV),1)\r
101__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
102endif\r
103ifeq ($(WXUNIV),1)\r
104__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
105endif\r
106ifeq ($(DEBUG_FLAG),0)\r
107__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
108endif\r
109ifeq ($(DEBUG_FLAG),0)\r
110__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
111endif\r
00fb97de
KO
112ifeq ($(BUILD),release)\r
113__NDEBUG_DEFINE_p = -DNDEBUG\r
114endif\r
115ifeq ($(BUILD),release)\r
116__NDEBUG_DEFINE_p_1 = --define NDEBUG\r
117endif\r
f82b7036
KO
118ifeq ($(USE_EXCEPTIONS),0)\r
119__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
120endif\r
121ifeq ($(USE_EXCEPTIONS),0)\r
122__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
123endif\r
124ifeq ($(USE_RTTI),0)\r
125__RTTI_DEFINE_p = -DwxNO_RTTI\r
126endif\r
127ifeq ($(USE_RTTI),0)\r
128__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
129endif\r
130ifeq ($(USE_THREADS),0)\r
131__THREAD_DEFINE_p = -DwxNO_THREADS\r
132endif\r
133ifeq ($(USE_THREADS),0)\r
134__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
135endif\r
136ifeq ($(UNICODE),0)\r
137__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
138endif\r
139ifeq ($(UNICODE),1)\r
140__UNICODE_DEFINE_p = -D_UNICODE\r
141endif\r
142ifeq ($(UNICODE),0)\r
143__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
144endif\r
145ifeq ($(UNICODE),1)\r
146__UNICODE_DEFINE_p_1 = --define _UNICODE\r
147endif\r
148ifeq ($(MSLU),1)\r
149__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
150endif\r
151ifeq ($(MSLU),1)\r
152__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
153endif\r
154ifeq ($(USE_GDIPLUS),1)\r
155__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1\r
156endif\r
157ifeq ($(USE_GDIPLUS),1)\r
158__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1\r
159endif\r
160ifeq ($(USE_CAIRO),1)\r
161____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
162endif\r
163ifeq ($(USE_CAIRO),1)\r
164__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
165endif\r
166ifeq ($(SHARED),1)\r
167__DLLFLAG_p = -DWXUSINGDLL\r
168endif\r
169ifeq ($(SHARED),1)\r
170__DLLFLAG_p_1 = --define WXUSINGDLL\r
171endif\r
172ifeq ($(MONOLITHIC),0)\r
173__WXLIB_CORE_p = \\r
174 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
175endif\r
176ifeq ($(MONOLITHIC),0)\r
177__WXLIB_BASE_p = \\r
178 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
179endif\r
180ifeq ($(MONOLITHIC),1)\r
181__WXLIB_MONO_p = \\r
182 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
183endif\r
184ifeq ($(USE_GUI),1)\r
185__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
186endif\r
187ifeq ($(USE_GUI),1)\r
188__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
189endif\r
190ifeq ($(USE_GUI),1)\r
191__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
192endif\r
193ifeq ($(MSLU),1)\r
194__UNICOWS_LIB_p = -lunicows\r
195endif\r
196ifeq ($(USE_GDIPLUS),1)\r
197__GDIPLUS_LIB_p = -lgdiplus\r
198endif\r
199ifeq ($(USE_CAIRO),1)\r
200__CAIRO_LIB_p = -lcairo\r
201endif\r
202ifeq ($(USE_CAIRO),1)\r
203____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
204endif\r
205ifeq ($(BUILD),debug)\r
206ifeq ($(DEBUG_INFO),default)\r
207__DEBUGINFO = -g\r
208endif\r
209endif\r
210ifeq ($(BUILD),release)\r
211ifeq ($(DEBUG_INFO),default)\r
212__DEBUGINFO = \r
213endif\r
214endif\r
215ifeq ($(DEBUG_INFO),0)\r
216__DEBUGINFO = \r
217endif\r
218ifeq ($(DEBUG_INFO),1)\r
219__DEBUGINFO = -g\r
220endif\r
221ifeq ($(USE_THREADS),0)\r
222__THREADSFLAG = \r
223endif\r
224ifeq ($(USE_THREADS),1)\r
225__THREADSFLAG = -mthreads\r
226endif\r
227\r
228\r
229all: $(OBJS)\r
230$(OBJS):\r
231 -if not exist $(OBJS) mkdir $(OBJS)\r
232\r
233### Targets: ###\r
234\r
235all: $(__penguin___depname) data\r
236\r
237clean: \r
238 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
239 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
240 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe\r
241\r
242ifeq ($(USE_OPENGL),1)\r
243$(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin_rc.o\r
244 $(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) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
245endif\r
246\r
247data: \r
248 if not exist $(OBJS) mkdir $(OBJS)\r
249 for %%f in (penguin.dxf.gz) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
250\r
251$(OBJS)\penguin_penguin.o: ./penguin.cpp\r
252 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $<\r
253\r
254$(OBJS)\penguin_dxfrenderer.o: ./dxfrenderer.cpp\r
255 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $<\r
256\r
257$(OBJS)\penguin_trackball.o: ./trackball.c\r
258 $(CC) -c -o $@ $(PENGUIN_CFLAGS) $(CPPDEPS) $<\r
259\r
260$(OBJS)\penguin_penguin_rc.o: ./penguin.rc\r
00fb97de 261 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__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) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../samples --define NOPCH\r
f82b7036
KO
262\r
263.PHONY: all clean data\r
264\r
265\r
266SHELL := $(COMSPEC)\r
267\r
268# Dependencies tracking:\r
269-include $(OBJS)/*.d\r