]> git.saurik.com Git - wxWidgets.git/blame - samples/treelist/makefile.gcc
Make TOOLKIT variable constant in MSW makefiles.
[wxWidgets.git] / samples / treelist / makefile.gcc
CommitLineData
4863951a
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 = \
14b682f7
VZ
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
4863951a
VS
22SETUPHDIR = \
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24TREELIST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22a3b6e4 25 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
4863951a
VS
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) \
22a3b6e4 31 -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
4863951a
VS
32TREELIST_OBJECTS = \
33 $(OBJS)\treelist_sample_rc.o \
34 $(OBJS)\treelist_treelist.o
35
36### Conditionally set variables: ###
37
22a3b6e4
VZ
38ifeq ($(TOOLKIT),GTK)
39WIN32_TOOLKIT_LOWERCASE = gtk
40endif
41ifeq ($(TOOLKIT),MSW)
42WIN32_TOOLKIT_LOWERCASE = msw
43endif
4863951a
VS
44ifeq ($(GCC_VERSION),2.95)
45GCCFLAGS = -fvtable-thunks
46endif
47ifeq ($(USE_GUI),0)
48PORTNAME = base
49endif
50ifeq ($(USE_GUI),1)
22a3b6e4
VZ
51PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
52endif
53ifeq ($(TOOLKIT),MAC)
54WXBASEPORT = _carbon
55endif
14b682f7
VZ
56ifeq ($(OFFICIAL_BUILD),1)
57COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
4863951a
VS
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
22a3b6e4
VZ
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
4863951a
VS
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_ADV_p = \
179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
180endif
181ifeq ($(MONOLITHIC),0)
182__WXLIB_CORE_p = \
183 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
184endif
185ifeq ($(MONOLITHIC),0)
186__WXLIB_BASE_p = \
22a3b6e4 187 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
4863951a
VS
188endif
189ifeq ($(MONOLITHIC),1)
190__WXLIB_MONO_p = \
191 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
192endif
193ifeq ($(USE_GUI),1)
194__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
195endif
196ifeq ($(USE_GUI),1)
197__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
198endif
199ifeq ($(USE_GUI),1)
200__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
201endif
202ifeq ($(MSLU),1)
203__UNICOWS_LIB_p = -lunicows
204endif
205ifeq ($(USE_CAIRO),1)
206__CAIRO_LIB_p = -lcairo
207endif
208ifeq ($(USE_CAIRO),1)
209____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
210endif
211ifeq ($(BUILD),debug)
212ifeq ($(DEBUG_INFO),default)
213__DEBUGINFO = -g
214endif
215endif
216ifeq ($(BUILD),release)
217ifeq ($(DEBUG_INFO),default)
218__DEBUGINFO =
219endif
220endif
221ifeq ($(DEBUG_INFO),0)
222__DEBUGINFO =
223endif
224ifeq ($(DEBUG_INFO),1)
225__DEBUGINFO = -g
226endif
227ifeq ($(USE_THREADS),0)
228__THREADSFLAG =
229endif
230ifeq ($(USE_THREADS),1)
231__THREADSFLAG = -mthreads
232endif
233
234
235all: $(OBJS)
236$(OBJS):
237 -if not exist $(OBJS) mkdir $(OBJS)
238
239### Targets: ###
240
241all: $(OBJS)\treelist.exe
242
243clean:
244 -if exist $(OBJS)\*.o del $(OBJS)\*.o
245 -if exist $(OBJS)\*.d del $(OBJS)\*.d
246 -if exist $(OBJS)\treelist.exe del $(OBJS)\treelist.exe
247
248$(OBJS)\treelist.exe: $(TREELIST_OBJECTS) $(OBJS)\treelist_sample_rc.o
22a3b6e4 249 $(CXX) -o $@ $(TREELIST_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_ADV_p) $(__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
4863951a
VS
250
251$(OBJS)\treelist_sample_rc.o: ./../../samples/sample.rc
22a3b6e4 252 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
4863951a
VS
253
254$(OBJS)\treelist_treelist.o: ./treelist.cpp
255 $(CXX) -c -o $@ $(TREELIST_CXXFLAGS) $(CPPDEPS) $<
256
257.PHONY: all clean
258
259
260SHELL := $(COMSPEC)
261
262# Dependencies tracking:
263-include $(OBJS)/*.d