]>
Commit | Line | Data |
---|---|---|
2d611b5c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
506e9b7e | 3 | # Bakefile 0.2.5 (http://www.bakefile.org) |
2d611b5c VS |
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 | ||
8ece421c | 15 | CPPDEPS = -MT$@ -MF$@.d -MD -MP |
ae4ccf12 RD |
16 | WX_RELEASE_NODOT = 29 |
17 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0 | |
444833b3 | 18 | COMPILER_PREFIX = gcc |
2d611b5c | 19 | OBJS = \ |
444833b3 CE |
20 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
21 | LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG) | |
b17c1746 DE |
22 | SETUPHDIR = \ |
23 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
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) \ | |
3abcf424 RD |
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) | |
2d611b5c VS |
31 | RENDER_OBJECTS = \ |
32 | $(OBJS)\render_sample_rc.o \ | |
33 | $(OBJS)\render_render.o | |
8c9f8f91 JS |
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) \ | |
2113bc77 | 37 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
38 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -DWXUSINGDLL \ |
39 | $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \ | |
40 | $(CXXFLAGS) | |
b17c1746 DE |
41 | RENDDLL_OBJECTS = \ |
42 | $(OBJS)\renddll_renddll.o | |
2d611b5c VS |
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 | |
2d611b5c VS |
63 | ifeq ($(UNICODE),1) |
64 | WXUNICODEFLAG = u | |
65 | endif | |
66 | ifeq ($(WXUNIV),1) | |
67 | WXUNIVNAME = univ | |
68 | endif | |
b17c1746 DE |
69 | ifeq ($(SHARED),1) |
70 | WXDLLFLAG = dll | |
2d611b5c | 71 | endif |
b14abf14 JS |
72 | ifeq ($(SHARED),0) |
73 | LIBTYPE_SUFFIX = lib | |
74 | endif | |
75 | ifeq ($(SHARED),1) | |
76 | LIBTYPE_SUFFIX = dll | |
77 | endif | |
dd65d8c8 RN |
78 | ifeq ($(MONOLITHIC),0) |
79 | EXTRALIBS_FOR_BASE = | |
80 | endif | |
81 | ifeq ($(MONOLITHIC),1) | |
82 | EXTRALIBS_FOR_BASE = | |
83 | endif | |
078c7a59 VS |
84 | ifeq ($(BUILD),debug) |
85 | ifeq ($(UNICODE),0) | |
314a6446 | 86 | PLUGINSUFFIX = d |
078c7a59 VS |
87 | endif |
88 | endif | |
89 | ifeq ($(BUILD),debug) | |
90 | ifeq ($(UNICODE),1) | |
314a6446 | 91 | PLUGINSUFFIX = ud |
078c7a59 VS |
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) | |
314a6446 | 101 | PLUGINSUFFIX = u |
078c7a59 VS |
102 | endif |
103 | endif | |
b17c1746 DE |
104 | ifeq ($(WXUNIV),1) |
105 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
2d611b5c VS |
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 | |
8c9f8f91 JS |
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 | |
7379e476 VZ |
124 | ifeq ($(UNICODE),0) |
125 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0 | |
126 | endif | |
b17c1746 DE |
127 | ifeq ($(UNICODE),1) |
128 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
129 | endif | |
2113bc77 MW |
130 | ifeq ($(MSLU),1) |
131 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1 | |
132 | endif | |
3abcf424 RD |
133 | ifeq ($(USE_GDIPLUS),1) |
134 | __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
135 | endif | |
2d611b5c VS |
136 | ifeq ($(SHARED),1) |
137 | __DLLFLAG_p = -DWXUSINGDLL | |
138 | endif | |
139 | ifeq ($(SHARED),1) | |
140 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
141 | endif | |
b17c1746 DE |
142 | ifeq ($(SHARED),1) |
143 | __renddll___depname = \ | |
ae4ccf12 | 144 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll |
b17c1746 DE |
145 | endif |
146 | ifeq ($(BUILD),debug) | |
147 | __OPTIMIZEFLAG = -O0 | |
148 | endif | |
149 | ifeq ($(BUILD),release) | |
150 | __OPTIMIZEFLAG = -O2 | |
151 | endif | |
8c9f8f91 JS |
152 | ifeq ($(USE_RTTI),0) |
153 | __RTTIFLAG = -fno-rtti | |
b71531ad | 154 | endif |
8c9f8f91 JS |
155 | ifeq ($(USE_RTTI),1) |
156 | __RTTIFLAG = | |
b71531ad VZ |
157 | endif |
158 | ifeq ($(USE_EXCEPTIONS),0) | |
8c9f8f91 | 159 | __EXCEPTIONSFLAG = -fno-exceptions |
b71531ad VZ |
160 | endif |
161 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 162 | __EXCEPTIONSFLAG = |
b71531ad | 163 | endif |
b17c1746 DE |
164 | ifeq ($(WXUNIV),1) |
165 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
2d611b5c VS |
166 | endif |
167 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
168 | ifeq ($(DEBUG_FLAG),default) |
169 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
2d611b5c | 170 | endif |
2d611b5c | 171 | endif |
b17c1746 DE |
172 | ifeq ($(DEBUG_FLAG),1) |
173 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
2d611b5c | 174 | endif |
8c9f8f91 JS |
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 | |
7379e476 VZ |
184 | ifeq ($(UNICODE),0) |
185 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0 | |
186 | endif | |
2d611b5c | 187 | ifeq ($(UNICODE),1) |
b17c1746 | 188 | __UNICODE_DEFINE_p = -D_UNICODE |
2d611b5c | 189 | endif |
2113bc77 MW |
190 | ifeq ($(MSLU),1) |
191 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
192 | endif | |
3abcf424 RD |
193 | ifeq ($(USE_GDIPLUS),1) |
194 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
195 | endif | |
2d611b5c VS |
196 | ifeq ($(MONOLITHIC),0) |
197 | __WXLIB_CORE_p = \ | |
c33fae85 | 198 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
2d611b5c | 199 | endif |
b17c1746 | 200 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
201 | __WXLIB_BASE_p = \ |
202 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 | 203 | endif |
2d611b5c VS |
204 | ifeq ($(MONOLITHIC),1) |
205 | __WXLIB_MONO_p = \ | |
c33fae85 | 206 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
2d611b5c | 207 | endif |
b17c1746 | 208 | ifeq ($(USE_GUI),1) |
9c2d002b | 209 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
2d611b5c | 210 | endif |
b17c1746 | 211 | ifeq ($(USE_GUI),1) |
9c2d002b | 212 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
2d611b5c | 213 | endif |
b17c1746 | 214 | ifeq ($(USE_GUI),1) |
9c2d002b | 215 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
216 | endif |
217 | ifeq ($(MSLU),1) | |
218 | __UNICOWS_LIB_p = -lunicows | |
219 | endif | |
3abcf424 RD |
220 | ifeq ($(USE_GDIPLUS),1) |
221 | __GDIPLUS_LIB_p = -lgdiplus | |
222 | endif | |
b17c1746 DE |
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 | |
2d611b5c | 238 | endif |
8c9f8f91 JS |
239 | ifeq ($(USE_THREADS),0) |
240 | __THREADSFLAG = | |
241 | endif | |
242 | ifeq ($(USE_THREADS),1) | |
243 | __THREADSFLAG = -mthreads | |
244 | endif | |
2d611b5c | 245 | |
2d611b5c VS |
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 | ||
2d611b5c VS |
255 | clean: |
256 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 257 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
2d611b5c | 258 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe |
ae4ccf12 | 259 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll |
2d611b5c | 260 | |
b17c1746 | 261 | $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o |
8ece421c | 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 |
b17c1746 | 263 | |
2d611b5c | 264 | ifeq ($(SHARED),1) |
ae4ccf12 | 265 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS) |
8ece421c | 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 |
2d611b5c VS |
267 | endif |
268 | ||
b17c1746 | 269 | $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc |
444833b3 | 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 |
b17c1746 DE |
271 | |
272 | $(OBJS)\render_render.o: ./render.cpp | |
0d90d6ea | 273 | $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 DE |
274 | |
275 | $(OBJS)\renddll_renddll.o: ./renddll.cpp | |
0d90d6ea | 276 | $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c VS |
277 | |
278 | .PHONY: all clean | |
b14abf14 | 279 | |
8c9f8f91 | 280 | |
6e0fbb3d VS |
281 | SHELL := $(COMSPEC) |
282 | ||
0d90d6ea JS |
283 | # Dependencies tracking: |
284 | -include $(OBJS)/*.d |