]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.gcc
remove 10.4 compatibility code
[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
08670ea8 17WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4\r
f82b7036
KO
18COMPILER_PREFIX = gcc\r
19OBJS = \\r
20 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
21LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
25 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r
00fb97de
KO
26 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
b796194b
VS
28 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r
29 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \\r
30 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
f82b7036
KO
31RENDER_OBJECTS = \\r
32 $(OBJS)\render_sample_rc.o \\r
33 $(OBJS)\render_render.o\r
34RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r
35 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
00fb97de
KO
36 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
37 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
b796194b 38 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
f82b7036
KO
39 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \\r
40 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
41RENDDLL_OBJECTS = \\r
42 $(OBJS)\renddll_renddll.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
51ec29ea 77EXTRALIBS_FOR_BASE = \r
f82b7036
KO
78endif\r
79ifeq ($(WXUNIV),1)\r
80__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
81endif\r
82ifeq ($(DEBUG_FLAG),0)\r
83__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
84endif\r
00fb97de
KO
85ifeq ($(BUILD),release)\r
86__NDEBUG_DEFINE_p_1 = --define NDEBUG\r
87endif\r
f82b7036
KO
88ifeq ($(USE_EXCEPTIONS),0)\r
89__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
90endif\r
91ifeq ($(USE_RTTI),0)\r
92__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
93endif\r
94ifeq ($(USE_THREADS),0)\r
95__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
96endif\r
97ifeq ($(UNICODE),0)\r
98__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
99endif\r
100ifeq ($(UNICODE),1)\r
101__UNICODE_DEFINE_p_1 = --define _UNICODE\r
102endif\r
103ifeq ($(MSLU),1)\r
104__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
105endif\r
f82b7036
KO
106ifeq ($(USE_CAIRO),1)\r
107__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
108endif\r
109ifeq ($(SHARED),1)\r
110__DLLFLAG_p = -DWXUSINGDLL\r
111endif\r
112ifeq ($(SHARED),1)\r
113__DLLFLAG_p_1 = --define WXUSINGDLL\r
114endif\r
115ifeq ($(SHARED),1)\r
116__renddll___depname = \\r
117 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll\r
118endif\r
119ifeq ($(BUILD),debug)\r
120__OPTIMIZEFLAG = -O0\r
121endif\r
122ifeq ($(BUILD),release)\r
123__OPTIMIZEFLAG = -O2\r
124endif\r
125ifeq ($(USE_RTTI),0)\r
126__RTTIFLAG = -fno-rtti\r
127endif\r
128ifeq ($(USE_RTTI),1)\r
129__RTTIFLAG = \r
130endif\r
131ifeq ($(USE_EXCEPTIONS),0)\r
132__EXCEPTIONSFLAG = -fno-exceptions\r
133endif\r
134ifeq ($(USE_EXCEPTIONS),1)\r
135__EXCEPTIONSFLAG = \r
136endif\r
137ifeq ($(WXUNIV),1)\r
138__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
139endif\r
140ifeq ($(DEBUG_FLAG),0)\r
141__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
142endif\r
00fb97de
KO
143ifeq ($(BUILD),release)\r
144__NDEBUG_DEFINE_p = -DNDEBUG\r
145endif\r
f82b7036
KO
146ifeq ($(USE_EXCEPTIONS),0)\r
147__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
148endif\r
149ifeq ($(USE_RTTI),0)\r
150__RTTI_DEFINE_p = -DwxNO_RTTI\r
151endif\r
152ifeq ($(USE_THREADS),0)\r
153__THREAD_DEFINE_p = -DwxNO_THREADS\r
154endif\r
155ifeq ($(UNICODE),0)\r
156__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
157endif\r
158ifeq ($(UNICODE),1)\r
159__UNICODE_DEFINE_p = -D_UNICODE\r
160endif\r
161ifeq ($(MSLU),1)\r
162__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
163endif\r
f82b7036
KO
164ifeq ($(USE_CAIRO),1)\r
165____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
166endif\r
167ifeq ($(MONOLITHIC),0)\r
168__WXLIB_CORE_p = \\r
169 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
170endif\r
171ifeq ($(MONOLITHIC),0)\r
172__WXLIB_BASE_p = \\r
173 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
174endif\r
175ifeq ($(MONOLITHIC),1)\r
176__WXLIB_MONO_p = \\r
177 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
178endif\r
179ifeq ($(USE_GUI),1)\r
180__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
181endif\r
182ifeq ($(USE_GUI),1)\r
183__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
184endif\r
185ifeq ($(USE_GUI),1)\r
186__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
187endif\r
188ifeq ($(MSLU),1)\r
189__UNICOWS_LIB_p = -lunicows\r
190endif\r
f82b7036
KO
191ifeq ($(USE_CAIRO),1)\r
192__CAIRO_LIB_p = -lcairo\r
193endif\r
194ifeq ($(USE_CAIRO),1)\r
195____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
196endif\r
197ifeq ($(BUILD),debug)\r
198ifeq ($(DEBUG_INFO),default)\r
199__DEBUGINFO = -g\r
200endif\r
201endif\r
202ifeq ($(BUILD),release)\r
203ifeq ($(DEBUG_INFO),default)\r
204__DEBUGINFO = \r
205endif\r
206endif\r
207ifeq ($(DEBUG_INFO),0)\r
208__DEBUGINFO = \r
209endif\r
210ifeq ($(DEBUG_INFO),1)\r
211__DEBUGINFO = -g\r
212endif\r
213ifeq ($(USE_THREADS),0)\r
214__THREADSFLAG = \r
215endif\r
216ifeq ($(USE_THREADS),1)\r
217__THREADSFLAG = -mthreads\r
218endif\r
219\r
220\r
221all: $(OBJS)\r
222$(OBJS):\r
223 -if not exist $(OBJS) mkdir $(OBJS)\r
224\r
225### Targets: ###\r
226\r
227all: $(OBJS)\render.exe $(__renddll___depname)\r
228\r
229clean: \r
230 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
231 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
232 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe\r
233 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll\r
234\r
235$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o\r
b796194b 236 $(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_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
237\r
238ifeq ($(SHARED),1)\r
239$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)\r
b796194b 240 $(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_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
241endif\r
242\r
243$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc\r
b796194b 244 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
245\r
246$(OBJS)\render_render.o: ./render.cpp\r
247 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<\r
248\r
249$(OBJS)\renddll_renddll.o: ./renddll.cpp\r
250 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<\r
251\r
252.PHONY: all clean\r
253\r
254\r
255SHELL := $(COMSPEC)\r
256\r
257# Dependencies tracking:\r
258-include $(OBJS)/*.d\r