]> git.saurik.com Git - wxWidgets.git/blame - samples/stc/makefile.gcc
Document that wxDC::FloodFill() is not implemented under wxOSX.
[wxWidgets.git] / samples / stc / 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
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)
f82b7036
KO
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24STCTEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
22a3b6e4 25 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
00fb97de
KO
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
b796194b 28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
f82b7036
KO
29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \\r
30 -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \\r
22a3b6e4 31 -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
f82b7036 32STCTEST_OBJECTS = \\r
00eef16d 33 $(OBJS)\stctest_sample_rc.o \\r
f82b7036
KO
34 $(OBJS)\stctest_stctest.o \\r
35 $(OBJS)\stctest_edit.o \\r
00eef16d 36 $(OBJS)\stctest_prefs.o\r
f82b7036
KO
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
f82b7036
KO
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
f82b7036
KO
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
f82b7036 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
f82b7036
KO
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
00fb97de
KO
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
f82b7036
KO
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
f82b7036
KO
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_STC_p = \\r
181 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc\r
182endif\r
183ifeq ($(MONOLITHIC),0)\r
184__WXLIB_CORE_p = \\r
185 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
186endif\r
187ifeq ($(MONOLITHIC),0)\r
188__WXLIB_BASE_p = \\r
22a3b6e4 189 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
f82b7036
KO
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
f82b7036
KO
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)\stctest.exe data\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)\stctest.exe del $(OBJS)\stctest.exe\r
249\r
250$(OBJS)\stctest.exe: $(STCTEST_OBJECTS) $(OBJS)\stctest_sample_rc.o\r
22a3b6e4 251 $(CXX) -o $@ $(STCTEST_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_STC_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) -lwxscintilla$(WXDEBUGFLAG) $(__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
f82b7036
KO
252\r
253data: \r
254 if not exist $(OBJS) mkdir $(OBJS)\r
255 for %%f in (stctest.cpp) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r
256\r
00eef16d 257$(OBJS)\stctest_sample_rc.o: ./../../samples/sample.rc\r
22a3b6e4 258 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 259\r
f82b7036
KO
260$(OBJS)\stctest_stctest.o: ./stctest.cpp\r
261 $(CXX) -c -o $@ $(STCTEST_CXXFLAGS) $(CPPDEPS) $<\r
262\r
263$(OBJS)\stctest_edit.o: ./edit.cpp\r
264 $(CXX) -c -o $@ $(STCTEST_CXXFLAGS) $(CPPDEPS) $<\r
265\r
266$(OBJS)\stctest_prefs.o: ./prefs.cpp\r
267 $(CXX) -c -o $@ $(STCTEST_CXXFLAGS) $(CPPDEPS) $<\r
268\r
f82b7036
KO
269.PHONY: all clean data\r
270\r
271\r
272SHELL := $(COMSPEC)\r
273\r
274# Dependencies tracking:\r
275-include $(OBJS)/*.d\r