]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.gcc
wxCairoContext doesn't need to know about wxPizza
[wxWidgets.git] / samples / render / makefile.gcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
444833b3 3# Bakefile 0.2.2 (http://bakefile.sourceforge.net)
2d611b5c
VS
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
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
ae4ccf12
RD
16WX_RELEASE_NODOT = 29
17WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
444833b3 18COMPILER_PREFIX = gcc
2d611b5c 19OBJS = \
444833b3
CE
20 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
21LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
22SETUPHDIR = \
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
24RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
25 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
3abcf424
RD
27 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
28 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
29 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
30 $(CXXFLAGS)
2d611b5c
VS
31RENDER_OBJECTS = \
32 $(OBJS)\render_sample_rc.o \
33 $(OBJS)\render_render.o
8c9f8f91
JS
34RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
35 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
36 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 37 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
38 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -DWXUSINGDLL \
39 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
40 $(CXXFLAGS)
b17c1746
DE
41RENDDLL_OBJECTS = \
42 $(OBJS)\renddll_renddll.o
2d611b5c
VS
43
44### Conditionally set variables: ###
45
46ifeq ($(GCC_VERSION),2.95)
47GCCFLAGS = -fvtable-thunks
48endif
49ifeq ($(USE_GUI),0)
50PORTNAME = base
51endif
52ifeq ($(USE_GUI),1)
53PORTNAME = msw
54endif
55ifeq ($(BUILD),debug)
56ifeq ($(DEBUG_FLAG),default)
57WXDEBUGFLAG = d
58endif
59endif
60ifeq ($(DEBUG_FLAG),1)
61WXDEBUGFLAG = d
62endif
2d611b5c
VS
63ifeq ($(UNICODE),1)
64WXUNICODEFLAG = u
65endif
66ifeq ($(WXUNIV),1)
67WXUNIVNAME = univ
68endif
b17c1746
DE
69ifeq ($(SHARED),1)
70WXDLLFLAG = dll
2d611b5c 71endif
b14abf14
JS
72ifeq ($(SHARED),0)
73LIBTYPE_SUFFIX = lib
74endif
75ifeq ($(SHARED),1)
76LIBTYPE_SUFFIX = dll
77endif
dd65d8c8
RN
78ifeq ($(MONOLITHIC),0)
79EXTRALIBS_FOR_BASE =
80endif
81ifeq ($(MONOLITHIC),1)
82EXTRALIBS_FOR_BASE =
83endif
078c7a59
VS
84ifeq ($(BUILD),debug)
85ifeq ($(UNICODE),0)
314a6446 86PLUGINSUFFIX = d
078c7a59
VS
87endif
88endif
89ifeq ($(BUILD),debug)
90ifeq ($(UNICODE),1)
314a6446 91PLUGINSUFFIX = ud
078c7a59
VS
92endif
93endif
94ifeq ($(BUILD),release)
95ifeq ($(UNICODE),0)
96PLUGINSUFFIX =
97endif
98endif
99ifeq ($(BUILD),release)
100ifeq ($(UNICODE),1)
314a6446 101PLUGINSUFFIX = u
078c7a59
VS
102endif
103endif
b17c1746
DE
104ifeq ($(WXUNIV),1)
105__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
2d611b5c
VS
106endif
107ifeq ($(BUILD),debug)
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
113__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
114endif
8c9f8f91
JS
115ifeq ($(USE_EXCEPTIONS),0)
116__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
117endif
118ifeq ($(USE_RTTI),0)
119__RTTI_DEFINE_p_1 = --define wxNO_RTTI
120endif
121ifeq ($(USE_THREADS),0)
122__THREAD_DEFINE_p_1 = --define wxNO_THREADS
123endif
b17c1746
DE
124ifeq ($(UNICODE),1)
125__UNICODE_DEFINE_p_1 = --define _UNICODE
126endif
2113bc77
MW
127ifeq ($(MSLU),1)
128__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
129endif
3abcf424
RD
130ifeq ($(USE_GDIPLUS),1)
131__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
132endif
2d611b5c
VS
133ifeq ($(SHARED),1)
134__DLLFLAG_p = -DWXUSINGDLL
135endif
136ifeq ($(SHARED),1)
137__DLLFLAG_p_1 = --define WXUSINGDLL
138endif
b17c1746
DE
139ifeq ($(SHARED),1)
140__renddll___depname = \
ae4ccf12 141 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
b17c1746
DE
142endif
143ifeq ($(BUILD),debug)
144__OPTIMIZEFLAG = -O0
145endif
146ifeq ($(BUILD),release)
147__OPTIMIZEFLAG = -O2
148endif
8c9f8f91
JS
149ifeq ($(USE_RTTI),0)
150__RTTIFLAG = -fno-rtti
b71531ad 151endif
8c9f8f91
JS
152ifeq ($(USE_RTTI),1)
153__RTTIFLAG =
b71531ad
VZ
154endif
155ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 156__EXCEPTIONSFLAG = -fno-exceptions
b71531ad
VZ
157endif
158ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 159__EXCEPTIONSFLAG =
b71531ad 160endif
b17c1746
DE
161ifeq ($(WXUNIV),1)
162__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
2d611b5c
VS
163endif
164ifeq ($(BUILD),debug)
b17c1746
DE
165ifeq ($(DEBUG_FLAG),default)
166__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 167endif
2d611b5c 168endif
b17c1746
DE
169ifeq ($(DEBUG_FLAG),1)
170__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 171endif
8c9f8f91
JS
172ifeq ($(USE_EXCEPTIONS),0)
173__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
174endif
175ifeq ($(USE_RTTI),0)
176__RTTI_DEFINE_p = -DwxNO_RTTI
177endif
178ifeq ($(USE_THREADS),0)
179__THREAD_DEFINE_p = -DwxNO_THREADS
180endif
2d611b5c 181ifeq ($(UNICODE),1)
b17c1746 182__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 183endif
2113bc77
MW
184ifeq ($(MSLU),1)
185__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
186endif
3abcf424
RD
187ifeq ($(USE_GDIPLUS),1)
188__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
189endif
2d611b5c
VS
190ifeq ($(MONOLITHIC),0)
191__WXLIB_CORE_p = \
c33fae85 192 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
2d611b5c 193endif
b17c1746 194ifeq ($(MONOLITHIC),0)
c33fae85
RN
195__WXLIB_BASE_p = \
196 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746 197endif
2d611b5c
VS
198ifeq ($(MONOLITHIC),1)
199__WXLIB_MONO_p = \
c33fae85 200 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c 201endif
b17c1746 202ifeq ($(USE_GUI),1)
9c2d002b 203__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
2d611b5c 204endif
b17c1746 205ifeq ($(USE_GUI),1)
9c2d002b 206__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c 207endif
b17c1746 208ifeq ($(USE_GUI),1)
9c2d002b 209__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
210endif
211ifeq ($(MSLU),1)
212__UNICOWS_LIB_p = -lunicows
213endif
3abcf424
RD
214ifeq ($(USE_GDIPLUS),1)
215__GDIPLUS_LIB_p = -lgdiplus
216endif
b17c1746
DE
217ifeq ($(BUILD),debug)
218ifeq ($(DEBUG_INFO),default)
219__DEBUGINFO = -g
220endif
221endif
222ifeq ($(BUILD),release)
223ifeq ($(DEBUG_INFO),default)
224__DEBUGINFO =
225endif
226endif
227ifeq ($(DEBUG_INFO),0)
228__DEBUGINFO =
229endif
230ifeq ($(DEBUG_INFO),1)
231__DEBUGINFO = -g
2d611b5c 232endif
8c9f8f91
JS
233ifeq ($(USE_THREADS),0)
234__THREADSFLAG =
235endif
236ifeq ($(USE_THREADS),1)
237__THREADSFLAG = -mthreads
238endif
2d611b5c 239
2d611b5c
VS
240
241all: $(OBJS)
242$(OBJS):
243 -if not exist $(OBJS) mkdir $(OBJS)
244
245### Targets: ###
246
247all: $(OBJS)\render.exe $(__renddll___depname)
248
2d611b5c
VS
249clean:
250 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 251 -if exist $(OBJS)\*.d del $(OBJS)\*.d
2d611b5c 252 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ae4ccf12 253 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
2d611b5c 254
b17c1746 255$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
3abcf424 256 $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 -lodbc32
b17c1746 257
2d611b5c 258ifeq ($(SHARED),1)
ae4ccf12 259$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
3abcf424 260 $(CXX) -shared -fPIC -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__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 -lodbc32
2d611b5c
VS
261endif
262
b17c1746 263$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
444833b3 264 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
b17c1746
DE
265
266$(OBJS)\render_render.o: ./render.cpp
0d90d6ea 267 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
268
269$(OBJS)\renddll_renddll.o: ./renddll.cpp
0d90d6ea 270 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
2d611b5c
VS
271
272.PHONY: all clean
b14abf14 273
8c9f8f91 274
0d90d6ea
JS
275# Dependencies tracking:
276-include $(OBJS)/*.d