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