]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.gcc
Only return -1,0,1 from wxXmlResource::CompareVersion().
[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
VZ
189ifeq ($(MONOLITHIC),1)\r
190__LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)\r
191endif\r
f82b7036
KO
192ifeq ($(USE_GUI),1)\r
193__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
194endif\r
195ifeq ($(USE_GUI),1)\r
196__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
197endif\r
198ifeq ($(USE_GUI),1)\r
199__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
200endif\r
201ifeq ($(MSLU),1)\r
202__UNICOWS_LIB_p = -lunicows\r
203endif\r
f82b7036
KO
204ifeq ($(USE_CAIRO),1)\r
205__CAIRO_LIB_p = -lcairo\r
206endif\r
207ifeq ($(USE_CAIRO),1)\r
208____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
209endif\r
210ifeq ($(BUILD),debug)\r
211ifeq ($(DEBUG_INFO),default)\r
212__DEBUGINFO = -g\r
213endif\r
214endif\r
215ifeq ($(BUILD),release)\r
216ifeq ($(DEBUG_INFO),default)\r
217__DEBUGINFO = \r
218endif\r
219endif\r
220ifeq ($(DEBUG_INFO),0)\r
221__DEBUGINFO = \r
222endif\r
223ifeq ($(DEBUG_INFO),1)\r
224__DEBUGINFO = -g\r
225endif\r
226ifeq ($(USE_THREADS),0)\r
227__THREADSFLAG = \r
228endif\r
229ifeq ($(USE_THREADS),1)\r
230__THREADSFLAG = -mthreads\r
231endif\r
232\r
233\r
234all: $(OBJS)\r
235$(OBJS):\r
236 -if not exist $(OBJS) mkdir $(OBJS)\r
237\r
238### Targets: ###\r
239\r
240all: $(OBJS)\render.exe $(__renddll___depname)\r
241\r
242clean: \r
243 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
244 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
245 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe\r
bed99c22 246 -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
247\r
248$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o\r
a4830bb5 249 $(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
250\r
251ifeq ($(SHARED),1)\r
bed99c22 252$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll: $(RENDDLL_OBJECTS)\r
a4830bb5 253 $(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
254endif\r
255\r
256$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc\r
bed99c22 257 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
258\r
259$(OBJS)\render_render.o: ./render.cpp\r
260 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<\r
261\r
262$(OBJS)\renddll_renddll.o: ./renddll.cpp\r
263 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<\r
264\r
265.PHONY: all clean\r
266\r
267\r
268SHELL := $(COMSPEC)\r
269\r
270# Dependencies tracking:\r
271-include $(OBJS)/*.d\r