]>
Commit | Line | Data |
---|---|---|
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 | 7 | include ../../../build/msw/config.gcc |
15e8daec VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
8c9f8f91 | 16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5 |
15e8daec VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
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) \ | |
b14abf14 | 26 | -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -W -Wall \ |
9bfe7ad9 | 27 | -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT \ |
8c9f8f91 JS |
28 | $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \ |
29 | $(CXXFLAGS) | |
15e8daec VS |
30 | PLOTDLL_OBJECTS = \ |
31 | $(OBJS)\plotdll_dummy.o \ | |
8c9f8f91 | 32 | $(OBJS)\plotdll_version_rc.o \ |
15e8daec | 33 | $(OBJS)\plotdll_plot.o |
8c9f8f91 JS |
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) \ | |
b14abf14 | 38 | -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -W -Wall \ |
8c9f8f91 | 39 | -I..\..\src\plot\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ |
b14abf14 | 40 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) |
15e8daec VS |
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 | |
15e8daec VS |
70 | ifeq ($(UNICODE),1) |
71 | WXUNICODEFLAG = u | |
72 | endif | |
73 | ifeq ($(WXUNIV),1) | |
74 | WXUNIVNAME = univ | |
75 | endif | |
b17c1746 DE |
76 | ifeq ($(SHARED),1) |
77 | WXDLLFLAG = dll | |
78 | endif | |
b14abf14 JS |
79 | ifeq ($(SHARED),0) |
80 | LIBTYPE_SUFFIX = lib | |
81 | endif | |
82 | ifeq ($(SHARED),1) | |
83 | LIBTYPE_SUFFIX = dll | |
84 | endif | |
dd65d8c8 RN |
85 | ifeq ($(MONOLITHIC),0) |
86 | EXTRALIBS_FOR_BASE = | |
87 | endif | |
88 | ifeq ($(MONOLITHIC),1) | |
89 | EXTRALIBS_FOR_BASE = | |
90 | endif | |
b17c1746 DE |
91 | ifeq ($(SHARED),1) |
92 | __plotdll___depname = \ | |
c33fae85 | 93 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll |
b17c1746 | 94 | endif |
8c9f8f91 JS |
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 | |
b17c1746 DE |
118 | ifeq ($(MONOLITHIC),1) |
119 | __WXLIB_MONO_p = \ | |
c33fae85 | 120 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
121 | endif |
122 | ifeq ($(USE_GUI),1) | |
9c2d002b | 123 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
124 | endif |
125 | ifeq ($(USE_GUI),1) | |
9c2d002b | 126 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
127 | endif |
128 | ifeq ($(USE_GUI),1) | |
9c2d002b | 129 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
130 | endif |
131 | ifeq ($(MSLU),1) | |
132 | __UNICOWS_LIB_p = -lunicows | |
133 | endif | |
134 | ifeq ($(MONOLITHIC),0) | |
135 | __WXLIB_CORE_p = \ | |
c33fae85 | 136 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
137 | endif |
138 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
139 | __WXLIB_BASE_p = \ |
140 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
141 | endif |
142 | ifeq ($(SHARED),0) | |
143 | __plotlib___depname = \ | |
c33fae85 | 144 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a |
b17c1746 | 145 | endif |
15e8daec VS |
146 | ifeq ($(BUILD),debug) |
147 | ifeq ($(DEBUG_INFO),default) | |
148 | __DEBUGINFO = -g | |
149 | endif | |
150 | endif | |
151 | ifeq ($(BUILD),release) | |
152 | ifeq ($(DEBUG_INFO),default) | |
153 | __DEBUGINFO = | |
154 | endif | |
155 | endif | |
156 | ifeq ($(DEBUG_INFO),0) | |
157 | __DEBUGINFO = | |
158 | endif | |
159 | ifeq ($(DEBUG_INFO),1) | |
160 | __DEBUGINFO = -g | |
161 | endif | |
162 | ifeq ($(BUILD),debug) | |
b17c1746 | 163 | __OPTIMIZEFLAG = -O0 |
15e8daec | 164 | endif |
b17c1746 DE |
165 | ifeq ($(BUILD),release) |
166 | __OPTIMIZEFLAG = -O2 | |
15e8daec | 167 | endif |
8c9f8f91 JS |
168 | ifeq ($(USE_THREADS),0) |
169 | __THREADSFLAG = | |
a4ad36cd | 170 | endif |
8c9f8f91 JS |
171 | ifeq ($(USE_THREADS),1) |
172 | __THREADSFLAG = -mthreads | |
173 | endif | |
174 | ifeq ($(USE_RTTI),0) | |
175 | __RTTIFLAG = -fno-rtti | |
176 | endif | |
177 | ifeq ($(USE_RTTI),1) | |
178 | __RTTIFLAG = | |
a4ad36cd VS |
179 | endif |
180 | ifeq ($(USE_EXCEPTIONS),0) | |
8c9f8f91 | 181 | __EXCEPTIONSFLAG = -fno-exceptions |
a4ad36cd VS |
182 | endif |
183 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 184 | __EXCEPTIONSFLAG = |
a4ad36cd | 185 | endif |
b17c1746 DE |
186 | ifeq ($(WXUNIV),1) |
187 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
15e8daec VS |
188 | endif |
189 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
190 | ifeq ($(DEBUG_FLAG),default) |
191 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec | 192 | endif |
b17c1746 DE |
193 | endif |
194 | ifeq ($(DEBUG_FLAG),1) | |
195 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec | 196 | endif |
8c9f8f91 JS |
197 | ifeq ($(USE_EXCEPTIONS),0) |
198 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
199 | endif | |
200 | ifeq ($(USE_RTTI),0) | |
201 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
202 | endif | |
203 | ifeq ($(USE_THREADS),0) | |
204 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
205 | endif | |
15e8daec | 206 | ifeq ($(UNICODE),1) |
ec08d395 | 207 | __UNICODE_DEFINE_p = -D_UNICODE |
15e8daec | 208 | endif |
15e8daec VS |
209 | |
210 | ||
211 | all: $(OBJS) | |
212 | $(OBJS): | |
213 | -if not exist $(OBJS) mkdir $(OBJS) | |
214 | ||
215 | ### Targets: ### | |
216 | ||
217 | all: $(__plotdll___depname) $(__plotlib___depname) | |
218 | ||
15e8daec VS |
219 | clean: |
220 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c33fae85 RN |
221 | -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 |
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 | -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 |
224 | |
225 | ifeq ($(SHARED),1) | |
8c9f8f91 JS |
226 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS) $(OBJS)\plotdll_version_rc.o |
227 | $(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 |
228 | endif |
229 | ||
230 | ifeq ($(SHARED),0) | |
c33fae85 | 231 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a: $(PLOTLIB_OBJECTS) |
15e8daec VS |
232 | if exist $@ del $@ |
233 | ar rcu $@ $(PLOTLIB_OBJECTS) | |
234 | ranlib $@ | |
235 | endif | |
236 | ||
b17c1746 DE |
237 | $(OBJS)\plotdll_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp |
238 | $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $< | |
239 | ||
102d46f3 | 240 | $(OBJS)\plotdll_version_rc.o: ../../src/plot/../../../src/msw/version.rc |
8c9f8f91 JS |
241 | 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_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG) |
242 | ||
b17c1746 DE |
243 | $(OBJS)\plotdll_plot.o: ../../src/plot/plot.cpp |
244 | $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $< | |
245 | ||
246 | $(OBJS)\plotlib_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp | |
247 | $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $< | |
248 | ||
249 | $(OBJS)\plotlib_plot.o: ../../src/plot/plot.cpp | |
250 | $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $< | |
251 | ||
15e8daec | 252 | .PHONY: all clean |
b14abf14 | 253 | |
8c9f8f91 | 254 |