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