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