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