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