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