]> git.saurik.com Git - wxWidgets.git/blame - samples/xti/makefile.gcc
Applied patch #15286: documentation and col/rowspan demo by dghart
[wxWidgets.git] / samples / xti / makefile.gcc
CommitLineData
00eef16d
VZ
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.9 (http://www.bakefile.org)\r
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
17COMPILER_PREFIX = gcc\r
18OBJS = \\r
14b682f7
VZ
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
00eef16d
VZ
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24XTI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) $(GCCFLAGS) \\r
22a3b6e4 25 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
00eef16d
VZ
26 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
28 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W \\r
29 -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \\r
22a3b6e4
VZ
30 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
31 $(CPPFLAGS) $(CXXFLAGS)
00eef16d
VZ
32XTI_OBJECTS = \\r
33 $(OBJS)\xti_sample_rc.o \\r
34 $(OBJS)\xti_xti.o \\r
35 $(OBJS)\xti_classlist.o \\r
36 $(OBJS)\xti_codereadercallback.o\r
37\r
38### Conditionally set variables: ###\r
39\r
22a3b6e4
VZ
40ifeq ($(TOOLKIT),GTK)
41WIN32_TOOLKIT_LOWERCASE = gtk
42endif
43ifeq ($(TOOLKIT),MSW)
44WIN32_TOOLKIT_LOWERCASE = msw
45endif
00eef16d
VZ
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
22a3b6e4
VZ
53PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
54endif
55ifeq ($(TOOLKIT),MAC)
56WXBASEPORT = _carbon
57endif
14b682f7
VZ
58ifeq ($(OFFICIAL_BUILD),1)
59COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
22a3b6e4 60endif\r
00eef16d
VZ
61ifeq ($(BUILD),debug)\r
62WXDEBUGFLAG = d\r
63endif\r
64ifeq ($(UNICODE),1)\r
65WXUNICODEFLAG = u\r
66endif\r
67ifeq ($(WXUNIV),1)\r
68WXUNIVNAME = univ\r
69endif\r
70ifeq ($(SHARED),1)\r
71WXDLLFLAG = dll\r
72endif\r
73ifeq ($(SHARED),0)\r
74LIBTYPE_SUFFIX = lib\r
75endif\r
76ifeq ($(SHARED),1)\r
77LIBTYPE_SUFFIX = dll\r
78endif\r
79ifeq ($(MONOLITHIC),0)\r
80EXTRALIBS_FOR_BASE = \r
81endif\r
82ifeq ($(MONOLITHIC),1)\r
51ec29ea 83EXTRALIBS_FOR_BASE = \r
00eef16d 84endif\r
22a3b6e4
VZ
85ifeq ($(TOOLKIT),GTK)
86CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
87endif
88ifeq ($(TOOLKIT),GTK)
89ifeq ($(TOOLKIT_VERSION),2)
90LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
91 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
92 glib-2.0.lib
93endif
94endif
00eef16d
VZ
95ifeq ($(BUILD),debug)\r
96__OPTIMIZEFLAG_2 = -O0\r
97endif\r
98ifeq ($(BUILD),release)\r
99__OPTIMIZEFLAG_2 = -O2\r
100endif\r
101ifeq ($(USE_RTTI),0)\r
102__RTTIFLAG_5 = -fno-rtti\r
103endif\r
104ifeq ($(USE_RTTI),1)\r
105__RTTIFLAG_5 = \r
106endif\r
107ifeq ($(USE_EXCEPTIONS),0)\r
108__EXCEPTIONSFLAG_6 = -fno-exceptions\r
109endif\r
110ifeq ($(USE_EXCEPTIONS),1)\r
111__EXCEPTIONSFLAG_6 = \r
112endif\r
113ifeq ($(WXUNIV),1)\r
114__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
115endif\r
116ifeq ($(WXUNIV),1)\r
117__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
118endif\r
119ifeq ($(DEBUG_FLAG),0)\r
120__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
121endif\r
122ifeq ($(DEBUG_FLAG),0)\r
123__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
124endif\r
125ifeq ($(BUILD),release)\r
126__NDEBUG_DEFINE_p = -DNDEBUG\r
127endif\r
128ifeq ($(BUILD),release)\r
129__NDEBUG_DEFINE_p_1 = --define NDEBUG\r
130endif\r
131ifeq ($(USE_EXCEPTIONS),0)\r
132__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
133endif\r
134ifeq ($(USE_EXCEPTIONS),0)\r
135__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
136endif\r
137ifeq ($(USE_RTTI),0)\r
138__RTTI_DEFINE_p = -DwxNO_RTTI\r
139endif\r
140ifeq ($(USE_RTTI),0)\r
141__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
142endif\r
143ifeq ($(USE_THREADS),0)\r
144__THREAD_DEFINE_p = -DwxNO_THREADS\r
145endif\r
146ifeq ($(USE_THREADS),0)\r
147__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
148endif\r
149ifeq ($(UNICODE),0)\r
150__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
151endif\r
152ifeq ($(UNICODE),1)\r
153__UNICODE_DEFINE_p = -D_UNICODE\r
154endif\r
155ifeq ($(UNICODE),0)\r
156__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
157endif\r
158ifeq ($(UNICODE),1)\r
159__UNICODE_DEFINE_p_1 = --define _UNICODE\r
160endif\r
161ifeq ($(MSLU),1)\r
162__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
163endif\r
164ifeq ($(MSLU),1)\r
165__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
166endif\r
167ifeq ($(USE_CAIRO),1)\r
168____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
169endif\r
170ifeq ($(USE_CAIRO),1)\r
171__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
172endif\r
173ifeq ($(SHARED),1)\r
174__DLLFLAG_p = -DWXUSINGDLL\r
175endif\r
176ifeq ($(SHARED),1)\r
177__DLLFLAG_p_1 = --define WXUSINGDLL\r
178endif\r
179ifeq ($(MONOLITHIC),0)\r
180__WXLIB_CORE_p = \\r
181 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
182endif\r
183ifeq ($(MONOLITHIC),0)\r
184__WXLIB_XML_p = \\r
22a3b6e4 185 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
00eef16d
VZ
186endif\r
187ifeq ($(MONOLITHIC),0)\r
188__WXLIB_BASE_p = \\r
22a3b6e4 189 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
00eef16d
VZ
190endif\r
191ifeq ($(MONOLITHIC),1)\r
192__WXLIB_MONO_p = \\r
193 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
194endif\r
195ifeq ($(USE_GUI),1)\r
196__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
197endif\r
198ifeq ($(USE_GUI),1)\r
199__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
200endif\r
201ifeq ($(USE_GUI),1)\r
202__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
203endif\r
204ifeq ($(MSLU),1)\r
205__UNICOWS_LIB_p = -lunicows\r
206endif\r
207ifeq ($(USE_CAIRO),1)\r
208__CAIRO_LIB_p = -lcairo\r
209endif\r
210ifeq ($(USE_CAIRO),1)\r
211____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
212endif\r
213ifeq ($(BUILD),debug)\r
214ifeq ($(DEBUG_INFO),default)\r
215__DEBUGINFO = -g\r
216endif\r
217endif\r
218ifeq ($(BUILD),release)\r
219ifeq ($(DEBUG_INFO),default)\r
220__DEBUGINFO = \r
221endif\r
222endif\r
223ifeq ($(DEBUG_INFO),0)\r
224__DEBUGINFO = \r
225endif\r
226ifeq ($(DEBUG_INFO),1)\r
227__DEBUGINFO = -g\r
228endif\r
229ifeq ($(USE_THREADS),0)\r
230__THREADSFLAG = \r
231endif\r
232ifeq ($(USE_THREADS),1)\r
233__THREADSFLAG = -mthreads\r
234endif\r
235\r
236\r
237all: $(OBJS)\r
238$(OBJS):\r
239 -if not exist $(OBJS) mkdir $(OBJS)\r
240\r
241### Targets: ###\r
242\r
243all: $(OBJS)\xti.exe\r
244\r
245clean: \r
246 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
247 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
248 -if exist $(OBJS)\xti.exe del $(OBJS)\xti.exe\r
249\r
250$(OBJS)\xti.exe: $(XTI_OBJECTS) $(OBJS)\xti_sample_rc.o\r
22a3b6e4 251 $(CXX) -o $@ $(XTI_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_XML_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
00eef16d
VZ
252\r
253$(OBJS)\xti_sample_rc.o: ./../../samples/sample.rc\r
22a3b6e4 254 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
00eef16d
VZ
255\r
256$(OBJS)\xti_xti.o: ./xti.cpp\r
257 $(CXX) -c -o $@ $(XTI_CXXFLAGS) $(CPPDEPS) $<\r
258\r
259$(OBJS)\xti_classlist.o: ./classlist.cpp\r
260 $(CXX) -c -o $@ $(XTI_CXXFLAGS) $(CPPDEPS) $<\r
261\r
262$(OBJS)\xti_codereadercallback.o: ./codereadercallback.cpp\r
263 $(CXX) -c -o $@ $(XTI_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