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