]>
Commit | Line | Data |
---|---|---|
1 | # ========================================================================= | |
2 | # This makefile was generated by | |
3 | # Bakefile 0.2.5 (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)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),0) | |
125 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0 | |
126 | endif | |
127 | ifeq ($(UNICODE),1) | |
128 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
129 | endif | |
130 | ifeq ($(MSLU),1) | |
131 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1 | |
132 | endif | |
133 | ifeq ($(USE_GDIPLUS),1) | |
134 | __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
135 | endif | |
136 | ifeq ($(SHARED),1) | |
137 | __DLLFLAG_p = -DWXUSINGDLL | |
138 | endif | |
139 | ifeq ($(SHARED),1) | |
140 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
141 | endif | |
142 | ifeq ($(SHARED),1) | |
143 | __renddll___depname = \ | |
144 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll | |
145 | endif | |
146 | ifeq ($(BUILD),debug) | |
147 | __OPTIMIZEFLAG = -O0 | |
148 | endif | |
149 | ifeq ($(BUILD),release) | |
150 | __OPTIMIZEFLAG = -O2 | |
151 | endif | |
152 | ifeq ($(USE_RTTI),0) | |
153 | __RTTIFLAG = -fno-rtti | |
154 | endif | |
155 | ifeq ($(USE_RTTI),1) | |
156 | __RTTIFLAG = | |
157 | endif | |
158 | ifeq ($(USE_EXCEPTIONS),0) | |
159 | __EXCEPTIONSFLAG = -fno-exceptions | |
160 | endif | |
161 | ifeq ($(USE_EXCEPTIONS),1) | |
162 | __EXCEPTIONSFLAG = | |
163 | endif | |
164 | ifeq ($(WXUNIV),1) | |
165 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
166 | endif | |
167 | ifeq ($(BUILD),debug) | |
168 | ifeq ($(DEBUG_FLAG),default) | |
169 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
170 | endif | |
171 | endif | |
172 | ifeq ($(DEBUG_FLAG),1) | |
173 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
174 | endif | |
175 | ifeq ($(USE_EXCEPTIONS),0) | |
176 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
177 | endif | |
178 | ifeq ($(USE_RTTI),0) | |
179 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
180 | endif | |
181 | ifeq ($(USE_THREADS),0) | |
182 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
183 | endif | |
184 | ifeq ($(UNICODE),0) | |
185 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0 | |
186 | endif | |
187 | ifeq ($(UNICODE),1) | |
188 | __UNICODE_DEFINE_p = -D_UNICODE | |
189 | endif | |
190 | ifeq ($(MSLU),1) | |
191 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
192 | endif | |
193 | ifeq ($(USE_GDIPLUS),1) | |
194 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
195 | endif | |
196 | ifeq ($(MONOLITHIC),0) | |
197 | __WXLIB_CORE_p = \ | |
198 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core | |
199 | endif | |
200 | ifeq ($(MONOLITHIC),0) | |
201 | __WXLIB_BASE_p = \ | |
202 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
203 | endif | |
204 | ifeq ($(MONOLITHIC),1) | |
205 | __WXLIB_MONO_p = \ | |
206 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
207 | endif | |
208 | ifeq ($(USE_GUI),1) | |
209 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
210 | endif | |
211 | ifeq ($(USE_GUI),1) | |
212 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
213 | endif | |
214 | ifeq ($(USE_GUI),1) | |
215 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
216 | endif | |
217 | ifeq ($(MSLU),1) | |
218 | __UNICOWS_LIB_p = -lunicows | |
219 | endif | |
220 | ifeq ($(USE_GDIPLUS),1) | |
221 | __GDIPLUS_LIB_p = -lgdiplus | |
222 | endif | |
223 | ifeq ($(BUILD),debug) | |
224 | ifeq ($(DEBUG_INFO),default) | |
225 | __DEBUGINFO = -g | |
226 | endif | |
227 | endif | |
228 | ifeq ($(BUILD),release) | |
229 | ifeq ($(DEBUG_INFO),default) | |
230 | __DEBUGINFO = | |
231 | endif | |
232 | endif | |
233 | ifeq ($(DEBUG_INFO),0) | |
234 | __DEBUGINFO = | |
235 | endif | |
236 | ifeq ($(DEBUG_INFO),1) | |
237 | __DEBUGINFO = -g | |
238 | endif | |
239 | ifeq ($(USE_THREADS),0) | |
240 | __THREADSFLAG = | |
241 | endif | |
242 | ifeq ($(USE_THREADS),1) | |
243 | __THREADSFLAG = -mthreads | |
244 | endif | |
245 | ||
246 | ||
247 | all: $(OBJS) | |
248 | $(OBJS): | |
249 | -if not exist $(OBJS) mkdir $(OBJS) | |
250 | ||
251 | ### Targets: ### | |
252 | ||
253 | all: $(OBJS)\render.exe $(__renddll___depname) | |
254 | ||
255 | clean: | |
256 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
257 | -if exist $(OBJS)\*.d del $(OBJS)\*.d | |
258 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe | |
259 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll | |
260 | ||
261 | $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o | |
262 | $(CXX) -o $@ $(RENDER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 | |
263 | ||
264 | ifeq ($(SHARED),1) | |
265 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS) | |
266 | $(CXX) $(LINK_MODULE_FLAGS) -fPIC -o $@ $(RENDDLL_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 | |
267 | endif | |
268 | ||
269 | $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc | |
270 | 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 | |
271 | ||
272 | $(OBJS)\render_render.o: ./render.cpp | |
273 | $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $< | |
274 | ||
275 | $(OBJS)\renddll_renddll.o: ./renddll.cpp | |
276 | $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $< | |
277 | ||
278 | .PHONY: all clean | |
279 | ||
280 | ||
281 | SHELL := $(COMSPEC) | |
282 | ||
283 | # Dependencies tracking: | |
284 | -include $(OBJS)/*.d |