]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.gcc
Only give capture to wxPopupTransientWindow child if it's the only one.
[wxWidgets.git] / samples / render / makefile.gcc
CommitLineData
f82b7036
KO
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
f82b7036
KO
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
bed99c22 17WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5\r
f82b7036
KO
18COMPILER_PREFIX = gcc\r
19OBJS = \\r
bed99c22
VZ
20 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
21LIBDIRNAME = \\r
22 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r
f82b7036
KO
23SETUPHDIR = \\r
24 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
25RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
bed99c22 26 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r
00fb97de
KO
27 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
28 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
b796194b
VS
29 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r
30 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \\r
bed99c22 31 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
f82b7036
KO
32RENDER_OBJECTS = \\r
33 $(OBJS)\render_sample_rc.o \\r
34 $(OBJS)\render_render.o\r
35RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r
bed99c22 36 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
00fb97de
KO
37 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
38 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
b796194b 39 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
f82b7036 40 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \\r
bed99c22 41 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
f82b7036
KO
42RENDDLL_OBJECTS = \\r
43 $(OBJS)\renddll_renddll.o\r
44\r
45### Conditionally set variables: ###\r
46\r
47ifeq ($(GCC_VERSION),2.95)\r
48GCCFLAGS = -fvtable-thunks\r
49endif\r
50ifeq ($(USE_GUI),0)\r
51PORTNAME = base\r
52endif\r
53ifeq ($(USE_GUI),1)\r
bed99c22
VZ
54PORTNAME = msw$(TOOLKIT_VERSION)\r
55endif\r
56ifeq ($(OFFICIAL_BUILD),1)\r
57COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r
58endif\r
59ifeq ($(OFFICIAL_BUILD),0)\r
60WXCOMPILER = _gcc\r
61endif\r
62ifeq ($(OFFICIAL_BUILD),1)\r
63WXCOMPILER = _gcc$(COMPILER_VERSION)\r
64endif\r
f82b7036
KO
65ifeq ($(BUILD),debug)\r
66WXDEBUGFLAG = d\r
67endif\r
68ifeq ($(UNICODE),1)\r
69WXUNICODEFLAG = u\r
70endif\r
71ifeq ($(WXUNIV),1)\r
72WXUNIVNAME = univ\r
73endif\r
74ifeq ($(SHARED),1)\r
75WXDLLFLAG = dll\r
76endif\r
77ifeq ($(SHARED),0)\r
78LIBTYPE_SUFFIX = lib\r
79endif\r
80ifeq ($(SHARED),1)\r
81LIBTYPE_SUFFIX = dll\r
82endif\r
83ifeq ($(MONOLITHIC),0)\r
84EXTRALIBS_FOR_BASE = \r
85endif\r
86ifeq ($(MONOLITHIC),1)\r
51ec29ea 87EXTRALIBS_FOR_BASE = \r
f82b7036
KO
88endif\r
89ifeq ($(WXUNIV),1)\r
90__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
91endif\r
92ifeq ($(DEBUG_FLAG),0)\r
93__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
94endif\r
00fb97de
KO
95ifeq ($(BUILD),release)\r
96__NDEBUG_DEFINE_p_1 = --define NDEBUG\r
97endif\r
f82b7036
KO
98ifeq ($(USE_EXCEPTIONS),0)\r
99__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
100endif\r
101ifeq ($(USE_RTTI),0)\r
102__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
103endif\r
104ifeq ($(USE_THREADS),0)\r
105__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
106endif\r
107ifeq ($(UNICODE),0)\r
108__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
109endif\r
110ifeq ($(UNICODE),1)\r
111__UNICODE_DEFINE_p_1 = --define _UNICODE\r
112endif\r
113ifeq ($(MSLU),1)\r
114__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
115endif\r
f82b7036
KO
116ifeq ($(USE_CAIRO),1)\r
117__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
118endif\r
119ifeq ($(SHARED),1)\r
120__DLLFLAG_p = -DWXUSINGDLL\r
121endif\r
122ifeq ($(SHARED),1)\r
123__DLLFLAG_p_1 = --define WXUSINGDLL\r
124endif\r
125ifeq ($(SHARED),1)\r
126__renddll___depname = \\r
bed99c22 127 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll\r
f82b7036
KO
128endif\r
129ifeq ($(BUILD),debug)\r
130__OPTIMIZEFLAG = -O0\r
131endif\r
132ifeq ($(BUILD),release)\r
133__OPTIMIZEFLAG = -O2\r
134endif\r
135ifeq ($(USE_RTTI),0)\r
136__RTTIFLAG = -fno-rtti\r
137endif\r
138ifeq ($(USE_RTTI),1)\r
139__RTTIFLAG = \r
140endif\r
141ifeq ($(USE_EXCEPTIONS),0)\r
142__EXCEPTIONSFLAG = -fno-exceptions\r
143endif\r
144ifeq ($(USE_EXCEPTIONS),1)\r
145__EXCEPTIONSFLAG = \r
146endif\r
147ifeq ($(WXUNIV),1)\r
148__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
149endif\r
150ifeq ($(DEBUG_FLAG),0)\r
151__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
152endif\r
00fb97de
KO
153ifeq ($(BUILD),release)\r
154__NDEBUG_DEFINE_p = -DNDEBUG\r
155endif\r
f82b7036
KO
156ifeq ($(USE_EXCEPTIONS),0)\r
157__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
158endif\r
159ifeq ($(USE_RTTI),0)\r
160__RTTI_DEFINE_p = -DwxNO_RTTI\r
161endif\r
162ifeq ($(USE_THREADS),0)\r
163__THREAD_DEFINE_p = -DwxNO_THREADS\r
164endif\r
165ifeq ($(UNICODE),0)\r
166__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
167endif\r
168ifeq ($(UNICODE),1)\r
169__UNICODE_DEFINE_p = -D_UNICODE\r
170endif\r
171ifeq ($(MSLU),1)\r
172__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
173endif\r
f82b7036
KO
174ifeq ($(USE_CAIRO),1)\r
175____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
176endif\r
177ifeq ($(MONOLITHIC),0)\r
178__WXLIB_CORE_p = \\r
179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
180endif\r
181ifeq ($(MONOLITHIC),0)\r
182__WXLIB_BASE_p = \\r
bed99c22 183 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
f82b7036
KO
184endif\r
185ifeq ($(MONOLITHIC),1)\r
186__WXLIB_MONO_p = \\r
187 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
188endif\r
a4830bb5 189ifeq ($(MONOLITHIC),1)\r
bd0f3ca6 190ifeq ($(USE_STC),1)
a4830bb5
VZ
191__LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)\r
192endif\r
bd0f3ca6 193endif
f82b7036
KO
194ifeq ($(USE_GUI),1)\r
195__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
196endif\r
197ifeq ($(USE_GUI),1)\r
198__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
199endif\r
200ifeq ($(USE_GUI),1)\r
201__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
202endif\r
203ifeq ($(MSLU),1)\r
204__UNICOWS_LIB_p = -lunicows\r
205endif\r
f82b7036
KO
206ifeq ($(USE_CAIRO),1)\r
207__CAIRO_LIB_p = -lcairo\r
208endif\r
209ifeq ($(USE_CAIRO),1)\r
210____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
211endif\r
212ifeq ($(BUILD),debug)\r
213ifeq ($(DEBUG_INFO),default)\r
214__DEBUGINFO = -g\r
215endif\r
216endif\r
217ifeq ($(BUILD),release)\r
218ifeq ($(DEBUG_INFO),default)\r
219__DEBUGINFO = \r
220endif\r
221endif\r
222ifeq ($(DEBUG_INFO),0)\r
223__DEBUGINFO = \r
224endif\r
225ifeq ($(DEBUG_INFO),1)\r
226__DEBUGINFO = -g\r
227endif\r
228ifeq ($(USE_THREADS),0)\r
229__THREADSFLAG = \r
230endif\r
231ifeq ($(USE_THREADS),1)\r
232__THREADSFLAG = -mthreads\r
233endif\r
234\r
235\r
236all: $(OBJS)\r
237$(OBJS):\r
238 -if not exist $(OBJS) mkdir $(OBJS)\r
239\r
240### Targets: ###\r
241\r
242all: $(OBJS)\render.exe $(__renddll___depname)\r
243\r
244clean: \r
245 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
246 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
247 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe\r
bed99c22 248 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll\r
f82b7036
KO
249\r
250$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o\r
a4830bb5 251 $(CXX) -o $@ $(RENDER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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
252\r
253ifeq ($(SHARED),1)\r
bed99c22 254$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll: $(RENDDLL_OBJECTS)\r
a4830bb5 255 $(CXX) $(LINK_MODULE_FLAGS) -fPIC -o $@ $(RENDDLL_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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
256endif\r
257\r
258$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc\r
bed99c22 259 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
260\r
261$(OBJS)\render_render.o: ./render.cpp\r
262 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<\r
263\r
264$(OBJS)\renddll_renddll.o: ./renddll.cpp\r
265 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<\r
266\r
267.PHONY: all clean\r
268\r
269\r
270SHELL := $(COMSPEC)\r
271\r
272# Dependencies tracking:\r
273-include $(OBJS)/*.d\r