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