]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/xrc/makefile.gcc
Line endings fixes in bakefile-generated files.
[wxWidgets.git] / samples / xrc / makefile.gcc
... / ...
CommitLineData
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
7include ../../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
15CPPDEPS = -MT$@ -MF$@.d -MD -MP\r
16WX_RELEASE_NODOT = 29\r
17COMPILER_PREFIX = gcc\r
18OBJS = \\r
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
20LIBDIRNAME = \\r
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24XRCDEMO_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)
32XRCDEMO_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
42ifeq ($(TOOLKIT),GTK)
43WIN32_TOOLKIT_LOWERCASE = gtk
44endif
45ifeq ($(TOOLKIT),MSW)
46WIN32_TOOLKIT_LOWERCASE = msw
47endif
48ifeq ($(GCC_VERSION),2.95)\r
49GCCFLAGS = -fvtable-thunks\r
50endif\r
51ifeq ($(USE_GUI),0)\r
52PORTNAME = base\r
53endif\r
54ifeq ($(USE_GUI),1)\r
55PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
56endif
57ifeq ($(TOOLKIT),MAC)
58WXBASEPORT = _carbon
59endif\r
60ifeq ($(OFFICIAL_BUILD),1)\r
61COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r
62endif\r
63ifeq ($(BUILD),debug)\r
64WXDEBUGFLAG = d\r
65endif\r
66ifeq ($(UNICODE),1)\r
67WXUNICODEFLAG = u\r
68endif\r
69ifeq ($(WXUNIV),1)\r
70WXUNIVNAME = univ\r
71endif\r
72ifeq ($(SHARED),1)\r
73WXDLLFLAG = dll\r
74endif\r
75ifeq ($(SHARED),0)\r
76LIBTYPE_SUFFIX = lib\r
77endif\r
78ifeq ($(SHARED),1)\r
79LIBTYPE_SUFFIX = dll\r
80endif\r
81ifeq ($(MONOLITHIC),0)\r
82EXTRALIBS_FOR_BASE = \r
83endif\r
84ifeq ($(MONOLITHIC),1)\r
85EXTRALIBS_FOR_BASE = \r
86endif\r
87ifeq ($(TOOLKIT),GTK)
88CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
89endif
90ifeq ($(TOOLKIT),GTK)
91ifeq ($(TOOLKIT_VERSION),2)
92LIB_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
95endif
96endif
97ifeq ($(BUILD),debug)\r
98__OPTIMIZEFLAG_2 = -O0\r
99endif\r
100ifeq ($(BUILD),release)\r
101__OPTIMIZEFLAG_2 = -O2\r
102endif\r
103ifeq ($(USE_RTTI),0)\r
104__RTTIFLAG_5 = -fno-rtti\r
105endif\r
106ifeq ($(USE_RTTI),1)\r
107__RTTIFLAG_5 = \r
108endif\r
109ifeq ($(USE_EXCEPTIONS),0)\r
110__EXCEPTIONSFLAG_6 = -fno-exceptions\r
111endif\r
112ifeq ($(USE_EXCEPTIONS),1)\r
113__EXCEPTIONSFLAG_6 = \r
114endif\r
115ifeq ($(WXUNIV),1)\r
116__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
117endif\r
118ifeq ($(WXUNIV),1)\r
119__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
120endif\r
121ifeq ($(DEBUG_FLAG),0)\r
122__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
123endif\r
124ifeq ($(DEBUG_FLAG),0)\r
125__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
126endif\r
127ifeq ($(BUILD),release)\r
128__NDEBUG_DEFINE_p = -DNDEBUG\r
129endif\r
130ifeq ($(BUILD),release)\r
131__NDEBUG_DEFINE_p_1 = --define NDEBUG\r
132endif\r
133ifeq ($(USE_EXCEPTIONS),0)\r
134__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
135endif\r
136ifeq ($(USE_EXCEPTIONS),0)\r
137__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
138endif\r
139ifeq ($(USE_RTTI),0)\r
140__RTTI_DEFINE_p = -DwxNO_RTTI\r
141endif\r
142ifeq ($(USE_RTTI),0)\r
143__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
144endif\r
145ifeq ($(USE_THREADS),0)\r
146__THREAD_DEFINE_p = -DwxNO_THREADS\r
147endif\r
148ifeq ($(USE_THREADS),0)\r
149__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
150endif\r
151ifeq ($(UNICODE),0)\r
152__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
153endif\r
154ifeq ($(UNICODE),1)\r
155__UNICODE_DEFINE_p = -D_UNICODE\r
156endif\r
157ifeq ($(UNICODE),0)\r
158__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
159endif\r
160ifeq ($(UNICODE),1)\r
161__UNICODE_DEFINE_p_1 = --define _UNICODE\r
162endif\r
163ifeq ($(MSLU),1)\r
164__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
165endif\r
166ifeq ($(MSLU),1)\r
167__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
168endif\r
169ifeq ($(USE_CAIRO),1)\r
170____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
171endif\r
172ifeq ($(USE_CAIRO),1)\r
173__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
174endif\r
175ifeq ($(SHARED),1)\r
176__DLLFLAG_p = -DWXUSINGDLL\r
177endif\r
178ifeq ($(SHARED),1)\r
179__DLLFLAG_p_1 = --define WXUSINGDLL\r
180endif\r
181ifeq ($(MONOLITHIC),0)\r
182__WXLIB_RIBBON_p = \\r
183 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ribbon\r
184endif\r
185ifeq ($(MONOLITHIC),0)\r
186__WXLIB_XRC_p = \\r
187 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xrc\r
188endif\r
189ifeq ($(MONOLITHIC),0)\r
190__WXLIB_HTML_p = \\r
191 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html\r
192endif\r
193ifeq ($(MONOLITHIC),0)\r
194__WXLIB_ADV_p = \\r
195 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv\r
196endif\r
197ifeq ($(MONOLITHIC),0)\r
198__WXLIB_CORE_p = \\r
199 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
200endif\r
201ifeq ($(MONOLITHIC),0)\r
202__WXLIB_XML_p = \\r
203 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
204endif\r
205ifeq ($(MONOLITHIC),0)\r
206__WXLIB_BASE_p = \\r
207 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
208endif\r
209ifeq ($(MONOLITHIC),1)\r
210__WXLIB_MONO_p = \\r
211 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
212endif\r
213ifeq ($(USE_GUI),1)\r
214__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
215endif\r
216ifeq ($(USE_GUI),1)\r
217__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
218endif\r
219ifeq ($(USE_GUI),1)\r
220__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
221endif\r
222ifeq ($(MSLU),1)\r
223__UNICOWS_LIB_p = -lunicows\r
224endif\r
225ifeq ($(USE_CAIRO),1)\r
226__CAIRO_LIB_p = -lcairo\r
227endif\r
228ifeq ($(USE_CAIRO),1)\r
229____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
230endif\r
231ifeq ($(BUILD),debug)\r
232ifeq ($(DEBUG_INFO),default)\r
233__DEBUGINFO = -g\r
234endif\r
235endif\r
236ifeq ($(BUILD),release)\r
237ifeq ($(DEBUG_INFO),default)\r
238__DEBUGINFO = \r
239endif\r
240endif\r
241ifeq ($(DEBUG_INFO),0)\r
242__DEBUGINFO = \r
243endif\r
244ifeq ($(DEBUG_INFO),1)\r
245__DEBUGINFO = -g\r
246endif\r
247ifeq ($(USE_THREADS),0)\r
248__THREADSFLAG = \r
249endif\r
250ifeq ($(USE_THREADS),1)\r
251__THREADSFLAG = -mthreads\r
252endif\r
253\r
254\r
255all: $(OBJS)\r
256$(OBJS):\r
257 -if not exist $(OBJS) mkdir $(OBJS)\r
258\r
259### Targets: ###\r
260\r
261all: $(OBJS)\xrcdemo.exe data\r
262\r
263clean: \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
271data: \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
296SHELL := $(COMSPEC)\r
297\r
298# Dependencies tracking:\r
299-include $(OBJS)/*.d\r