]> git.saurik.com Git - wxWidgets.git/blame - samples/dataview/makefile.gcc
Forward port of r60190 (wxMSW Cairo support) to trunk.
[wxWidgets.git] / samples / dataview / makefile.gcc
CommitLineData
78808897
VZ
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.7 (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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23DATAVIEW_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
29 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
30DATAVIEW_OBJECTS = \
31 $(OBJS)\dataview_dataview.o \
32 $(OBJS)\dataview_mymodels.o \
33 $(OBJS)\dataview_sample_rc.o
34
35### Conditionally set variables: ###
36
37ifeq ($(GCC_VERSION),2.95)
38GCCFLAGS = -fvtable-thunks
39endif
40ifeq ($(USE_GUI),0)
41PORTNAME = base
42endif
43ifeq ($(USE_GUI),1)
44PORTNAME = msw
45endif
46ifeq ($(BUILD),debug)
47WXDEBUGFLAG = d
48endif
49ifeq ($(UNICODE),1)
50WXUNICODEFLAG = u
51endif
52ifeq ($(WXUNIV),1)
53WXUNIVNAME = univ
54endif
55ifeq ($(SHARED),1)
56WXDLLFLAG = dll
57endif
58ifeq ($(SHARED),0)
59LIBTYPE_SUFFIX = lib
60endif
61ifeq ($(SHARED),1)
62LIBTYPE_SUFFIX = dll
63endif
64ifeq ($(MONOLITHIC),0)
65EXTRALIBS_FOR_BASE =
66endif
67ifeq ($(MONOLITHIC),1)
68EXTRALIBS_FOR_BASE =
69endif
70ifeq ($(BUILD),debug)
71__OPTIMIZEFLAG_2 = -O0
72endif
73ifeq ($(BUILD),release)
74__OPTIMIZEFLAG_2 = -O2
75endif
76ifeq ($(USE_RTTI),0)
77__RTTIFLAG_5 = -fno-rtti
78endif
79ifeq ($(USE_RTTI),1)
80__RTTIFLAG_5 =
81endif
82ifeq ($(USE_EXCEPTIONS),0)
83__EXCEPTIONSFLAG_6 = -fno-exceptions
84endif
85ifeq ($(USE_EXCEPTIONS),1)
86__EXCEPTIONSFLAG_6 =
87endif
88ifeq ($(WXUNIV),1)
89__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
90endif
91ifeq ($(WXUNIV),1)
92__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
93endif
94ifeq ($(DEBUG_FLAG),0)
95__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
96endif
97ifeq ($(DEBUG_FLAG),0)
98__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
99endif
100ifeq ($(USE_EXCEPTIONS),0)
101__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
102endif
103ifeq ($(USE_EXCEPTIONS),0)
104__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
105endif
106ifeq ($(USE_RTTI),0)
107__RTTI_DEFINE_p = -DwxNO_RTTI
108endif
109ifeq ($(USE_RTTI),0)
110__RTTI_DEFINE_p_1 = --define wxNO_RTTI
111endif
112ifeq ($(USE_THREADS),0)
113__THREAD_DEFINE_p = -DwxNO_THREADS
114endif
115ifeq ($(USE_THREADS),0)
116__THREAD_DEFINE_p_1 = --define wxNO_THREADS
117endif
118ifeq ($(UNICODE),0)
119__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
120endif
121ifeq ($(UNICODE),1)
122__UNICODE_DEFINE_p = -D_UNICODE
123endif
124ifeq ($(UNICODE),0)
125__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
126endif
127ifeq ($(UNICODE),1)
128__UNICODE_DEFINE_p_1 = --define _UNICODE
129endif
130ifeq ($(MSLU),1)
131__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
132endif
133ifeq ($(MSLU),1)
134__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
135endif
136ifeq ($(USE_GDIPLUS),1)
137__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
138endif
139ifeq ($(USE_GDIPLUS),1)
140__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
141endif
142ifeq ($(SHARED),1)
143__DLLFLAG_p = -DWXUSINGDLL
144endif
145ifeq ($(SHARED),1)
146__DLLFLAG_p_1 = --define WXUSINGDLL
147endif
148ifeq ($(MONOLITHIC),0)
149__WXLIB_ADV_p = \
150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
151endif
152ifeq ($(MONOLITHIC),0)
153__WXLIB_CORE_p = \
154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
155endif
156ifeq ($(MONOLITHIC),0)
157__WXLIB_BASE_p = \
158 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
159endif
160ifeq ($(MONOLITHIC),1)
161__WXLIB_MONO_p = \
162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
163endif
164ifeq ($(USE_GUI),1)
165__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
166endif
167ifeq ($(USE_GUI),1)
168__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
169endif
170ifeq ($(USE_GUI),1)
171__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
172endif
173ifeq ($(MSLU),1)
174__UNICOWS_LIB_p = -lunicows
175endif
176ifeq ($(USE_GDIPLUS),1)
177__GDIPLUS_LIB_p = -lgdiplus
178endif
179ifeq ($(BUILD),debug)
180ifeq ($(DEBUG_INFO),default)
181__DEBUGINFO = -g
182endif
183endif
184ifeq ($(BUILD),release)
185ifeq ($(DEBUG_INFO),default)
186__DEBUGINFO =
187endif
188endif
189ifeq ($(DEBUG_INFO),0)
190__DEBUGINFO =
191endif
192ifeq ($(DEBUG_INFO),1)
193__DEBUGINFO = -g
194endif
195ifeq ($(USE_THREADS),0)
196__THREADSFLAG =
197endif
198ifeq ($(USE_THREADS),1)
199__THREADSFLAG = -mthreads
200endif
201
202
203all: $(OBJS)
204$(OBJS):
205 -if not exist $(OBJS) mkdir $(OBJS)
206
207### Targets: ###
208
209all: $(OBJS)\dataview.exe
210
211clean:
212 -if exist $(OBJS)\*.o del $(OBJS)\*.o
213 -if exist $(OBJS)\*.d del $(OBJS)\*.d
214 -if exist $(OBJS)\dataview.exe del $(OBJS)\dataview.exe
215
216$(OBJS)\dataview.exe: $(DATAVIEW_OBJECTS) $(OBJS)\dataview_sample_rc.o
217 $(CXX) -o $@ $(DATAVIEW_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
218
219$(OBJS)\dataview_dataview.o: ./dataview.cpp
220 $(CXX) -c -o $@ $(DATAVIEW_CXXFLAGS) $(CPPDEPS) $<
221
222$(OBJS)\dataview_mymodels.o: ./mymodels.cpp
223 $(CXX) -c -o $@ $(DATAVIEW_CXXFLAGS) $(CPPDEPS) $<
224
225$(OBJS)\dataview_sample_rc.o: ./../sample.rc
226 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
227
228.PHONY: all clean
229
230
231SHELL := $(COMSPEC)
232
233# Dependencies tracking:
234-include $(OBJS)/*.d