]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.gcc
Correct wxObjectDataPtr<> assignment from *T to not increase the ref count
[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
7379e476
VZ
124ifeq ($(UNICODE),0)
125__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
126endif
b17c1746
DE
127ifeq ($(UNICODE),1)
128__UNICODE_DEFINE_p_1 = --define _UNICODE
129endif
2113bc77
MW
130ifeq ($(MSLU),1)
131__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
132endif
3abcf424
RD
133ifeq ($(USE_GDIPLUS),1)
134__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
135endif
2d611b5c
VS
136ifeq ($(SHARED),1)
137__DLLFLAG_p = -DWXUSINGDLL
138endif
139ifeq ($(SHARED),1)
140__DLLFLAG_p_1 = --define WXUSINGDLL
141endif
b17c1746
DE
142ifeq ($(SHARED),1)
143__renddll___depname = \
ae4ccf12 144 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
b17c1746
DE
145endif
146ifeq ($(BUILD),debug)
147__OPTIMIZEFLAG = -O0
148endif
149ifeq ($(BUILD),release)
150__OPTIMIZEFLAG = -O2
151endif
8c9f8f91
JS
152ifeq ($(USE_RTTI),0)
153__RTTIFLAG = -fno-rtti
b71531ad 154endif
8c9f8f91
JS
155ifeq ($(USE_RTTI),1)
156__RTTIFLAG =
b71531ad
VZ
157endif
158ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 159__EXCEPTIONSFLAG = -fno-exceptions
b71531ad
VZ
160endif
161ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 162__EXCEPTIONSFLAG =
b71531ad 163endif
b17c1746
DE
164ifeq ($(WXUNIV),1)
165__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
2d611b5c
VS
166endif
167ifeq ($(BUILD),debug)
b17c1746
DE
168ifeq ($(DEBUG_FLAG),default)
169__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 170endif
2d611b5c 171endif
b17c1746
DE
172ifeq ($(DEBUG_FLAG),1)
173__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 174endif
8c9f8f91
JS
175ifeq ($(USE_EXCEPTIONS),0)
176__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
177endif
178ifeq ($(USE_RTTI),0)
179__RTTI_DEFINE_p = -DwxNO_RTTI
180endif
181ifeq ($(USE_THREADS),0)
182__THREAD_DEFINE_p = -DwxNO_THREADS
183endif
7379e476
VZ
184ifeq ($(UNICODE),0)
185__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
186endif
2d611b5c 187ifeq ($(UNICODE),1)
b17c1746 188__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 189endif
2113bc77
MW
190ifeq ($(MSLU),1)
191__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
192endif
3abcf424
RD
193ifeq ($(USE_GDIPLUS),1)
194__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
195endif
2d611b5c
VS
196ifeq ($(MONOLITHIC),0)
197__WXLIB_CORE_p = \
c33fae85 198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
2d611b5c 199endif
b17c1746 200ifeq ($(MONOLITHIC),0)
c33fae85
RN
201__WXLIB_BASE_p = \
202 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746 203endif
2d611b5c
VS
204ifeq ($(MONOLITHIC),1)
205__WXLIB_MONO_p = \
c33fae85 206 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c 207endif
b17c1746 208ifeq ($(USE_GUI),1)
9c2d002b 209__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
2d611b5c 210endif
b17c1746 211ifeq ($(USE_GUI),1)
9c2d002b 212__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c 213endif
b17c1746 214ifeq ($(USE_GUI),1)
9c2d002b 215__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
216endif
217ifeq ($(MSLU),1)
218__UNICOWS_LIB_p = -lunicows
219endif
3abcf424
RD
220ifeq ($(USE_GDIPLUS),1)
221__GDIPLUS_LIB_p = -lgdiplus
222endif
b17c1746
DE
223ifeq ($(BUILD),debug)
224ifeq ($(DEBUG_INFO),default)
225__DEBUGINFO = -g
226endif
227endif
228ifeq ($(BUILD),release)
229ifeq ($(DEBUG_INFO),default)
230__DEBUGINFO =
231endif
232endif
233ifeq ($(DEBUG_INFO),0)
234__DEBUGINFO =
235endif
236ifeq ($(DEBUG_INFO),1)
237__DEBUGINFO = -g
2d611b5c 238endif
8c9f8f91
JS
239ifeq ($(USE_THREADS),0)
240__THREADSFLAG =
241endif
242ifeq ($(USE_THREADS),1)
243__THREADSFLAG = -mthreads
244endif
2d611b5c 245
2d611b5c
VS
246
247all: $(OBJS)
248$(OBJS):
249 -if not exist $(OBJS) mkdir $(OBJS)
250
251### Targets: ###
252
253all: $(OBJS)\render.exe $(__renddll___depname)
254
2d611b5c
VS
255clean:
256 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 257 -if exist $(OBJS)\*.d del $(OBJS)\*.d
2d611b5c 258 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ae4ccf12 259 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
2d611b5c 260
b17c1746 261$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
7379e476 262 $(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
b17c1746 263
2d611b5c 264ifeq ($(SHARED),1)
ae4ccf12 265$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
7379e476 266 $(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
2d611b5c
VS
267endif
268
b17c1746 269$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
444833b3 270 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
271
272$(OBJS)\render_render.o: ./render.cpp
0d90d6ea 273 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
274
275$(OBJS)\renddll_renddll.o: ./renddll.cpp
0d90d6ea 276 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
2d611b5c
VS
277
278.PHONY: all clean
b14abf14 279
8c9f8f91 280
0d90d6ea
JS
281# Dependencies tracking:
282-include $(OBJS)/*.d