]>
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 | ||
4818141b | 15 | WX_RELEASE_NODOT = 26 |
15e8daec VS |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
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) \ | |
b14abf14 | 25 | -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -W -Wall \ |
9bfe7ad9 | 26 | -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT \ |
8c9f8f91 JS |
27 | $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \ |
28 | $(CXXFLAGS) | |
15e8daec VS |
29 | PLOTDLL_OBJECTS = \ |
30 | $(OBJS)\plotdll_dummy.o \ | |
8c9f8f91 | 31 | $(OBJS)\plotdll_version_rc.o \ |
15e8daec | 32 | $(OBJS)\plotdll_plot.o |
8c9f8f91 JS |
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) \ | |
b14abf14 | 37 | -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -W -Wall \ |
8c9f8f91 | 38 | -I..\..\src\plot\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ |
b14abf14 | 39 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) |
15e8daec VS |
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 | |
15e8daec VS |
69 | ifeq ($(UNICODE),1) |
70 | WXUNICODEFLAG = u | |
71 | endif | |
72 | ifeq ($(WXUNIV),1) | |
73 | WXUNIVNAME = univ | |
74 | endif | |
b17c1746 DE |
75 | ifeq ($(SHARED),1) |
76 | WXDLLFLAG = dll | |
77 | endif | |
b14abf14 JS |
78 | ifeq ($(SHARED),0) |
79 | LIBTYPE_SUFFIX = lib | |
80 | endif | |
81 | ifeq ($(SHARED),1) | |
82 | LIBTYPE_SUFFIX = dll | |
83 | endif | |
dd65d8c8 RN |
84 | ifeq ($(MONOLITHIC),0) |
85 | EXTRALIBS_FOR_BASE = | |
86 | endif | |
87 | ifeq ($(MONOLITHIC),1) | |
88 | EXTRALIBS_FOR_BASE = | |
89 | endif | |
b17c1746 DE |
90 | ifeq ($(SHARED),1) |
91 | __plotdll___depname = \ | |
4818141b | 92 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll |
b17c1746 | 93 | endif |
8c9f8f91 JS |
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 | |
b17c1746 DE |
117 | ifeq ($(MONOLITHIC),1) |
118 | __WXLIB_MONO_p = \ | |
c33fae85 | 119 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
120 | endif |
121 | ifeq ($(USE_GUI),1) | |
9c2d002b | 122 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
123 | endif |
124 | ifeq ($(USE_GUI),1) | |
9c2d002b | 125 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
126 | endif |
127 | ifeq ($(USE_GUI),1) | |
9c2d002b | 128 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
129 | endif |
130 | ifeq ($(MSLU),1) | |
131 | __UNICOWS_LIB_p = -lunicows | |
132 | endif | |
133 | ifeq ($(MONOLITHIC),0) | |
134 | __WXLIB_CORE_p = \ | |
c33fae85 | 135 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
136 | endif |
137 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
138 | __WXLIB_BASE_p = \ |
139 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
140 | endif |
141 | ifeq ($(SHARED),0) | |
142 | __plotlib___depname = \ | |
c33fae85 | 143 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a |
b17c1746 | 144 | endif |
15e8daec VS |
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) | |
b17c1746 | 162 | __OPTIMIZEFLAG = -O0 |
15e8daec | 163 | endif |
b17c1746 DE |
164 | ifeq ($(BUILD),release) |
165 | __OPTIMIZEFLAG = -O2 | |
15e8daec | 166 | endif |
8c9f8f91 JS |
167 | ifeq ($(USE_THREADS),0) |
168 | __THREADSFLAG = | |
a4ad36cd | 169 | endif |
8c9f8f91 JS |
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 = | |
a4ad36cd VS |
178 | endif |
179 | ifeq ($(USE_EXCEPTIONS),0) | |
8c9f8f91 | 180 | __EXCEPTIONSFLAG = -fno-exceptions |
a4ad36cd VS |
181 | endif |
182 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 183 | __EXCEPTIONSFLAG = |
a4ad36cd | 184 | endif |
b17c1746 DE |
185 | ifeq ($(WXUNIV),1) |
186 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
15e8daec VS |
187 | endif |
188 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
189 | ifeq ($(DEBUG_FLAG),default) |
190 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec | 191 | endif |
b17c1746 DE |
192 | endif |
193 | ifeq ($(DEBUG_FLAG),1) | |
194 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec | 195 | endif |
8c9f8f91 JS |
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 | |
15e8daec | 205 | ifeq ($(UNICODE),1) |
ec08d395 | 206 | __UNICODE_DEFINE_p = -D_UNICODE |
15e8daec | 207 | endif |
15e8daec VS |
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 | ||
15e8daec VS |
218 | clean: |
219 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
4818141b | 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 |
c33fae85 RN |
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 | |
15e8daec VS |
223 | |
224 | ifeq ($(SHARED),1) | |
4818141b | 225 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS) $(OBJS)\plotdll_version_rc.o |
8c9f8f91 | 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) |
15e8daec VS |
227 | endif |
228 | ||
229 | ifeq ($(SHARED),0) | |
c33fae85 | 230 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a: $(PLOTLIB_OBJECTS) |
15e8daec VS |
231 | if exist $@ del $@ |
232 | ar rcu $@ $(PLOTLIB_OBJECTS) | |
233 | ranlib $@ | |
234 | endif | |
235 | ||
b17c1746 DE |
236 | $(OBJS)\plotdll_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp |
237 | $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $< | |
238 | ||
102d46f3 | 239 | $(OBJS)\plotdll_version_rc.o: ../../src/plot/../../../src/msw/version.rc |
4818141b | 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) |
8c9f8f91 | 241 | |
b17c1746 DE |
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 | ||
15e8daec | 251 | .PHONY: all clean |
b14abf14 | 252 | |
8c9f8f91 | 253 |