]> git.saurik.com Git - wxWidgets.git/blame - samples/dataview/makefile.gcc
Document how to build wxOSX/Carbon under recent OS X.
[wxWidgets.git] / samples / dataview / 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
24DATAVIEW_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
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
31 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
32DATAVIEW_OBJECTS = \\r
33 $(OBJS)\dataview_dataview.o \\r
34 $(OBJS)\dataview_mymodels.o \\r
35 $(OBJS)\dataview_sample_rc.o\r
36\r
37### Conditionally set variables: ###\r
38\r
39ifeq ($(GCC_VERSION),2.95)\r
40GCCFLAGS = -fvtable-thunks\r
41endif\r
42ifeq ($(USE_GUI),0)\r
43PORTNAME = base\r
44endif\r
45ifeq ($(USE_GUI),1)\r
46PORTNAME = msw\r
47endif\r
14b682f7
VZ
48ifeq ($(OFFICIAL_BUILD),1)
49COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
50endif
f82b7036
KO
51ifeq ($(BUILD),debug)\r
52WXDEBUGFLAG = d\r
53endif\r
54ifeq ($(UNICODE),1)\r
55WXUNICODEFLAG = u\r
56endif\r
57ifeq ($(WXUNIV),1)\r
58WXUNIVNAME = univ\r
59endif\r
60ifeq ($(SHARED),1)\r
61WXDLLFLAG = dll\r
62endif\r
63ifeq ($(SHARED),0)\r
64LIBTYPE_SUFFIX = lib\r
65endif\r
66ifeq ($(SHARED),1)\r
67LIBTYPE_SUFFIX = dll\r
68endif\r
69ifeq ($(MONOLITHIC),0)\r
70EXTRALIBS_FOR_BASE = \r
71endif\r
72ifeq ($(MONOLITHIC),1)\r
51ec29ea 73EXTRALIBS_FOR_BASE = \r
f82b7036
KO
74endif\r
75ifeq ($(BUILD),debug)\r
76__OPTIMIZEFLAG_2 = -O0\r
77endif\r
78ifeq ($(BUILD),release)\r
79__OPTIMIZEFLAG_2 = -O2\r
80endif\r
81ifeq ($(USE_RTTI),0)\r
82__RTTIFLAG_5 = -fno-rtti\r
83endif\r
84ifeq ($(USE_RTTI),1)\r
85__RTTIFLAG_5 = \r
86endif\r
87ifeq ($(USE_EXCEPTIONS),0)\r
88__EXCEPTIONSFLAG_6 = -fno-exceptions\r
89endif\r
90ifeq ($(USE_EXCEPTIONS),1)\r
91__EXCEPTIONSFLAG_6 = \r
92endif\r
93ifeq ($(WXUNIV),1)\r
94__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
95endif\r
96ifeq ($(WXUNIV),1)\r
97__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
98endif\r
99ifeq ($(DEBUG_FLAG),0)\r
100__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
101endif\r
102ifeq ($(DEBUG_FLAG),0)\r
103__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
104endif\r
00fb97de
KO
105ifeq ($(BUILD),release)\r
106__NDEBUG_DEFINE_p = -DNDEBUG\r
107endif\r
108ifeq ($(BUILD),release)\r
109__NDEBUG_DEFINE_p_1 = --define NDEBUG\r
110endif\r
f82b7036
KO
111ifeq ($(USE_EXCEPTIONS),0)\r
112__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
113endif\r
114ifeq ($(USE_EXCEPTIONS),0)\r
115__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
116endif\r
117ifeq ($(USE_RTTI),0)\r
118__RTTI_DEFINE_p = -DwxNO_RTTI\r
119endif\r
120ifeq ($(USE_RTTI),0)\r
121__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
122endif\r
123ifeq ($(USE_THREADS),0)\r
124__THREAD_DEFINE_p = -DwxNO_THREADS\r
125endif\r
126ifeq ($(USE_THREADS),0)\r
127__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
128endif\r
129ifeq ($(UNICODE),0)\r
130__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
131endif\r
132ifeq ($(UNICODE),1)\r
133__UNICODE_DEFINE_p = -D_UNICODE\r
134endif\r
135ifeq ($(UNICODE),0)\r
136__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
137endif\r
138ifeq ($(UNICODE),1)\r
139__UNICODE_DEFINE_p_1 = --define _UNICODE\r
140endif\r
141ifeq ($(MSLU),1)\r
142__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
143endif\r
144ifeq ($(MSLU),1)\r
145__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
146endif\r
f82b7036
KO
147ifeq ($(USE_CAIRO),1)\r
148____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
149endif\r
150ifeq ($(USE_CAIRO),1)\r
151__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
152endif\r
153ifeq ($(SHARED),1)\r
154__DLLFLAG_p = -DWXUSINGDLL\r
155endif\r
156ifeq ($(SHARED),1)\r
157__DLLFLAG_p_1 = --define WXUSINGDLL\r
158endif\r
159ifeq ($(MONOLITHIC),0)\r
160__WXLIB_ADV_p = \\r
161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv\r
162endif\r
163ifeq ($(MONOLITHIC),0)\r
164__WXLIB_CORE_p = \\r
165 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
166endif\r
167ifeq ($(MONOLITHIC),0)\r
168__WXLIB_BASE_p = \\r
169 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
170endif\r
171ifeq ($(MONOLITHIC),1)\r
172__WXLIB_MONO_p = \\r
173 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
174endif\r
175ifeq ($(USE_GUI),1)\r
176__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
177endif\r
178ifeq ($(USE_GUI),1)\r
179__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
180endif\r
181ifeq ($(USE_GUI),1)\r
182__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
183endif\r
184ifeq ($(MSLU),1)\r
185__UNICOWS_LIB_p = -lunicows\r
186endif\r
f82b7036
KO
187ifeq ($(USE_CAIRO),1)\r
188__CAIRO_LIB_p = -lcairo\r
189endif\r
190ifeq ($(USE_CAIRO),1)\r
191____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
192endif\r
193ifeq ($(BUILD),debug)\r
194ifeq ($(DEBUG_INFO),default)\r
195__DEBUGINFO = -g\r
196endif\r
197endif\r
198ifeq ($(BUILD),release)\r
199ifeq ($(DEBUG_INFO),default)\r
200__DEBUGINFO = \r
201endif\r
202endif\r
203ifeq ($(DEBUG_INFO),0)\r
204__DEBUGINFO = \r
205endif\r
206ifeq ($(DEBUG_INFO),1)\r
207__DEBUGINFO = -g\r
208endif\r
209ifeq ($(USE_THREADS),0)\r
210__THREADSFLAG = \r
211endif\r
212ifeq ($(USE_THREADS),1)\r
213__THREADSFLAG = -mthreads\r
214endif\r
215\r
216\r
217all: $(OBJS)\r
218$(OBJS):\r
219 -if not exist $(OBJS) mkdir $(OBJS)\r
220\r
221### Targets: ###\r
222\r
223all: $(OBJS)\dataview.exe\r
224\r
225clean: \r
226 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
227 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
228 -if exist $(OBJS)\dataview.exe del $(OBJS)\dataview.exe\r
229\r
230$(OBJS)\dataview.exe: $(DATAVIEW_OBJECTS) $(OBJS)\dataview_sample_rc.o\r
b796194b 231 $(CXX) -o $@ $(DATAVIEW_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) -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\r
f82b7036
KO
232\r
233$(OBJS)\dataview_dataview.o: ./dataview.cpp\r
234 $(CXX) -c -o $@ $(DATAVIEW_CXXFLAGS) $(CPPDEPS) $<\r
235\r
236$(OBJS)\dataview_mymodels.o: ./mymodels.cpp\r
237 $(CXX) -c -o $@ $(DATAVIEW_CXXFLAGS) $(CPPDEPS) $<\r
238\r
239$(OBJS)\dataview_sample_rc.o: ./../sample.rc\r
b796194b 240 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__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\r
f82b7036
KO
241\r
242.PHONY: all clean\r
243\r
244\r
245SHELL := $(COMSPEC)\r
246\r
247# Dependencies tracking:\r
248-include $(OBJS)/*.d\r