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