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