]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/plot/makefile.gcc
define ChangeSelection() (fixes wxMotif build)
[wxWidgets.git] / contrib / build / plot / makefile.gcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
cf9b63b3 3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
15e8daec
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
15e8daec
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4cbcfb73
VZ
16WX_RELEASE_NODOT = 27
17WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
15e8daec
VS
18OBJS = \
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 20LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
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) \
2113bc77 26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
cf9b63b3 27 -I$(SETUPHDIR) -I..\..\src\plot\..\..\..\include -W -Wall \
9bfe7ad9 28 -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT \
8c9f8f91
JS
29 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
30 $(CXXFLAGS)
15e8daec
VS
31PLOTDLL_OBJECTS = \
32 $(OBJS)\plotdll_dummy.o \
8c9f8f91 33 $(OBJS)\plotdll_version_rc.o \
15e8daec 34 $(OBJS)\plotdll_plot.o
8c9f8f91
JS
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) \
2113bc77 38 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
cf9b63b3 39 -I$(SETUPHDIR) -I..\..\src\plot\..\..\..\include -W -Wall \
8c9f8f91 40 -I..\..\src\plot\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
b14abf14 41 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
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
15e8daec
VS
71ifeq ($(UNICODE),1)
72WXUNICODEFLAG = u
73endif
74ifeq ($(WXUNIV),1)
75WXUNIVNAME = univ
76endif
b17c1746
DE
77ifeq ($(SHARED),1)
78WXDLLFLAG = dll
79endif
b14abf14
JS
80ifeq ($(SHARED),0)
81LIBTYPE_SUFFIX = lib
82endif
83ifeq ($(SHARED),1)
84LIBTYPE_SUFFIX = dll
85endif
dd65d8c8
RN
86ifeq ($(MONOLITHIC),0)
87EXTRALIBS_FOR_BASE =
88endif
89ifeq ($(MONOLITHIC),1)
90EXTRALIBS_FOR_BASE =
91endif
b17c1746
DE
92ifeq ($(SHARED),1)
93__plotdll___depname = \
4cbcfb73 94 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll
b17c1746 95endif
8c9f8f91
JS
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
2113bc77
MW
119ifeq ($(MSLU),1)
120__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
121endif
b17c1746
DE
122ifeq ($(MONOLITHIC),1)
123__WXLIB_MONO_p = \
c33fae85 124 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
125endif
126ifeq ($(USE_GUI),1)
9c2d002b 127__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
128endif
129ifeq ($(USE_GUI),1)
9c2d002b 130__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
131endif
132ifeq ($(USE_GUI),1)
9c2d002b 133__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
134endif
135ifeq ($(MSLU),1)
136__UNICOWS_LIB_p = -lunicows
137endif
138ifeq ($(MONOLITHIC),0)
139__WXLIB_CORE_p = \
c33fae85 140 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
141endif
142ifeq ($(MONOLITHIC),0)
c33fae85
RN
143__WXLIB_BASE_p = \
144 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
145endif
146ifeq ($(SHARED),0)
147__plotlib___depname = \
c33fae85 148 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a
b17c1746 149endif
15e8daec
VS
150ifeq ($(BUILD),debug)
151ifeq ($(DEBUG_INFO),default)
152__DEBUGINFO = -g
153endif
154endif
155ifeq ($(BUILD),release)
156ifeq ($(DEBUG_INFO),default)
157__DEBUGINFO =
158endif
159endif
160ifeq ($(DEBUG_INFO),0)
161__DEBUGINFO =
162endif
163ifeq ($(DEBUG_INFO),1)
164__DEBUGINFO = -g
165endif
166ifeq ($(BUILD),debug)
b17c1746 167__OPTIMIZEFLAG = -O0
15e8daec 168endif
b17c1746
DE
169ifeq ($(BUILD),release)
170__OPTIMIZEFLAG = -O2
15e8daec 171endif
8c9f8f91
JS
172ifeq ($(USE_THREADS),0)
173__THREADSFLAG =
a4ad36cd 174endif
8c9f8f91
JS
175ifeq ($(USE_THREADS),1)
176__THREADSFLAG = -mthreads
177endif
178ifeq ($(USE_RTTI),0)
179__RTTIFLAG = -fno-rtti
180endif
181ifeq ($(USE_RTTI),1)
182__RTTIFLAG =
a4ad36cd
VS
183endif
184ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 185__EXCEPTIONSFLAG = -fno-exceptions
a4ad36cd
VS
186endif
187ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 188__EXCEPTIONSFLAG =
a4ad36cd 189endif
b17c1746
DE
190ifeq ($(WXUNIV),1)
191__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
15e8daec
VS
192endif
193ifeq ($(BUILD),debug)
b17c1746
DE
194ifeq ($(DEBUG_FLAG),default)
195__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 196endif
b17c1746
DE
197endif
198ifeq ($(DEBUG_FLAG),1)
199__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 200endif
8c9f8f91
JS
201ifeq ($(USE_EXCEPTIONS),0)
202__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
203endif
204ifeq ($(USE_RTTI),0)
205__RTTI_DEFINE_p = -DwxNO_RTTI
206endif
207ifeq ($(USE_THREADS),0)
208__THREAD_DEFINE_p = -DwxNO_THREADS
209endif
15e8daec 210ifeq ($(UNICODE),1)
ec08d395 211__UNICODE_DEFINE_p = -D_UNICODE
15e8daec 212endif
2113bc77
MW
213ifeq ($(MSLU),1)
214__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
215endif
15e8daec
VS
216
217
218all: $(OBJS)
219$(OBJS):
220 -if not exist $(OBJS) mkdir $(OBJS)
221
222### Targets: ###
223
224all: $(__plotdll___depname) $(__plotlib___depname)
225
15e8daec
VS
226clean:
227 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 228 -if exist $(OBJS)\*.d del $(OBJS)\*.d
4cbcfb73 229 -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
c33fae85
RN
230 -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
231 -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
15e8daec
VS
232
233ifeq ($(SHARED),1)
4cbcfb73 234$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS) $(OBJS)\plotdll_version_rc.o
66b9f7f7 235 $(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)
15e8daec
VS
236endif
237
238ifeq ($(SHARED),0)
c33fae85 239$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a: $(PLOTLIB_OBJECTS)
15e8daec
VS
240 if exist $@ del $@
241 ar rcu $@ $(PLOTLIB_OBJECTS)
242 ranlib $@
243endif
244
66b9f7f7 245$(OBJS)\plotdll_dummy.o: ../../src/plot/../../../src/common/dummy.cpp
0d90d6ea 246 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $(CPPDEPS) $<
b17c1746 247
102d46f3 248$(OBJS)\plotdll_version_rc.o: ../../src/plot/../../../src/msw/version.rc
cf9b63b3 249 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) --include-dir $(SETUPHDIR) --include-dir ../../src/plot/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG)
8c9f8f91 250
b17c1746 251$(OBJS)\plotdll_plot.o: ../../src/plot/plot.cpp
0d90d6ea 252 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $(CPPDEPS) $<
b17c1746 253
66b9f7f7 254$(OBJS)\plotlib_dummy.o: ../../src/plot/../../../src/common/dummy.cpp
0d90d6ea 255 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
256
257$(OBJS)\plotlib_plot.o: ../../src/plot/plot.cpp
0d90d6ea 258 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $(CPPDEPS) $<
b17c1746 259
15e8daec 260.PHONY: all clean
b14abf14 261
8c9f8f91 262
0d90d6ea
JS
263# Dependencies tracking:
264-include $(OBJS)/*.d