]>
Commit | Line | Data |
---|---|---|
f82b7036 KO |
1 | # =========================================================================\r |
2 | # This makefile was generated by\r | |
00eef16d | 3 | # Bakefile 0.2.9 (http://www.bakefile.org)\r |
f82b7036 KO |
4 | # Do not modify, all changes will be overwritten!\r |
5 | # =========================================================================\r | |
6 | \r | |
7 | include ../../build/msw/config.gcc\r | |
8 | \r | |
9 | # -------------------------------------------------------------------------\r | |
10 | # Do not modify the rest of this file!\r | |
11 | # -------------------------------------------------------------------------\r | |
12 | \r | |
13 | ### Variables: ###\r | |
14 | \r | |
15 | CPPDEPS = -MT$@ -MF$@.d -MD -MP\r | |
16 | WX_RELEASE_NODOT = 29\r | |
14b682f7 | 17 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5 |
f82b7036 KO |
18 | COMPILER_PREFIX = gcc\r |
19 | OBJS = \\r | |
14b682f7 VZ |
20 | $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
21 | LIBDIRNAME = \ | |
22 | .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG) | |
f82b7036 KO |
23 | SETUPHDIR = \\r |
24 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
25 | RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r | |
22a3b6e4 | 26 | -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
00fb97de KO |
27 | $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r |
28 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r | |
b796194b VS |
29 | -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r |
30 | -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \\r | |
22a3b6e4 VZ |
31 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \ |
32 | $(CPPFLAGS) $(CXXFLAGS) | |
f82b7036 KO |
33 | RENDER_OBJECTS = \\r |
34 | $(OBJS)\render_sample_rc.o \\r | |
35 | $(OBJS)\render_render.o\r | |
36 | RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r | |
22a3b6e4 | 37 | $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ |
00fb97de KO |
38 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r |
39 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r | |
b796194b | 40 | $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r |
f82b7036 | 41 | $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \\r |
22a3b6e4 VZ |
42 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \ |
43 | $(CPPFLAGS) $(CXXFLAGS) | |
f82b7036 KO |
44 | RENDDLL_OBJECTS = \\r |
45 | $(OBJS)\renddll_renddll.o\r | |
46 | \r | |
47 | ### Conditionally set variables: ###\r | |
48 | \r | |
22a3b6e4 VZ |
49 | ifeq ($(TOOLKIT),GTK) |
50 | WIN32_TOOLKIT_LOWERCASE = gtk | |
51 | endif | |
52 | ifeq ($(TOOLKIT),MSW) | |
53 | WIN32_TOOLKIT_LOWERCASE = msw | |
54 | endif | |
f82b7036 KO |
55 | ifeq ($(GCC_VERSION),2.95)\r |
56 | GCCFLAGS = -fvtable-thunks\r | |
57 | endif\r | |
58 | ifeq ($(USE_GUI),0)\r | |
59 | PORTNAME = base\r | |
60 | endif\r | |
61 | ifeq ($(USE_GUI),1)\r | |
22a3b6e4 VZ |
62 | PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) |
63 | endif | |
64 | ifeq ($(TOOLKIT),MAC) | |
65 | WXBASEPORT = _carbon | |
66 | endif | |
14b682f7 VZ |
67 | ifeq ($(OFFICIAL_BUILD),1) |
68 | COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD | |
69 | endif | |
70 | ifeq ($(OFFICIAL_BUILD),0) | |
71 | WXCOMPILER = _gcc | |
72 | endif | |
73 | ifeq ($(OFFICIAL_BUILD),1) | |
74 | WXCOMPILER = _gcc$(COMPILER_VERSION) | |
75 | endif | |
f82b7036 KO |
76 | ifeq ($(BUILD),debug)\r |
77 | WXDEBUGFLAG = d\r | |
78 | endif\r | |
79 | ifeq ($(UNICODE),1)\r | |
80 | WXUNICODEFLAG = u\r | |
81 | endif\r | |
82 | ifeq ($(WXUNIV),1)\r | |
83 | WXUNIVNAME = univ\r | |
84 | endif\r | |
85 | ifeq ($(SHARED),1)\r | |
86 | WXDLLFLAG = dll\r | |
87 | endif\r | |
88 | ifeq ($(SHARED),0)\r | |
89 | LIBTYPE_SUFFIX = lib\r | |
90 | endif\r | |
91 | ifeq ($(SHARED),1)\r | |
92 | LIBTYPE_SUFFIX = dll\r | |
93 | endif\r | |
94 | ifeq ($(MONOLITHIC),0)\r | |
95 | EXTRALIBS_FOR_BASE = \r | |
96 | endif\r | |
97 | ifeq ($(MONOLITHIC),1)\r | |
51ec29ea | 98 | EXTRALIBS_FOR_BASE = \r |
f82b7036 | 99 | endif\r |
22a3b6e4 VZ |
100 | ifeq ($(TOOLKIT),GTK) |
101 | CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields | |
102 | endif | |
103 | ifeq ($(TOOLKIT),GTK) | |
104 | ifeq ($(TOOLKIT_VERSION),2) | |
105 | LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \ | |
106 | gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \ | |
107 | glib-2.0.lib | |
108 | endif | |
109 | endif | |
f82b7036 KO |
110 | ifeq ($(WXUNIV),1)\r |
111 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r | |
112 | endif\r | |
113 | ifeq ($(DEBUG_FLAG),0)\r | |
114 | __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r | |
115 | endif\r | |
00fb97de KO |
116 | ifeq ($(BUILD),release)\r |
117 | __NDEBUG_DEFINE_p_1 = --define NDEBUG\r | |
118 | endif\r | |
f82b7036 KO |
119 | ifeq ($(USE_EXCEPTIONS),0)\r |
120 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r | |
121 | endif\r | |
122 | ifeq ($(USE_RTTI),0)\r | |
123 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI\r | |
124 | endif\r | |
125 | ifeq ($(USE_THREADS),0)\r | |
126 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS\r | |
127 | endif\r | |
128 | ifeq ($(UNICODE),0)\r | |
129 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r | |
130 | endif\r | |
131 | ifeq ($(UNICODE),1)\r | |
132 | __UNICODE_DEFINE_p_1 = --define _UNICODE\r | |
133 | endif\r | |
134 | ifeq ($(MSLU),1)\r | |
135 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r | |
136 | endif\r | |
f82b7036 KO |
137 | ifeq ($(USE_CAIRO),1)\r |
138 | __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r | |
139 | endif\r | |
140 | ifeq ($(SHARED),1)\r | |
141 | __DLLFLAG_p = -DWXUSINGDLL\r | |
142 | endif\r | |
143 | ifeq ($(SHARED),1)\r | |
144 | __DLLFLAG_p_1 = --define WXUSINGDLL\r | |
145 | endif\r | |
146 | ifeq ($(SHARED),1)\r | |
147 | __renddll___depname = \\r | |
14b682f7 | 148 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll |
f82b7036 KO |
149 | endif\r |
150 | ifeq ($(BUILD),debug)\r | |
151 | __OPTIMIZEFLAG = -O0\r | |
152 | endif\r | |
153 | ifeq ($(BUILD),release)\r | |
154 | __OPTIMIZEFLAG = -O2\r | |
155 | endif\r | |
156 | ifeq ($(USE_RTTI),0)\r | |
157 | __RTTIFLAG = -fno-rtti\r | |
158 | endif\r | |
159 | ifeq ($(USE_RTTI),1)\r | |
160 | __RTTIFLAG = \r | |
161 | endif\r | |
162 | ifeq ($(USE_EXCEPTIONS),0)\r | |
163 | __EXCEPTIONSFLAG = -fno-exceptions\r | |
164 | endif\r | |
165 | ifeq ($(USE_EXCEPTIONS),1)\r | |
166 | __EXCEPTIONSFLAG = \r | |
167 | endif\r | |
168 | ifeq ($(WXUNIV),1)\r | |
169 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r | |
170 | endif\r | |
171 | ifeq ($(DEBUG_FLAG),0)\r | |
172 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r | |
173 | endif\r | |
00fb97de KO |
174 | ifeq ($(BUILD),release)\r |
175 | __NDEBUG_DEFINE_p = -DNDEBUG\r | |
176 | endif\r | |
f82b7036 KO |
177 | ifeq ($(USE_EXCEPTIONS),0)\r |
178 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r | |
179 | endif\r | |
180 | ifeq ($(USE_RTTI),0)\r | |
181 | __RTTI_DEFINE_p = -DwxNO_RTTI\r | |
182 | endif\r | |
183 | ifeq ($(USE_THREADS),0)\r | |
184 | __THREAD_DEFINE_p = -DwxNO_THREADS\r | |
185 | endif\r | |
186 | ifeq ($(UNICODE),0)\r | |
187 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r | |
188 | endif\r | |
189 | ifeq ($(UNICODE),1)\r | |
190 | __UNICODE_DEFINE_p = -D_UNICODE\r | |
191 | endif\r | |
192 | ifeq ($(MSLU),1)\r | |
193 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r | |
194 | endif\r | |
f82b7036 KO |
195 | ifeq ($(USE_CAIRO),1)\r |
196 | ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r | |
197 | endif\r | |
198 | ifeq ($(MONOLITHIC),0)\r | |
199 | __WXLIB_CORE_p = \\r | |
200 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r | |
201 | endif\r | |
202 | ifeq ($(MONOLITHIC),0)\r | |
203 | __WXLIB_BASE_p = \\r | |
22a3b6e4 | 204 | -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
f82b7036 KO |
205 | endif\r |
206 | ifeq ($(MONOLITHIC),1)\r | |
207 | __WXLIB_MONO_p = \\r | |
208 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
209 | endif\r | |
210 | ifeq ($(USE_GUI),1)\r | |
211 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r | |
212 | endif\r | |
213 | ifeq ($(USE_GUI),1)\r | |
214 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r | |
215 | endif\r | |
216 | ifeq ($(USE_GUI),1)\r | |
217 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r | |
218 | endif\r | |
219 | ifeq ($(MSLU),1)\r | |
220 | __UNICOWS_LIB_p = -lunicows\r | |
221 | endif\r | |
f82b7036 KO |
222 | ifeq ($(USE_CAIRO),1)\r |
223 | __CAIRO_LIB_p = -lcairo\r | |
224 | endif\r | |
225 | ifeq ($(USE_CAIRO),1)\r | |
226 | ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r | |
227 | endif\r | |
228 | ifeq ($(BUILD),debug)\r | |
229 | ifeq ($(DEBUG_INFO),default)\r | |
230 | __DEBUGINFO = -g\r | |
231 | endif\r | |
232 | endif\r | |
233 | ifeq ($(BUILD),release)\r | |
234 | ifeq ($(DEBUG_INFO),default)\r | |
235 | __DEBUGINFO = \r | |
236 | endif\r | |
237 | endif\r | |
238 | ifeq ($(DEBUG_INFO),0)\r | |
239 | __DEBUGINFO = \r | |
240 | endif\r | |
241 | ifeq ($(DEBUG_INFO),1)\r | |
242 | __DEBUGINFO = -g\r | |
243 | endif\r | |
244 | ifeq ($(USE_THREADS),0)\r | |
245 | __THREADSFLAG = \r | |
246 | endif\r | |
247 | ifeq ($(USE_THREADS),1)\r | |
248 | __THREADSFLAG = -mthreads\r | |
249 | endif\r | |
250 | \r | |
251 | \r | |
252 | all: $(OBJS)\r | |
253 | $(OBJS):\r | |
254 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
255 | \r | |
256 | ### Targets: ###\r | |
257 | \r | |
258 | all: $(OBJS)\render.exe $(__renddll___depname)\r | |
259 | \r | |
260 | clean: \r | |
261 | -if exist $(OBJS)\*.o del $(OBJS)\*.o\r | |
262 | -if exist $(OBJS)\*.d del $(OBJS)\*.d\r | |
263 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe\r | |
14b682f7 | 264 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll |
f82b7036 KO |
265 | \r |
266 | $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o\r | |
22a3b6e4 | 267 | $(CXX) -o $@ $(RENDER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet |
f82b7036 KO |
268 | \r |
269 | ifeq ($(SHARED),1)\r | |
14b682f7 | 270 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll: $(RENDDLL_OBJECTS) |
22a3b6e4 | 271 | $(CXX) $(LINK_MODULE_FLAGS) -fPIC -o $@ $(RENDDLL_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet |
f82b7036 KO |
272 | endif\r |
273 | \r | |
274 | $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc\r | |
22a3b6e4 | 275 | windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH |
f82b7036 KO |
276 | \r |
277 | $(OBJS)\render_render.o: ./render.cpp\r | |
278 | $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<\r | |
279 | \r | |
280 | $(OBJS)\renddll_renddll.o: ./renddll.cpp\r | |
281 | $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<\r | |
282 | \r | |
283 | .PHONY: all clean\r | |
284 | \r | |
285 | \r | |
286 | SHELL := $(COMSPEC)\r | |
287 | \r | |
288 | # Dependencies tracking:\r | |
289 | -include $(OBJS)/*.d\r |