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