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