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