]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/penguin/makefile.gcc
No real changes, just convert a Mac-specific file to UTF-8.
[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
b796194b 27 $(__MSLU_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
b796194b 34 $(__MSLU_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
f82b7036
KO
154ifeq ($(USE_CAIRO),1)\r
155____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
156endif\r
157ifeq ($(USE_CAIRO),1)\r
158__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
159endif\r
160ifeq ($(SHARED),1)\r
161__DLLFLAG_p = -DWXUSINGDLL\r
162endif\r
163ifeq ($(SHARED),1)\r
164__DLLFLAG_p_1 = --define WXUSINGDLL\r
165endif\r
166ifeq ($(MONOLITHIC),0)\r
167__WXLIB_CORE_p = \\r
168 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
169endif\r
170ifeq ($(MONOLITHIC),0)\r
171__WXLIB_BASE_p = \\r
172 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
173endif\r
174ifeq ($(MONOLITHIC),1)\r
175__WXLIB_MONO_p = \\r
176 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
177endif\r
178ifeq ($(USE_GUI),1)\r
179__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
180endif\r
181ifeq ($(USE_GUI),1)\r
182__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
183endif\r
184ifeq ($(USE_GUI),1)\r
185__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
186endif\r
187ifeq ($(MSLU),1)\r
188__UNICOWS_LIB_p = -lunicows\r
189endif\r
f82b7036
KO
190ifeq ($(USE_CAIRO),1)\r
191__CAIRO_LIB_p = -lcairo\r
192endif\r
193ifeq ($(USE_CAIRO),1)\r
194____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
195endif\r
196ifeq ($(BUILD),debug)\r
197ifeq ($(DEBUG_INFO),default)\r
198__DEBUGINFO = -g\r
199endif\r
200endif\r
201ifeq ($(BUILD),release)\r
202ifeq ($(DEBUG_INFO),default)\r
203__DEBUGINFO = \r
204endif\r
205endif\r
206ifeq ($(DEBUG_INFO),0)\r
207__DEBUGINFO = \r
208endif\r
209ifeq ($(DEBUG_INFO),1)\r
210__DEBUGINFO = -g\r
211endif\r
212ifeq ($(USE_THREADS),0)\r
213__THREADSFLAG = \r
214endif\r
215ifeq ($(USE_THREADS),1)\r
216__THREADSFLAG = -mthreads\r
217endif\r
218\r
219\r
220all: $(OBJS)\r
221$(OBJS):\r
222 -if not exist $(OBJS) mkdir $(OBJS)\r
223\r
224### Targets: ###\r
225\r
226all: $(__penguin___depname) data\r
227\r
228clean: \r
229 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
230 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
231 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe\r
232\r
233ifeq ($(USE_OPENGL),1)\r
234$(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin_rc.o\r
b796194b 235 $(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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
f82b7036
KO
236endif\r
237\r
238data: \r
239 if not exist $(OBJS) mkdir $(OBJS)\r
240 for %%f in (penguin.dxf.gz) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
241\r
242$(OBJS)\penguin_penguin.o: ./penguin.cpp\r
243 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $<\r
244\r
245$(OBJS)\penguin_dxfrenderer.o: ./dxfrenderer.cpp\r
246 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $<\r
247\r
248$(OBJS)\penguin_trackball.o: ./trackball.c\r
249 $(CC) -c -o $@ $(PENGUIN_CFLAGS) $(CPPDEPS) $<\r
250\r
251$(OBJS)\penguin_penguin_rc.o: ./penguin.rc\r
b796194b 252 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) --include-dir $(SETUPHDIR) --include-dir ./../../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../samples --define NOPCH\r
f82b7036
KO
253\r
254.PHONY: all clean data\r
255\r
256\r
257SHELL := $(COMSPEC)\r
258\r
259# Dependencies tracking:\r
260-include $(OBJS)/*.d\r