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