]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/plot/makefile.gcc
remove unneeded WXDLLEXPORTs for the classes only used inside the implementation...
[wxWidgets.git] / contrib / build / plot / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD
16WX_RELEASE_NODOT = 27
17WX_VERSION_NODOT = $(WX_RELEASE_NODOT)1
18OBJS = \
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23PLOTDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\plot\..\..\..\include -W \
28 -Wall -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT \
29 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
30 $(CXXFLAGS)
31PLOTDLL_OBJECTS = \
32 $(OBJS)\plotdll_dummy.o \
33 $(OBJS)\plotdll_version_rc.o \
34 $(OBJS)\plotdll_plot.o
35PLOTLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
36 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
37 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
38 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
39 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\plot\..\..\..\include -W \
40 -Wall -I..\..\src\plot\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
41 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
42PLOTLIB_OBJECTS = \
43 $(OBJS)\plotlib_dummy.o \
44 $(OBJS)\plotlib_plot.o
45
46### Conditionally set variables: ###
47
48ifeq ($(GCC_VERSION),2.95)
49GCCFLAGS = -fvtable-thunks
50endif
51ifeq ($(USE_GUI),0)
52PORTNAME = base
53endif
54ifeq ($(USE_GUI),1)
55PORTNAME = msw
56endif
57ifeq ($(OFFICIAL_BUILD),0)
58VENDORTAG = _$(VENDOR)
59endif
60ifeq ($(OFFICIAL_BUILD),1)
61VENDORTAG =
62endif
63ifeq ($(BUILD),debug)
64ifeq ($(DEBUG_FLAG),default)
65WXDEBUGFLAG = d
66endif
67endif
68ifeq ($(DEBUG_FLAG),1)
69WXDEBUGFLAG = d
70endif
71ifeq ($(UNICODE),1)
72WXUNICODEFLAG = u
73endif
74ifeq ($(WXUNIV),1)
75WXUNIVNAME = univ
76endif
77ifeq ($(SHARED),1)
78WXDLLFLAG = dll
79endif
80ifeq ($(SHARED),0)
81LIBTYPE_SUFFIX = lib
82endif
83ifeq ($(SHARED),1)
84LIBTYPE_SUFFIX = dll
85endif
86ifeq ($(MONOLITHIC),0)
87EXTRALIBS_FOR_BASE =
88endif
89ifeq ($(MONOLITHIC),1)
90EXTRALIBS_FOR_BASE =
91endif
92ifeq ($(SHARED),1)
93__plotdll___depname = \
94 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll
95endif
96ifeq ($(WXUNIV),1)
97__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
98endif
99ifeq ($(BUILD),debug)
100ifeq ($(DEBUG_FLAG),default)
101__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
102endif
103endif
104ifeq ($(DEBUG_FLAG),1)
105__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
106endif
107ifeq ($(USE_EXCEPTIONS),0)
108__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
109endif
110ifeq ($(USE_RTTI),0)
111__RTTI_DEFINE_p_1 = --define wxNO_RTTI
112endif
113ifeq ($(USE_THREADS),0)
114__THREAD_DEFINE_p_1 = --define wxNO_THREADS
115endif
116ifeq ($(UNICODE),1)
117__UNICODE_DEFINE_p_1 = --define _UNICODE
118endif
119ifeq ($(MSLU),1)
120__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
121endif
122ifeq ($(USE_GDIPLUS),1)
123__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
124endif
125ifeq ($(MONOLITHIC),1)
126__WXLIB_MONO_p = \
127 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
128endif
129ifeq ($(USE_GUI),1)
130__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
131endif
132ifeq ($(USE_GUI),1)
133__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
134endif
135ifeq ($(USE_GUI),1)
136__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
137endif
138ifeq ($(MSLU),1)
139__UNICOWS_LIB_p = -lunicows
140endif
141ifeq ($(USE_GDIPLUS),1)
142__GDIPLUS_LIB_p = -lgdiplus
143endif
144ifeq ($(MONOLITHIC),0)
145__WXLIB_CORE_p = \
146 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
147endif
148ifeq ($(MONOLITHIC),0)
149__WXLIB_BASE_p = \
150 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
151endif
152ifeq ($(SHARED),0)
153__plotlib___depname = \
154 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a
155endif
156ifeq ($(BUILD),debug)
157ifeq ($(DEBUG_INFO),default)
158__DEBUGINFO = -g
159endif
160endif
161ifeq ($(BUILD),release)
162ifeq ($(DEBUG_INFO),default)
163__DEBUGINFO =
164endif
165endif
166ifeq ($(DEBUG_INFO),0)
167__DEBUGINFO =
168endif
169ifeq ($(DEBUG_INFO),1)
170__DEBUGINFO = -g
171endif
172ifeq ($(BUILD),debug)
173__OPTIMIZEFLAG = -O0
174endif
175ifeq ($(BUILD),release)
176__OPTIMIZEFLAG = -O2
177endif
178ifeq ($(USE_THREADS),0)
179__THREADSFLAG =
180endif
181ifeq ($(USE_THREADS),1)
182__THREADSFLAG = -mthreads
183endif
184ifeq ($(USE_RTTI),0)
185__RTTIFLAG = -fno-rtti
186endif
187ifeq ($(USE_RTTI),1)
188__RTTIFLAG =
189endif
190ifeq ($(USE_EXCEPTIONS),0)
191__EXCEPTIONSFLAG = -fno-exceptions
192endif
193ifeq ($(USE_EXCEPTIONS),1)
194__EXCEPTIONSFLAG =
195endif
196ifeq ($(WXUNIV),1)
197__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
198endif
199ifeq ($(BUILD),debug)
200ifeq ($(DEBUG_FLAG),default)
201__DEBUG_DEFINE_p = -D__WXDEBUG__
202endif
203endif
204ifeq ($(DEBUG_FLAG),1)
205__DEBUG_DEFINE_p = -D__WXDEBUG__
206endif
207ifeq ($(USE_EXCEPTIONS),0)
208__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
209endif
210ifeq ($(USE_RTTI),0)
211__RTTI_DEFINE_p = -DwxNO_RTTI
212endif
213ifeq ($(USE_THREADS),0)
214__THREAD_DEFINE_p = -DwxNO_THREADS
215endif
216ifeq ($(UNICODE),1)
217__UNICODE_DEFINE_p = -D_UNICODE
218endif
219ifeq ($(MSLU),1)
220__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
221endif
222ifeq ($(USE_GDIPLUS),1)
223__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
224endif
225
226
227all: $(OBJS)
228$(OBJS):
229 -if not exist $(OBJS) mkdir $(OBJS)
230
231### Targets: ###
232
233all: $(__plotdll___depname) $(__plotlib___depname)
234
235clean:
236 -if exist $(OBJS)\*.o del $(OBJS)\*.o
237 -if exist $(OBJS)\*.d del $(OBJS)\*.d
238 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll
239 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a
240 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a
241
242ifeq ($(SHARED),1)
243$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS) $(OBJS)\plotdll_version_rc.o
244 $(CXX) -shared -fPIC -o $@ $(PLOTDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
245endif
246
247ifeq ($(SHARED),0)
248$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a: $(PLOTLIB_OBJECTS)
249 if exist $@ del $@
250 ar rcu $@ $(PLOTLIB_OBJECTS)
251 ranlib $@
252endif
253
254$(OBJS)\plotdll_dummy.o: ../../src/plot/../../../src/common/dummy.cpp
255 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $(CPPDEPS) $<
256
257$(OBJS)\plotdll_version_rc.o: ../../src/plot/../../../src/msw/version.rc
258 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ../../src/plot/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG)
259
260$(OBJS)\plotdll_plot.o: ../../src/plot/plot.cpp
261 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $(CPPDEPS) $<
262
263$(OBJS)\plotlib_dummy.o: ../../src/plot/../../../src/common/dummy.cpp
264 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $(CPPDEPS) $<
265
266$(OBJS)\plotlib_plot.o: ../../src/plot/plot.cpp
267 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $(CPPDEPS) $<
268
269.PHONY: all clean
270
271
272# Dependencies tracking:
273-include $(OBJS)/*.d