]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/plot/makefile.gcc
Sample update - wxTE_AUTO_URL from Mart R. [patch 1126182]
[wxWidgets.git] / contrib / build / plot / makefile.gcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
b14abf14 3# Bakefile 0.1.6 (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
c33fae85 15WX_RELEASE_NODOT = 25
b14abf14 16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4
15e8daec
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
22PLOTDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
23 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
b14abf14 24 -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -W -Wall \
9bfe7ad9 25 -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT \
b14abf14
JS
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
27 $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
28PLOTDLL_OBJECTS = \
29 $(OBJS)\plotdll_dummy.o \
30 $(OBJS)\plotdll_plot.o
9bfe7ad9
VS
31PLOTLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
32 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
b14abf14 33 -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -W -Wall \
9bfe7ad9 34 -I..\..\src\plot\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
b14abf14 35 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
36PLOTLIB_OBJECTS = \
37 $(OBJS)\plotlib_dummy.o \
38 $(OBJS)\plotlib_plot.o
39
40### Conditionally set variables: ###
41
42ifeq ($(GCC_VERSION),2.95)
43GCCFLAGS = -fvtable-thunks
44endif
45ifeq ($(USE_GUI),0)
46PORTNAME = base
47endif
48ifeq ($(USE_GUI),1)
49PORTNAME = msw
50endif
51ifeq ($(OFFICIAL_BUILD),0)
52VENDORTAG = _$(VENDOR)
53endif
54ifeq ($(OFFICIAL_BUILD),1)
55VENDORTAG =
56endif
57ifeq ($(BUILD),debug)
58ifeq ($(DEBUG_FLAG),default)
59WXDEBUGFLAG = d
60endif
61endif
62ifeq ($(DEBUG_FLAG),1)
63WXDEBUGFLAG = d
64endif
15e8daec
VS
65ifeq ($(UNICODE),1)
66WXUNICODEFLAG = u
67endif
68ifeq ($(WXUNIV),1)
69WXUNIVNAME = univ
70endif
b17c1746
DE
71ifeq ($(SHARED),1)
72WXDLLFLAG = dll
73endif
b14abf14
JS
74ifeq ($(SHARED),0)
75LIBTYPE_SUFFIX = lib
76endif
77ifeq ($(SHARED),1)
78LIBTYPE_SUFFIX = dll
79endif
dd65d8c8
RN
80ifeq ($(MONOLITHIC),0)
81EXTRALIBS_FOR_BASE =
82endif
83ifeq ($(MONOLITHIC),1)
84EXTRALIBS_FOR_BASE =
85endif
b17c1746
DE
86ifeq ($(SHARED),1)
87__plotdll___depname = \
c33fae85 88 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll
b17c1746
DE
89endif
90ifeq ($(MONOLITHIC),1)
91__WXLIB_MONO_p = \
c33fae85 92 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
93endif
94ifeq ($(USE_GUI),1)
9c2d002b 95__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
96endif
97ifeq ($(USE_GUI),1)
9c2d002b 98__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
99endif
100ifeq ($(USE_GUI),1)
9c2d002b 101__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
102endif
103ifeq ($(MSLU),1)
104__UNICOWS_LIB_p = -lunicows
105endif
106ifeq ($(MONOLITHIC),0)
107__WXLIB_CORE_p = \
c33fae85 108 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
109endif
110ifeq ($(MONOLITHIC),0)
c33fae85
RN
111__WXLIB_BASE_p = \
112 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
113endif
114ifeq ($(SHARED),0)
115__plotlib___depname = \
c33fae85 116 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a
b17c1746 117endif
15e8daec
VS
118ifeq ($(BUILD),debug)
119ifeq ($(DEBUG_INFO),default)
120__DEBUGINFO = -g
121endif
122endif
123ifeq ($(BUILD),release)
124ifeq ($(DEBUG_INFO),default)
125__DEBUGINFO =
126endif
127endif
128ifeq ($(DEBUG_INFO),0)
129__DEBUGINFO =
130endif
131ifeq ($(DEBUG_INFO),1)
132__DEBUGINFO = -g
133endif
134ifeq ($(BUILD),debug)
b17c1746 135__OPTIMIZEFLAG = -O0
15e8daec 136endif
b17c1746
DE
137ifeq ($(BUILD),release)
138__OPTIMIZEFLAG = -O2
15e8daec 139endif
a4ad36cd
VS
140ifeq ($(USE_EXCEPTIONS),0)
141__EXCEPTIONSFLAG = -fno-rtti
142endif
143ifeq ($(USE_EXCEPTIONS),1)
144__EXCEPTIONSFLAG =
145endif
146ifeq ($(USE_EXCEPTIONS),0)
147__EXCEPTIONSFLAG_0 = -fno-exceptions
148endif
149ifeq ($(USE_EXCEPTIONS),1)
150__EXCEPTIONSFLAG_0 =
151endif
b17c1746
DE
152ifeq ($(WXUNIV),1)
153__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
15e8daec
VS
154endif
155ifeq ($(BUILD),debug)
b17c1746
DE
156ifeq ($(DEBUG_FLAG),default)
157__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 158endif
b17c1746
DE
159endif
160ifeq ($(DEBUG_FLAG),1)
161__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec
VS
162endif
163ifeq ($(UNICODE),1)
ec08d395 164__UNICODE_DEFINE_p = -D_UNICODE
15e8daec 165endif
15e8daec
VS
166
167
168all: $(OBJS)
169$(OBJS):
170 -if not exist $(OBJS) mkdir $(OBJS)
171
172### Targets: ###
173
174all: $(__plotdll___depname) $(__plotlib___depname)
175
15e8daec
VS
176clean:
177 -if exist $(OBJS)\*.o del $(OBJS)\*.o
c33fae85
RN
178 -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
179 -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
180 -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
181
182ifeq ($(SHARED),1)
c33fae85 183$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS)
b14abf14 184 $(CXX) -shared -fPIC -o $@ $(PLOTDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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
185endif
186
187ifeq ($(SHARED),0)
c33fae85 188$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a: $(PLOTLIB_OBJECTS)
15e8daec
VS
189 if exist $@ del $@
190 ar rcu $@ $(PLOTLIB_OBJECTS)
191 ranlib $@
192endif
193
b17c1746
DE
194$(OBJS)\plotdll_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp
195 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $<
196
197$(OBJS)\plotdll_plot.o: ../../src/plot/plot.cpp
198 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $<
199
200$(OBJS)\plotlib_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp
201 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $<
202
203$(OBJS)\plotlib_plot.o: ../../src/plot/plot.cpp
204 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $<
205
15e8daec 206.PHONY: all clean
b14abf14 207