]>
Commit | Line | Data |
---|---|---|
1 | # =========================================================================\r | |
2 | # This makefile was generated by\r | |
3 | # Bakefile 0.2.9 (http://www.bakefile.org)\r | |
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 | |
17 | COMPILER_PREFIX = gcc\r | |
18 | OBJS = \\r | |
19 | $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r | |
20 | LIBDIRNAME = \\r | |
21 | .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r | |
22 | SETUPHDIR = \\r | |
23 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
24 | XRCDEMO_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r | |
25 | $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | |
26 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r | |
27 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r | |
28 | $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r | |
29 | $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \\r | |
30 | -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \\r | |
31 | -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS) | |
32 | XRCDEMO_OBJECTS = \\r | |
33 | $(OBJS)\xrcdemo_sample_rc.o \\r | |
34 | $(OBJS)\xrcdemo_xrcdemo.o \\r | |
35 | $(OBJS)\xrcdemo_myframe.o \\r | |
36 | $(OBJS)\xrcdemo_derivdlg.o \\r | |
37 | $(OBJS)\xrcdemo_custclas.o \\r | |
38 | $(OBJS)\xrcdemo_objrefdlg.o\r | |
39 | \r | |
40 | ### Conditionally set variables: ###\r | |
41 | \r | |
42 | ifeq ($(TOOLKIT),GTK) | |
43 | WIN32_TOOLKIT_LOWERCASE = gtk | |
44 | endif | |
45 | ifeq ($(TOOLKIT),MSW) | |
46 | WIN32_TOOLKIT_LOWERCASE = msw | |
47 | endif | |
48 | ifeq ($(GCC_VERSION),2.95)\r | |
49 | GCCFLAGS = -fvtable-thunks\r | |
50 | endif\r | |
51 | ifeq ($(USE_GUI),0)\r | |
52 | PORTNAME = base\r | |
53 | endif\r | |
54 | ifeq ($(USE_GUI),1)\r | |
55 | PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
56 | endif | |
57 | ifeq ($(TOOLKIT),MAC) | |
58 | WXBASEPORT = _carbon | |
59 | endif\r | |
60 | ifeq ($(OFFICIAL_BUILD),1)\r | |
61 | COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r | |
62 | endif\r | |
63 | ifeq ($(BUILD),debug)\r | |
64 | WXDEBUGFLAG = d\r | |
65 | endif\r | |
66 | ifeq ($(UNICODE),1)\r | |
67 | WXUNICODEFLAG = u\r | |
68 | endif\r | |
69 | ifeq ($(WXUNIV),1)\r | |
70 | WXUNIVNAME = univ\r | |
71 | endif\r | |
72 | ifeq ($(SHARED),1)\r | |
73 | WXDLLFLAG = dll\r | |
74 | endif\r | |
75 | ifeq ($(SHARED),0)\r | |
76 | LIBTYPE_SUFFIX = lib\r | |
77 | endif\r | |
78 | ifeq ($(SHARED),1)\r | |
79 | LIBTYPE_SUFFIX = dll\r | |
80 | endif\r | |
81 | ifeq ($(MONOLITHIC),0)\r | |
82 | EXTRALIBS_FOR_BASE = \r | |
83 | endif\r | |
84 | ifeq ($(MONOLITHIC),1)\r | |
85 | EXTRALIBS_FOR_BASE = \r | |
86 | endif\r | |
87 | ifeq ($(TOOLKIT),GTK) | |
88 | CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields | |
89 | endif | |
90 | ifeq ($(TOOLKIT),GTK) | |
91 | ifeq ($(TOOLKIT_VERSION),2) | |
92 | LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \ | |
93 | gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \ | |
94 | glib-2.0.lib | |
95 | endif | |
96 | endif | |
97 | ifeq ($(BUILD),debug)\r | |
98 | __OPTIMIZEFLAG_2 = -O0\r | |
99 | endif\r | |
100 | ifeq ($(BUILD),release)\r | |
101 | __OPTIMIZEFLAG_2 = -O2\r | |
102 | endif\r | |
103 | ifeq ($(USE_RTTI),0)\r | |
104 | __RTTIFLAG_5 = -fno-rtti\r | |
105 | endif\r | |
106 | ifeq ($(USE_RTTI),1)\r | |
107 | __RTTIFLAG_5 = \r | |
108 | endif\r | |
109 | ifeq ($(USE_EXCEPTIONS),0)\r | |
110 | __EXCEPTIONSFLAG_6 = -fno-exceptions\r | |
111 | endif\r | |
112 | ifeq ($(USE_EXCEPTIONS),1)\r | |
113 | __EXCEPTIONSFLAG_6 = \r | |
114 | endif\r | |
115 | ifeq ($(WXUNIV),1)\r | |
116 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r | |
117 | endif\r | |
118 | ifeq ($(WXUNIV),1)\r | |
119 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r | |
120 | endif\r | |
121 | ifeq ($(DEBUG_FLAG),0)\r | |
122 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r | |
123 | endif\r | |
124 | ifeq ($(DEBUG_FLAG),0)\r | |
125 | __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r | |
126 | endif\r | |
127 | ifeq ($(BUILD),release)\r | |
128 | __NDEBUG_DEFINE_p = -DNDEBUG\r | |
129 | endif\r | |
130 | ifeq ($(BUILD),release)\r | |
131 | __NDEBUG_DEFINE_p_1 = --define NDEBUG\r | |
132 | endif\r | |
133 | ifeq ($(USE_EXCEPTIONS),0)\r | |
134 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r | |
135 | endif\r | |
136 | ifeq ($(USE_EXCEPTIONS),0)\r | |
137 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r | |
138 | endif\r | |
139 | ifeq ($(USE_RTTI),0)\r | |
140 | __RTTI_DEFINE_p = -DwxNO_RTTI\r | |
141 | endif\r | |
142 | ifeq ($(USE_RTTI),0)\r | |
143 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI\r | |
144 | endif\r | |
145 | ifeq ($(USE_THREADS),0)\r | |
146 | __THREAD_DEFINE_p = -DwxNO_THREADS\r | |
147 | endif\r | |
148 | ifeq ($(USE_THREADS),0)\r | |
149 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS\r | |
150 | endif\r | |
151 | ifeq ($(UNICODE),0)\r | |
152 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r | |
153 | endif\r | |
154 | ifeq ($(UNICODE),1)\r | |
155 | __UNICODE_DEFINE_p = -D_UNICODE\r | |
156 | endif\r | |
157 | ifeq ($(UNICODE),0)\r | |
158 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r | |
159 | endif\r | |
160 | ifeq ($(UNICODE),1)\r | |
161 | __UNICODE_DEFINE_p_1 = --define _UNICODE\r | |
162 | endif\r | |
163 | ifeq ($(MSLU),1)\r | |
164 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r | |
165 | endif\r | |
166 | ifeq ($(MSLU),1)\r | |
167 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r | |
168 | endif\r | |
169 | ifeq ($(USE_CAIRO),1)\r | |
170 | ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r | |
171 | endif\r | |
172 | ifeq ($(USE_CAIRO),1)\r | |
173 | __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r | |
174 | endif\r | |
175 | ifeq ($(SHARED),1)\r | |
176 | __DLLFLAG_p = -DWXUSINGDLL\r | |
177 | endif\r | |
178 | ifeq ($(SHARED),1)\r | |
179 | __DLLFLAG_p_1 = --define WXUSINGDLL\r | |
180 | endif\r | |
181 | ifeq ($(MONOLITHIC),0)\r | |
182 | __WXLIB_RIBBON_p = \\r | |
183 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ribbon\r | |
184 | endif\r | |
185 | ifeq ($(MONOLITHIC),0)\r | |
186 | __WXLIB_XRC_p = \\r | |
187 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xrc\r | |
188 | endif\r | |
189 | ifeq ($(MONOLITHIC),0)\r | |
190 | __WXLIB_HTML_p = \\r | |
191 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html\r | |
192 | endif\r | |
193 | ifeq ($(MONOLITHIC),0)\r | |
194 | __WXLIB_ADV_p = \\r | |
195 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv\r | |
196 | endif\r | |
197 | ifeq ($(MONOLITHIC),0)\r | |
198 | __WXLIB_CORE_p = \\r | |
199 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r | |
200 | endif\r | |
201 | ifeq ($(MONOLITHIC),0)\r | |
202 | __WXLIB_XML_p = \\r | |
203 | -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
204 | endif\r | |
205 | ifeq ($(MONOLITHIC),0)\r | |
206 | __WXLIB_BASE_p = \\r | |
207 | -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
208 | endif\r | |
209 | ifeq ($(MONOLITHIC),1)\r | |
210 | __WXLIB_MONO_p = \\r | |
211 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
212 | endif\r | |
213 | ifeq ($(USE_GUI),1)\r | |
214 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r | |
215 | endif\r | |
216 | ifeq ($(USE_GUI),1)\r | |
217 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r | |
218 | endif\r | |
219 | ifeq ($(USE_GUI),1)\r | |
220 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r | |
221 | endif\r | |
222 | ifeq ($(MSLU),1)\r | |
223 | __UNICOWS_LIB_p = -lunicows\r | |
224 | endif\r | |
225 | ifeq ($(USE_CAIRO),1)\r | |
226 | __CAIRO_LIB_p = -lcairo\r | |
227 | endif\r | |
228 | ifeq ($(USE_CAIRO),1)\r | |
229 | ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r | |
230 | endif\r | |
231 | ifeq ($(BUILD),debug)\r | |
232 | ifeq ($(DEBUG_INFO),default)\r | |
233 | __DEBUGINFO = -g\r | |
234 | endif\r | |
235 | endif\r | |
236 | ifeq ($(BUILD),release)\r | |
237 | ifeq ($(DEBUG_INFO),default)\r | |
238 | __DEBUGINFO = \r | |
239 | endif\r | |
240 | endif\r | |
241 | ifeq ($(DEBUG_INFO),0)\r | |
242 | __DEBUGINFO = \r | |
243 | endif\r | |
244 | ifeq ($(DEBUG_INFO),1)\r | |
245 | __DEBUGINFO = -g\r | |
246 | endif\r | |
247 | ifeq ($(USE_THREADS),0)\r | |
248 | __THREADSFLAG = \r | |
249 | endif\r | |
250 | ifeq ($(USE_THREADS),1)\r | |
251 | __THREADSFLAG = -mthreads\r | |
252 | endif\r | |
253 | \r | |
254 | \r | |
255 | all: $(OBJS)\r | |
256 | $(OBJS):\r | |
257 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
258 | \r | |
259 | ### Targets: ###\r | |
260 | \r | |
261 | all: $(OBJS)\xrcdemo.exe data\r | |
262 | \r | |
263 | clean: \r | |
264 | -if exist $(OBJS)\*.o del $(OBJS)\*.o\r | |
265 | -if exist $(OBJS)\*.d del $(OBJS)\*.d\r | |
266 | -if exist $(OBJS)\xrcdemo.exe del $(OBJS)\xrcdemo.exe\r | |
267 | \r | |
268 | $(OBJS)\xrcdemo.exe: $(XRCDEMO_OBJECTS) $(OBJS)\xrcdemo_sample_rc.o\r | |
269 | $(CXX) -o $@ $(XRCDEMO_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_RIBBON_p) $(__WXLIB_XRC_p) $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_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 | |
270 | \r | |
271 | data: \r | |
272 | if not exist $(OBJS)\rc mkdir $(OBJS)\rc\r | |
273 | for %%f in (artprov.xpm artprov.xrc basicdlg.xpm basicdlg.xrc controls.xpm controls.xrc custclas.xpm custclas.xrc derivdlg.xpm derivdlg.xrc fileopen.gif filesave.gif frame.xrc fuzzy.gif menu.xrc platform.xpm platform.xrc quotes.gif resource.xrc toolbar.xrc uncenter.xpm objref.xrc objrefdlg.xpm uncenter.xrc update.gif variable.xpm variable.xrc throbber.gif stop.xpm wxbanner.gif) do if not exist $(OBJS)\rc\%%f copy .\rc\%%f $(OBJS)\rc\r | |
274 | \r | |
275 | $(OBJS)\xrcdemo_sample_rc.o: ./../../samples/sample.rc\r | |
276 | 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 | |
277 | \r | |
278 | $(OBJS)\xrcdemo_xrcdemo.o: ./xrcdemo.cpp\r | |
279 | $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $(CPPDEPS) $<\r | |
280 | \r | |
281 | $(OBJS)\xrcdemo_myframe.o: ./myframe.cpp\r | |
282 | $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $(CPPDEPS) $<\r | |
283 | \r | |
284 | $(OBJS)\xrcdemo_derivdlg.o: ./derivdlg.cpp\r | |
285 | $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $(CPPDEPS) $<\r | |
286 | \r | |
287 | $(OBJS)\xrcdemo_custclas.o: ./custclas.cpp\r | |
288 | $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $(CPPDEPS) $<\r | |
289 | \r | |
290 | $(OBJS)\xrcdemo_objrefdlg.o: ./objrefdlg.cpp\r | |
291 | $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $(CPPDEPS) $<\r | |
292 | \r | |
293 | .PHONY: all clean data\r | |
294 | \r | |
295 | \r | |
296 | SHELL := $(COMSPEC)\r | |
297 | \r | |
298 | # Dependencies tracking:\r | |
299 | -include $(OBJS)/*.d\r |