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