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