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