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