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