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