]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.gcc
Applied patch #15286: documentation and col/rowspan demo by dghart
[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__WX$(TOOLKIT)__ $(__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 $(CXXFLAGS_GTK_WINDOWS_GCC) \
32 $(CPPFLAGS) $(CXXFLAGS)
33 RENDER_OBJECTS = \
34 $(OBJS)\render_sample_rc.o \
35 $(OBJS)\render_render.o
36 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
37 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
38 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
39 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
40 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
41 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \
42 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
43 $(CPPFLAGS) $(CXXFLAGS)
44 RENDDLL_OBJECTS = \
45 $(OBJS)\renddll_renddll.o
46
47 ### Conditionally set variables: ###
48
49 ifeq ($(TOOLKIT),GTK)
50 WIN32_TOOLKIT_LOWERCASE = gtk
51 endif
52 ifeq ($(TOOLKIT),MSW)
53 WIN32_TOOLKIT_LOWERCASE = msw
54 endif
55 ifeq ($(GCC_VERSION),2.95)
56 GCCFLAGS = -fvtable-thunks
57 endif
58 ifeq ($(USE_GUI),0)
59 PORTNAME = base
60 endif
61 ifeq ($(USE_GUI),1)
62 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
63 endif
64 ifeq ($(TOOLKIT),MAC)
65 WXBASEPORT = _carbon
66 endif
67 ifeq ($(OFFICIAL_BUILD),1)
68 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
69 endif
70 ifeq ($(OFFICIAL_BUILD),0)
71 WXCOMPILER = _gcc
72 endif
73 ifeq ($(OFFICIAL_BUILD),1)
74 WXCOMPILER = _gcc$(COMPILER_VERSION)
75 endif
76 ifeq ($(BUILD),debug)
77 WXDEBUGFLAG = d
78 endif
79 ifeq ($(UNICODE),1)
80 WXUNICODEFLAG = u
81 endif
82 ifeq ($(WXUNIV),1)
83 WXUNIVNAME = univ
84 endif
85 ifeq ($(SHARED),1)
86 WXDLLFLAG = dll
87 endif
88 ifeq ($(SHARED),0)
89 LIBTYPE_SUFFIX = lib
90 endif
91 ifeq ($(SHARED),1)
92 LIBTYPE_SUFFIX = dll
93 endif
94 ifeq ($(MONOLITHIC),0)
95 EXTRALIBS_FOR_BASE =
96 endif
97 ifeq ($(MONOLITHIC),1)
98 EXTRALIBS_FOR_BASE =
99 endif
100 ifeq ($(TOOLKIT),GTK)
101 CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
102 endif
103 ifeq ($(TOOLKIT),GTK)
104 ifeq ($(TOOLKIT_VERSION),2)
105 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
106 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
107 glib-2.0.lib
108 endif
109 endif
110 ifeq ($(WXUNIV),1)
111 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
112 endif
113 ifeq ($(DEBUG_FLAG),0)
114 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
115 endif
116 ifeq ($(BUILD),release)
117 __NDEBUG_DEFINE_p_1 = --define NDEBUG
118 endif
119 ifeq ($(USE_EXCEPTIONS),0)
120 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
121 endif
122 ifeq ($(USE_RTTI),0)
123 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
124 endif
125 ifeq ($(USE_THREADS),0)
126 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
127 endif
128 ifeq ($(UNICODE),0)
129 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
130 endif
131 ifeq ($(UNICODE),1)
132 __UNICODE_DEFINE_p_1 = --define _UNICODE
133 endif
134 ifeq ($(MSLU),1)
135 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
136 endif
137 ifeq ($(USE_CAIRO),1)
138 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
139 endif
140 ifeq ($(SHARED),1)
141 __DLLFLAG_p = -DWXUSINGDLL
142 endif
143 ifeq ($(SHARED),1)
144 __DLLFLAG_p_1 = --define WXUSINGDLL
145 endif
146 ifeq ($(SHARED),1)
147 __renddll___depname = \
148 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
149 endif
150 ifeq ($(BUILD),debug)
151 __OPTIMIZEFLAG = -O0
152 endif
153 ifeq ($(BUILD),release)
154 __OPTIMIZEFLAG = -O2
155 endif
156 ifeq ($(USE_RTTI),0)
157 __RTTIFLAG = -fno-rtti
158 endif
159 ifeq ($(USE_RTTI),1)
160 __RTTIFLAG =
161 endif
162 ifeq ($(USE_EXCEPTIONS),0)
163 __EXCEPTIONSFLAG = -fno-exceptions
164 endif
165 ifeq ($(USE_EXCEPTIONS),1)
166 __EXCEPTIONSFLAG =
167 endif
168 ifeq ($(WXUNIV),1)
169 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
170 endif
171 ifeq ($(DEBUG_FLAG),0)
172 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
173 endif
174 ifeq ($(BUILD),release)
175 __NDEBUG_DEFINE_p = -DNDEBUG
176 endif
177 ifeq ($(USE_EXCEPTIONS),0)
178 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
179 endif
180 ifeq ($(USE_RTTI),0)
181 __RTTI_DEFINE_p = -DwxNO_RTTI
182 endif
183 ifeq ($(USE_THREADS),0)
184 __THREAD_DEFINE_p = -DwxNO_THREADS
185 endif
186 ifeq ($(UNICODE),0)
187 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
188 endif
189 ifeq ($(UNICODE),1)
190 __UNICODE_DEFINE_p = -D_UNICODE
191 endif
192 ifeq ($(MSLU),1)
193 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
194 endif
195 ifeq ($(USE_CAIRO),1)
196 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
197 endif
198 ifeq ($(MONOLITHIC),0)
199 __WXLIB_CORE_p = \
200 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
201 endif
202 ifeq ($(MONOLITHIC),0)
203 __WXLIB_BASE_p = \
204 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
205 endif
206 ifeq ($(MONOLITHIC),1)
207 __WXLIB_MONO_p = \
208 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
209 endif
210 ifeq ($(USE_GUI),1)
211 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
212 endif
213 ifeq ($(USE_GUI),1)
214 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
215 endif
216 ifeq ($(USE_GUI),1)
217 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
218 endif
219 ifeq ($(MSLU),1)
220 __UNICOWS_LIB_p = -lunicows
221 endif
222 ifeq ($(USE_CAIRO),1)
223 __CAIRO_LIB_p = -lcairo
224 endif
225 ifeq ($(USE_CAIRO),1)
226 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
227 endif
228 ifeq ($(BUILD),debug)
229 ifeq ($(DEBUG_INFO),default)
230 __DEBUGINFO = -g
231 endif
232 endif
233 ifeq ($(BUILD),release)
234 ifeq ($(DEBUG_INFO),default)
235 __DEBUGINFO =
236 endif
237 endif
238 ifeq ($(DEBUG_INFO),0)
239 __DEBUGINFO =
240 endif
241 ifeq ($(DEBUG_INFO),1)
242 __DEBUGINFO = -g
243 endif
244 ifeq ($(USE_THREADS),0)
245 __THREADSFLAG =
246 endif
247 ifeq ($(USE_THREADS),1)
248 __THREADSFLAG = -mthreads
249 endif
250
251
252 all: $(OBJS)
253 $(OBJS):
254 -if not exist $(OBJS) mkdir $(OBJS)
255
256 ### Targets: ###
257
258 all: $(OBJS)\render.exe $(__renddll___depname)
259
260 clean:
261 -if exist $(OBJS)\*.o del $(OBJS)\*.o
262 -if exist $(OBJS)\*.d del $(OBJS)\*.d
263 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
264 -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
265
266 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
267 $(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) $(LIB_GTK) -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
268
269 ifeq ($(SHARED),1)
270 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll: $(RENDDLL_OBJECTS)
271 $(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) $(LIB_GTK) -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
272 endif
273
274 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
275 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__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
276
277 $(OBJS)\render_render.o: ./render.cpp
278 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
279
280 $(OBJS)\renddll_renddll.o: ./renddll.cpp
281 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
282
283 .PHONY: all clean
284
285
286 SHELL := $(COMSPEC)
287
288 # Dependencies tracking:
289 -include $(OBJS)/*.d