]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/render/makefile.gcc
Update configuration for OpenVMS
[wxWidgets.git] / samples / render / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.5 (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)0
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)
56ifeq ($(DEBUG_FLAG),default)
57WXDEBUGFLAG = d
58endif
59endif
60ifeq ($(DEBUG_FLAG),1)
61WXDEBUGFLAG = d
62endif
63ifeq ($(UNICODE),1)
64WXUNICODEFLAG = u
65endif
66ifeq ($(WXUNIV),1)
67WXUNIVNAME = univ
68endif
69ifeq ($(SHARED),1)
70WXDLLFLAG = dll
71endif
72ifeq ($(SHARED),0)
73LIBTYPE_SUFFIX = lib
74endif
75ifeq ($(SHARED),1)
76LIBTYPE_SUFFIX = dll
77endif
78ifeq ($(MONOLITHIC),0)
79EXTRALIBS_FOR_BASE =
80endif
81ifeq ($(MONOLITHIC),1)
82EXTRALIBS_FOR_BASE =
83endif
84ifeq ($(BUILD),debug)
85ifeq ($(UNICODE),0)
86PLUGINSUFFIX = d
87endif
88endif
89ifeq ($(BUILD),debug)
90ifeq ($(UNICODE),1)
91PLUGINSUFFIX = ud
92endif
93endif
94ifeq ($(BUILD),release)
95ifeq ($(UNICODE),0)
96PLUGINSUFFIX =
97endif
98endif
99ifeq ($(BUILD),release)
100ifeq ($(UNICODE),1)
101PLUGINSUFFIX = u
102endif
103endif
104ifeq ($(WXUNIV),1)
105__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
106endif
107ifeq ($(BUILD),debug)
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
113__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
114endif
115ifeq ($(USE_EXCEPTIONS),0)
116__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
117endif
118ifeq ($(USE_RTTI),0)
119__RTTI_DEFINE_p_1 = --define wxNO_RTTI
120endif
121ifeq ($(USE_THREADS),0)
122__THREAD_DEFINE_p_1 = --define wxNO_THREADS
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_1 = --define wxUSE_UNICODE_MSLU=1
132endif
133ifeq ($(USE_GDIPLUS),1)
134__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
135endif
136ifeq ($(SHARED),1)
137__DLLFLAG_p = -DWXUSINGDLL
138endif
139ifeq ($(SHARED),1)
140__DLLFLAG_p_1 = --define WXUSINGDLL
141endif
142ifeq ($(SHARED),1)
143__renddll___depname = \
144 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
145endif
146ifeq ($(BUILD),debug)
147__OPTIMIZEFLAG = -O0
148endif
149ifeq ($(BUILD),release)
150__OPTIMIZEFLAG = -O2
151endif
152ifeq ($(USE_RTTI),0)
153__RTTIFLAG = -fno-rtti
154endif
155ifeq ($(USE_RTTI),1)
156__RTTIFLAG =
157endif
158ifeq ($(USE_EXCEPTIONS),0)
159__EXCEPTIONSFLAG = -fno-exceptions
160endif
161ifeq ($(USE_EXCEPTIONS),1)
162__EXCEPTIONSFLAG =
163endif
164ifeq ($(WXUNIV),1)
165__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
166endif
167ifeq ($(BUILD),debug)
168ifeq ($(DEBUG_FLAG),default)
169__DEBUG_DEFINE_p = -D__WXDEBUG__
170endif
171endif
172ifeq ($(DEBUG_FLAG),1)
173__DEBUG_DEFINE_p = -D__WXDEBUG__
174endif
175ifeq ($(USE_EXCEPTIONS),0)
176__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
177endif
178ifeq ($(USE_RTTI),0)
179__RTTI_DEFINE_p = -DwxNO_RTTI
180endif
181ifeq ($(USE_THREADS),0)
182__THREAD_DEFINE_p = -DwxNO_THREADS
183endif
184ifeq ($(UNICODE),0)
185__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
186endif
187ifeq ($(UNICODE),1)
188__UNICODE_DEFINE_p = -D_UNICODE
189endif
190ifeq ($(MSLU),1)
191__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
192endif
193ifeq ($(USE_GDIPLUS),1)
194__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
195endif
196ifeq ($(MONOLITHIC),0)
197__WXLIB_CORE_p = \
198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
199endif
200ifeq ($(MONOLITHIC),0)
201__WXLIB_BASE_p = \
202 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
203endif
204ifeq ($(MONOLITHIC),1)
205__WXLIB_MONO_p = \
206 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
207endif
208ifeq ($(USE_GUI),1)
209__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
210endif
211ifeq ($(USE_GUI),1)
212__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
213endif
214ifeq ($(USE_GUI),1)
215__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
216endif
217ifeq ($(MSLU),1)
218__UNICOWS_LIB_p = -lunicows
219endif
220ifeq ($(USE_GDIPLUS),1)
221__GDIPLUS_LIB_p = -lgdiplus
222endif
223ifeq ($(BUILD),debug)
224ifeq ($(DEBUG_INFO),default)
225__DEBUGINFO = -g
226endif
227endif
228ifeq ($(BUILD),release)
229ifeq ($(DEBUG_INFO),default)
230__DEBUGINFO =
231endif
232endif
233ifeq ($(DEBUG_INFO),0)
234__DEBUGINFO =
235endif
236ifeq ($(DEBUG_INFO),1)
237__DEBUGINFO = -g
238endif
239ifeq ($(USE_THREADS),0)
240__THREADSFLAG =
241endif
242ifeq ($(USE_THREADS),1)
243__THREADSFLAG = -mthreads
244endif
245
246
247all: $(OBJS)
248$(OBJS):
249 -if not exist $(OBJS) mkdir $(OBJS)
250
251### Targets: ###
252
253all: $(OBJS)\render.exe $(__renddll___depname)
254
255clean:
256 -if exist $(OBJS)\*.o del $(OBJS)\*.o
257 -if exist $(OBJS)\*.d del $(OBJS)\*.d
258 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
259 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
260
261$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
262 $(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
263
264ifeq ($(SHARED),1)
265$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
266 $(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
267endif
268
269$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
270 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
271
272$(OBJS)\render_render.o: ./render.cpp
273 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
274
275$(OBJS)\renddll_renddll.o: ./renddll.cpp
276 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
277
278.PHONY: all clean
279
280
281SHELL := $(COMSPEC)
282
283# Dependencies tracking:
284-include $(OBJS)/*.d