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