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