dec_number 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/dec_number-0.2.0.gem +0 -0
- data/dec_number.gemspec +1 -1
- data/ext/dec_number/bench.rb +8 -8
- data/ext/dec_number/decNumber/Makefile +680 -0
- data/ext/dec_number/decNumber/config.h +143 -0
- data/ext/dec_number/decNumber/config.log +1019 -0
- data/ext/dec_number/decNumber/config.status +2049 -0
- data/ext/dec_number/decNumber/decContext.lo +12 -0
- data/ext/dec_number/decNumber/decContext.o +0 -0
- data/ext/dec_number/decNumber/decNumber.lo +12 -0
- data/ext/dec_number/decNumber/decNumber.o +0 -0
- data/ext/dec_number/decNumber/libdecContext.la +41 -0
- data/ext/dec_number/decNumber/libdecNumber.a +0 -0
- data/ext/dec_number/decNumber/libdecNumber.la +41 -0
- data/ext/dec_number/decNumber/libtool +9239 -0
- data/ext/dec_number/decNumber/stamp-h1 +1 -0
- data/ext/dec_number/dec_number.c +14 -14
- data/ext/dec_number/extconf.rb +8 -2
- metadata +16 -4
Binary file
|
data/dec_number.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s| # -*-ruby-*-
|
2
2
|
s.name = "dec_number"
|
3
|
-
s.version = '0.2.
|
3
|
+
s.version = '0.2.1'
|
4
4
|
s.authors = ["Paris Sinclair"]
|
5
5
|
s.email = ["paris@rubypanther.com"]
|
6
6
|
s.summary = "ICU-decNumber wrapper for arbitrary precision math with context objects"
|
data/ext/dec_number/bench.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require 'decimal'
|
2
|
+
#require 'decimal'
|
3
3
|
require 'bigdecimal'
|
4
4
|
require 'dec_number'
|
5
5
|
require 'benchmark'
|
@@ -14,13 +14,13 @@ bm(6) do |x|
|
|
14
14
|
((a * b + DecNumber.new(rand().to_s) - b / a) ** b).to_s
|
15
15
|
end
|
16
16
|
end
|
17
|
-
x.report("decimal") do
|
18
|
-
a = Decimal.new n.to_s
|
19
|
-
b = Decimal.new m.to_s
|
20
|
-
100_000.times do
|
21
|
-
((a * b + Decimal.new(rand().to_s) - b
|
22
|
-
end
|
23
|
-
end
|
17
|
+
# x.report("decimal") do
|
18
|
+
# a = Decimal.new n.to_s
|
19
|
+
# b = Decimal.new m.to_s
|
20
|
+
# 100_000.times do
|
21
|
+
# ((a * b + Decimal.new(rand().to_s) - b.divide(a) ) ** b).to_s
|
22
|
+
# end
|
23
|
+
# end
|
24
24
|
x.report("bigdecimal") do
|
25
25
|
a = BigDecimal.new n.to_s
|
26
26
|
b = BigDecimal.new m.to_s
|
@@ -0,0 +1,680 @@
|
|
1
|
+
# Makefile.in generated by automake 1.11.1 from Makefile.am.
|
2
|
+
# Makefile. Generated from Makefile.in by configure.
|
3
|
+
|
4
|
+
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
5
|
+
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
6
|
+
# Inc.
|
7
|
+
# This Makefile.in is free software; the Free Software Foundation
|
8
|
+
# gives unlimited permission to copy and/or distribute it,
|
9
|
+
# with or without modifications, as long as this notice is preserved.
|
10
|
+
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
13
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
14
|
+
# PARTICULAR PURPOSE.
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
pkgdatadir = $(datadir)/decnumber
|
20
|
+
pkgincludedir = $(includedir)/decnumber
|
21
|
+
pkglibdir = $(libdir)/decnumber
|
22
|
+
pkglibexecdir = $(libexecdir)/decnumber
|
23
|
+
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
24
|
+
install_sh_DATA = $(install_sh) -c -m 644
|
25
|
+
install_sh_PROGRAM = $(install_sh) -c
|
26
|
+
install_sh_SCRIPT = $(install_sh) -c
|
27
|
+
INSTALL_HEADER = $(INSTALL_DATA)
|
28
|
+
transform = $(program_transform_name)
|
29
|
+
NORMAL_INSTALL = :
|
30
|
+
PRE_INSTALL = :
|
31
|
+
POST_INSTALL = :
|
32
|
+
NORMAL_UNINSTALL = :
|
33
|
+
PRE_UNINSTALL = :
|
34
|
+
POST_UNINSTALL = :
|
35
|
+
build_triplet = x86_64-unknown-linux-gnu
|
36
|
+
host_triplet = x86_64-unknown-linux-gnu
|
37
|
+
subdir = .
|
38
|
+
DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
|
39
|
+
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
40
|
+
$(top_srcdir)/configure config.guess config.sub depcomp \
|
41
|
+
install-sh ltmain.sh missing
|
42
|
+
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
43
|
+
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
44
|
+
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
45
|
+
$(ACLOCAL_M4)
|
46
|
+
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
47
|
+
configure.lineno config.status.lineno
|
48
|
+
mkinstalldirs = $(install_sh) -d
|
49
|
+
CONFIG_HEADER = config.h
|
50
|
+
CONFIG_CLEAN_FILES =
|
51
|
+
CONFIG_CLEAN_VPATH_FILES =
|
52
|
+
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
53
|
+
am__vpath_adj = case $$p in \
|
54
|
+
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
55
|
+
*) f=$$p;; \
|
56
|
+
esac;
|
57
|
+
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
58
|
+
am__install_max = 40
|
59
|
+
am__nobase_strip_setup = \
|
60
|
+
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
61
|
+
am__nobase_strip = \
|
62
|
+
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
63
|
+
am__nobase_list = $(am__nobase_strip_setup); \
|
64
|
+
for p in $$list; do echo "$$p $$p"; done | \
|
65
|
+
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
66
|
+
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
67
|
+
if (++n[$$2] == $(am__install_max)) \
|
68
|
+
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
69
|
+
END { for (dir in files) print dir, files[dir] }'
|
70
|
+
am__base_list = \
|
71
|
+
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
72
|
+
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
73
|
+
am__installdirs = "$(DESTDIR)$(libdir)"
|
74
|
+
LTLIBRARIES = $(lib_LTLIBRARIES)
|
75
|
+
libdecContext_la_LIBADD =
|
76
|
+
am_libdecContext_la_OBJECTS = decContext.lo
|
77
|
+
libdecContext_la_OBJECTS = $(am_libdecContext_la_OBJECTS)
|
78
|
+
libdecNumber_la_LIBADD =
|
79
|
+
am_libdecNumber_la_OBJECTS = decNumber.lo
|
80
|
+
libdecNumber_la_OBJECTS = $(am_libdecNumber_la_OBJECTS)
|
81
|
+
DEFAULT_INCLUDES = -I.
|
82
|
+
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
83
|
+
am__depfiles_maybe = depfiles
|
84
|
+
am__mv = mv -f
|
85
|
+
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
86
|
+
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
87
|
+
LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
88
|
+
--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
89
|
+
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
90
|
+
CCLD = $(CC)
|
91
|
+
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
92
|
+
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
|
93
|
+
$(LDFLAGS) -o $@
|
94
|
+
SOURCES = $(libdecContext_la_SOURCES) $(libdecNumber_la_SOURCES)
|
95
|
+
DIST_SOURCES = $(libdecContext_la_SOURCES) $(libdecNumber_la_SOURCES)
|
96
|
+
ETAGS = etags
|
97
|
+
CTAGS = ctags
|
98
|
+
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
99
|
+
distdir = $(PACKAGE)-$(VERSION)
|
100
|
+
top_distdir = $(distdir)
|
101
|
+
am__remove_distdir = \
|
102
|
+
{ test ! -d "$(distdir)" \
|
103
|
+
|| { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
104
|
+
&& rm -fr "$(distdir)"; }; }
|
105
|
+
DIST_ARCHIVES = $(distdir).tar.gz
|
106
|
+
GZIP_ENV = --best
|
107
|
+
distuninstallcheck_listfiles = find . -type f -print
|
108
|
+
distcleancheck_listfiles = find . -type f -print
|
109
|
+
ACLOCAL = ${SHELL} /home/paris/code/dec_number/ext/dec_number/decNumber/missing --run aclocal-1.11
|
110
|
+
AMTAR = ${SHELL} /home/paris/code/dec_number/ext/dec_number/decNumber/missing --run tar
|
111
|
+
AR = ar
|
112
|
+
AUTOCONF = ${SHELL} /home/paris/code/dec_number/ext/dec_number/decNumber/missing --run autoconf
|
113
|
+
AUTOHEADER = ${SHELL} /home/paris/code/dec_number/ext/dec_number/decNumber/missing --run autoheader
|
114
|
+
AUTOMAKE = ${SHELL} /home/paris/code/dec_number/ext/dec_number/decNumber/missing --run automake-1.11
|
115
|
+
AWK = gawk
|
116
|
+
CC = gcc
|
117
|
+
CCDEPMODE = depmode=gcc3
|
118
|
+
CFLAGS = -g -O2
|
119
|
+
CPP = gcc -E
|
120
|
+
CPPFLAGS =
|
121
|
+
CYGPATH_W = echo
|
122
|
+
DEFS = -DHAVE_CONFIG_H
|
123
|
+
DEPDIR = .deps
|
124
|
+
DSYMUTIL =
|
125
|
+
DUMPBIN =
|
126
|
+
ECHO_C =
|
127
|
+
ECHO_N = -n
|
128
|
+
ECHO_T =
|
129
|
+
EGREP = /bin/grep -E
|
130
|
+
EXEEXT =
|
131
|
+
FGREP = /bin/grep -F
|
132
|
+
GREP = /bin/grep
|
133
|
+
INSTALL = /usr/bin/install -c
|
134
|
+
INSTALL_DATA = ${INSTALL} -m 644
|
135
|
+
INSTALL_PROGRAM = ${INSTALL}
|
136
|
+
INSTALL_SCRIPT = ${INSTALL}
|
137
|
+
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
|
138
|
+
LD = /usr/bin/ld -m elf_x86_64
|
139
|
+
LDFLAGS =
|
140
|
+
LIBOBJS =
|
141
|
+
LIBS =
|
142
|
+
LIBTOOL = $(SHELL) $(top_builddir)/libtool
|
143
|
+
LIPO =
|
144
|
+
LN_S = ln -s
|
145
|
+
LTLIBOBJS =
|
146
|
+
MAKEINFO = ${SHELL} /home/paris/code/dec_number/ext/dec_number/decNumber/missing --run makeinfo
|
147
|
+
MKDIR_P = /bin/mkdir -p
|
148
|
+
NM = /usr/bin/nm -B
|
149
|
+
NMEDIT =
|
150
|
+
OBJDUMP = objdump
|
151
|
+
OBJEXT = o
|
152
|
+
OTOOL =
|
153
|
+
OTOOL64 =
|
154
|
+
PACKAGE = decnumber
|
155
|
+
PACKAGE_BUGREPORT = mfc@uk.ibm.com
|
156
|
+
PACKAGE_NAME = decNumber
|
157
|
+
PACKAGE_STRING = decNumber 3.6.8
|
158
|
+
PACKAGE_TARNAME = decnumber
|
159
|
+
PACKAGE_URL =
|
160
|
+
PACKAGE_VERSION = 3.6.8
|
161
|
+
PATH_SEPARATOR = :
|
162
|
+
RANLIB = ranlib
|
163
|
+
SED = /bin/sed
|
164
|
+
SET_MAKE =
|
165
|
+
SHELL = /bin/sh
|
166
|
+
STRIP = strip
|
167
|
+
VERSION = 3.6.8
|
168
|
+
abs_builddir = /home/paris/code/dec_number/ext/dec_number/decNumber
|
169
|
+
abs_srcdir = /home/paris/code/dec_number/ext/dec_number/decNumber
|
170
|
+
abs_top_builddir = /home/paris/code/dec_number/ext/dec_number/decNumber
|
171
|
+
abs_top_srcdir = /home/paris/code/dec_number/ext/dec_number/decNumber
|
172
|
+
ac_ct_CC = gcc
|
173
|
+
ac_ct_DUMPBIN =
|
174
|
+
am__include = include
|
175
|
+
am__leading_dot = .
|
176
|
+
am__quote =
|
177
|
+
am__tar = ${AMTAR} chof - "$$tardir"
|
178
|
+
am__untar = ${AMTAR} xf -
|
179
|
+
bindir = ${exec_prefix}/bin
|
180
|
+
build = x86_64-unknown-linux-gnu
|
181
|
+
build_alias =
|
182
|
+
build_cpu = x86_64
|
183
|
+
build_os = linux-gnu
|
184
|
+
build_vendor = unknown
|
185
|
+
builddir = .
|
186
|
+
datadir = ${datarootdir}
|
187
|
+
datarootdir = ${prefix}/share
|
188
|
+
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
|
189
|
+
dvidir = ${docdir}
|
190
|
+
exec_prefix = ${prefix}
|
191
|
+
host = x86_64-unknown-linux-gnu
|
192
|
+
host_alias =
|
193
|
+
host_cpu = x86_64
|
194
|
+
host_os = linux-gnu
|
195
|
+
host_vendor = unknown
|
196
|
+
htmldir = ${docdir}
|
197
|
+
includedir = ${prefix}/include
|
198
|
+
infodir = ${datarootdir}/info
|
199
|
+
install_sh = ${SHELL} /home/paris/code/dec_number/ext/dec_number/decNumber/install-sh
|
200
|
+
libdir = ${exec_prefix}/lib
|
201
|
+
libexecdir = ${exec_prefix}/libexec
|
202
|
+
localedir = ${datarootdir}/locale
|
203
|
+
localstatedir = ${prefix}/var
|
204
|
+
mandir = ${datarootdir}/man
|
205
|
+
mkdir_p = /bin/mkdir -p
|
206
|
+
oldincludedir = /usr/include
|
207
|
+
pdfdir = ${docdir}
|
208
|
+
prefix = /usr/local
|
209
|
+
program_transform_name = s,x,x,
|
210
|
+
psdir = ${docdir}
|
211
|
+
sbindir = ${exec_prefix}/sbin
|
212
|
+
sharedstatedir = ${prefix}/com
|
213
|
+
srcdir = .
|
214
|
+
sysconfdir = ${prefix}/etc
|
215
|
+
target_alias =
|
216
|
+
top_build_prefix =
|
217
|
+
top_builddir = .
|
218
|
+
top_srcdir = .
|
219
|
+
lib_LTLIBRARIES = libdecNumber.la libdecContext.la
|
220
|
+
libdecNumber_la_SOURCES = decNumber.c decNumber.h decContext.h
|
221
|
+
libdecContext_la_SOURCES = decContext.c decContext.h
|
222
|
+
all: config.h
|
223
|
+
$(MAKE) $(AM_MAKEFLAGS) all-am
|
224
|
+
|
225
|
+
.SUFFIXES:
|
226
|
+
.SUFFIXES: .c .lo .o .obj
|
227
|
+
am--refresh:
|
228
|
+
@:
|
229
|
+
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
230
|
+
@for dep in $?; do \
|
231
|
+
case '$(am__configure_deps)' in \
|
232
|
+
*$$dep*) \
|
233
|
+
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
|
234
|
+
$(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
|
235
|
+
&& exit 0; \
|
236
|
+
exit 1;; \
|
237
|
+
esac; \
|
238
|
+
done; \
|
239
|
+
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
240
|
+
$(am__cd) $(top_srcdir) && \
|
241
|
+
$(AUTOMAKE) --foreign Makefile
|
242
|
+
.PRECIOUS: Makefile
|
243
|
+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
244
|
+
@case '$?' in \
|
245
|
+
*config.status*) \
|
246
|
+
echo ' $(SHELL) ./config.status'; \
|
247
|
+
$(SHELL) ./config.status;; \
|
248
|
+
*) \
|
249
|
+
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
250
|
+
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
251
|
+
esac;
|
252
|
+
|
253
|
+
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
254
|
+
$(SHELL) ./config.status --recheck
|
255
|
+
|
256
|
+
$(top_srcdir)/configure: $(am__configure_deps)
|
257
|
+
$(am__cd) $(srcdir) && $(AUTOCONF)
|
258
|
+
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
259
|
+
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
260
|
+
$(am__aclocal_m4_deps):
|
261
|
+
|
262
|
+
config.h: stamp-h1
|
263
|
+
@if test ! -f $@; then \
|
264
|
+
rm -f stamp-h1; \
|
265
|
+
$(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
|
266
|
+
else :; fi
|
267
|
+
|
268
|
+
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
269
|
+
@rm -f stamp-h1
|
270
|
+
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
271
|
+
$(srcdir)/config.h.in: $(am__configure_deps)
|
272
|
+
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
|
273
|
+
rm -f stamp-h1
|
274
|
+
touch $@
|
275
|
+
|
276
|
+
distclean-hdr:
|
277
|
+
-rm -f config.h stamp-h1
|
278
|
+
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
279
|
+
@$(NORMAL_INSTALL)
|
280
|
+
test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
|
281
|
+
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
282
|
+
list2=; for p in $$list; do \
|
283
|
+
if test -f $$p; then \
|
284
|
+
list2="$$list2 $$p"; \
|
285
|
+
else :; fi; \
|
286
|
+
done; \
|
287
|
+
test -z "$$list2" || { \
|
288
|
+
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
|
289
|
+
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
|
290
|
+
}
|
291
|
+
|
292
|
+
uninstall-libLTLIBRARIES:
|
293
|
+
@$(NORMAL_UNINSTALL)
|
294
|
+
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
295
|
+
for p in $$list; do \
|
296
|
+
$(am__strip_dir) \
|
297
|
+
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
|
298
|
+
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
|
299
|
+
done
|
300
|
+
|
301
|
+
clean-libLTLIBRARIES:
|
302
|
+
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
303
|
+
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
304
|
+
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
305
|
+
test "$$dir" != "$$p" || dir=.; \
|
306
|
+
echo "rm -f \"$${dir}/so_locations\""; \
|
307
|
+
rm -f "$${dir}/so_locations"; \
|
308
|
+
done
|
309
|
+
libdecContext.la: $(libdecContext_la_OBJECTS) $(libdecContext_la_DEPENDENCIES)
|
310
|
+
$(LINK) -rpath $(libdir) $(libdecContext_la_OBJECTS) $(libdecContext_la_LIBADD) $(LIBS)
|
311
|
+
libdecNumber.la: $(libdecNumber_la_OBJECTS) $(libdecNumber_la_DEPENDENCIES)
|
312
|
+
$(LINK) -rpath $(libdir) $(libdecNumber_la_OBJECTS) $(libdecNumber_la_LIBADD) $(LIBS)
|
313
|
+
|
314
|
+
mostlyclean-compile:
|
315
|
+
-rm -f *.$(OBJEXT)
|
316
|
+
|
317
|
+
distclean-compile:
|
318
|
+
-rm -f *.tab.c
|
319
|
+
|
320
|
+
include ./$(DEPDIR)/decContext.Plo
|
321
|
+
include ./$(DEPDIR)/decNumber.Plo
|
322
|
+
|
323
|
+
.c.o:
|
324
|
+
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
325
|
+
$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
326
|
+
# source='$<' object='$@' libtool=no \
|
327
|
+
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
|
328
|
+
# $(COMPILE) -c $<
|
329
|
+
|
330
|
+
.c.obj:
|
331
|
+
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
332
|
+
$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
333
|
+
# source='$<' object='$@' libtool=no \
|
334
|
+
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
|
335
|
+
# $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
336
|
+
|
337
|
+
.c.lo:
|
338
|
+
$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
339
|
+
$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
340
|
+
# source='$<' object='$@' libtool=yes \
|
341
|
+
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
|
342
|
+
# $(LTCOMPILE) -c -o $@ $<
|
343
|
+
|
344
|
+
mostlyclean-libtool:
|
345
|
+
-rm -f *.lo
|
346
|
+
|
347
|
+
clean-libtool:
|
348
|
+
-rm -rf .libs _libs
|
349
|
+
|
350
|
+
distclean-libtool:
|
351
|
+
-rm -f libtool config.lt
|
352
|
+
|
353
|
+
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
354
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
355
|
+
unique=`for i in $$list; do \
|
356
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
357
|
+
done | \
|
358
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
359
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
360
|
+
mkid -fID $$unique
|
361
|
+
tags: TAGS
|
362
|
+
|
363
|
+
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
364
|
+
$(TAGS_FILES) $(LISP)
|
365
|
+
set x; \
|
366
|
+
here=`pwd`; \
|
367
|
+
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
368
|
+
unique=`for i in $$list; do \
|
369
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
370
|
+
done | \
|
371
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
372
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
373
|
+
shift; \
|
374
|
+
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
375
|
+
test -n "$$unique" || unique=$$empty_fix; \
|
376
|
+
if test $$# -gt 0; then \
|
377
|
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
378
|
+
"$$@" $$unique; \
|
379
|
+
else \
|
380
|
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
381
|
+
$$unique; \
|
382
|
+
fi; \
|
383
|
+
fi
|
384
|
+
ctags: CTAGS
|
385
|
+
CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
386
|
+
$(TAGS_FILES) $(LISP)
|
387
|
+
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
388
|
+
unique=`for i in $$list; do \
|
389
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
390
|
+
done | \
|
391
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
392
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
393
|
+
test -z "$(CTAGS_ARGS)$$unique" \
|
394
|
+
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
395
|
+
$$unique
|
396
|
+
|
397
|
+
GTAGS:
|
398
|
+
here=`$(am__cd) $(top_builddir) && pwd` \
|
399
|
+
&& $(am__cd) $(top_srcdir) \
|
400
|
+
&& gtags -i $(GTAGS_ARGS) "$$here"
|
401
|
+
|
402
|
+
distclean-tags:
|
403
|
+
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
404
|
+
|
405
|
+
distdir: $(DISTFILES)
|
406
|
+
$(am__remove_distdir)
|
407
|
+
test -d "$(distdir)" || mkdir "$(distdir)"
|
408
|
+
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
409
|
+
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
410
|
+
list='$(DISTFILES)'; \
|
411
|
+
dist_files=`for file in $$list; do echo $$file; done | \
|
412
|
+
sed -e "s|^$$srcdirstrip/||;t" \
|
413
|
+
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
414
|
+
case $$dist_files in \
|
415
|
+
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
416
|
+
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
417
|
+
sort -u` ;; \
|
418
|
+
esac; \
|
419
|
+
for file in $$dist_files; do \
|
420
|
+
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
421
|
+
if test -d $$d/$$file; then \
|
422
|
+
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
423
|
+
if test -d "$(distdir)/$$file"; then \
|
424
|
+
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
425
|
+
fi; \
|
426
|
+
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
427
|
+
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
428
|
+
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
429
|
+
fi; \
|
430
|
+
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
431
|
+
else \
|
432
|
+
test -f "$(distdir)/$$file" \
|
433
|
+
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
434
|
+
|| exit 1; \
|
435
|
+
fi; \
|
436
|
+
done
|
437
|
+
-test -n "$(am__skip_mode_fix)" \
|
438
|
+
|| find "$(distdir)" -type d ! -perm -755 \
|
439
|
+
-exec chmod u+rwx,go+rx {} \; -o \
|
440
|
+
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
441
|
+
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
442
|
+
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
443
|
+
|| chmod -R a+r "$(distdir)"
|
444
|
+
dist-gzip: distdir
|
445
|
+
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
446
|
+
$(am__remove_distdir)
|
447
|
+
|
448
|
+
dist-bzip2: distdir
|
449
|
+
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
450
|
+
$(am__remove_distdir)
|
451
|
+
|
452
|
+
dist-lzma: distdir
|
453
|
+
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
|
454
|
+
$(am__remove_distdir)
|
455
|
+
|
456
|
+
dist-xz: distdir
|
457
|
+
tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
|
458
|
+
$(am__remove_distdir)
|
459
|
+
|
460
|
+
dist-tarZ: distdir
|
461
|
+
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
462
|
+
$(am__remove_distdir)
|
463
|
+
|
464
|
+
dist-shar: distdir
|
465
|
+
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
466
|
+
$(am__remove_distdir)
|
467
|
+
|
468
|
+
dist-zip: distdir
|
469
|
+
-rm -f $(distdir).zip
|
470
|
+
zip -rq $(distdir).zip $(distdir)
|
471
|
+
$(am__remove_distdir)
|
472
|
+
|
473
|
+
dist dist-all: distdir
|
474
|
+
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
475
|
+
$(am__remove_distdir)
|
476
|
+
|
477
|
+
# This target untars the dist file and tries a VPATH configuration. Then
|
478
|
+
# it guarantees that the distribution is self-contained by making another
|
479
|
+
# tarfile.
|
480
|
+
distcheck: dist
|
481
|
+
case '$(DIST_ARCHIVES)' in \
|
482
|
+
*.tar.gz*) \
|
483
|
+
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
|
484
|
+
*.tar.bz2*) \
|
485
|
+
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
|
486
|
+
*.tar.lzma*) \
|
487
|
+
lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
|
488
|
+
*.tar.xz*) \
|
489
|
+
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
490
|
+
*.tar.Z*) \
|
491
|
+
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
492
|
+
*.shar.gz*) \
|
493
|
+
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
|
494
|
+
*.zip*) \
|
495
|
+
unzip $(distdir).zip ;;\
|
496
|
+
esac
|
497
|
+
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
498
|
+
mkdir $(distdir)/_build
|
499
|
+
mkdir $(distdir)/_inst
|
500
|
+
chmod a-w $(distdir)
|
501
|
+
test -d $(distdir)/_build || exit 0; \
|
502
|
+
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
503
|
+
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
504
|
+
&& am__cwd=`pwd` \
|
505
|
+
&& $(am__cd) $(distdir)/_build \
|
506
|
+
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
507
|
+
$(DISTCHECK_CONFIGURE_FLAGS) \
|
508
|
+
&& $(MAKE) $(AM_MAKEFLAGS) \
|
509
|
+
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
510
|
+
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
511
|
+
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
512
|
+
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
513
|
+
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
514
|
+
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
515
|
+
distuninstallcheck \
|
516
|
+
&& chmod -R a-w "$$dc_install_base" \
|
517
|
+
&& ({ \
|
518
|
+
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
519
|
+
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
520
|
+
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
521
|
+
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
522
|
+
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
523
|
+
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
524
|
+
&& rm -rf "$$dc_destdir" \
|
525
|
+
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
526
|
+
&& rm -rf $(DIST_ARCHIVES) \
|
527
|
+
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
|
528
|
+
&& cd "$$am__cwd" \
|
529
|
+
|| exit 1
|
530
|
+
$(am__remove_distdir)
|
531
|
+
@(echo "$(distdir) archives ready for distribution: "; \
|
532
|
+
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
533
|
+
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
|
534
|
+
distuninstallcheck:
|
535
|
+
@$(am__cd) '$(distuninstallcheck_dir)' \
|
536
|
+
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
537
|
+
|| { echo "ERROR: files left after uninstall:" ; \
|
538
|
+
if test -n "$(DESTDIR)"; then \
|
539
|
+
echo " (check DESTDIR support)"; \
|
540
|
+
fi ; \
|
541
|
+
$(distuninstallcheck_listfiles) ; \
|
542
|
+
exit 1; } >&2
|
543
|
+
distcleancheck: distclean
|
544
|
+
@if test '$(srcdir)' = . ; then \
|
545
|
+
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
546
|
+
exit 1 ; \
|
547
|
+
fi
|
548
|
+
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
549
|
+
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
550
|
+
$(distcleancheck_listfiles) ; \
|
551
|
+
exit 1; } >&2
|
552
|
+
check-am: all-am
|
553
|
+
check: check-am
|
554
|
+
all-am: Makefile $(LTLIBRARIES) config.h
|
555
|
+
installdirs:
|
556
|
+
for dir in "$(DESTDIR)$(libdir)"; do \
|
557
|
+
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
558
|
+
done
|
559
|
+
install: install-am
|
560
|
+
install-exec: install-exec-am
|
561
|
+
install-data: install-data-am
|
562
|
+
uninstall: uninstall-am
|
563
|
+
|
564
|
+
install-am: all-am
|
565
|
+
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
566
|
+
|
567
|
+
installcheck: installcheck-am
|
568
|
+
install-strip:
|
569
|
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
570
|
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
571
|
+
`test -z '$(STRIP)' || \
|
572
|
+
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
573
|
+
mostlyclean-generic:
|
574
|
+
|
575
|
+
clean-generic:
|
576
|
+
|
577
|
+
distclean-generic:
|
578
|
+
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
579
|
+
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
580
|
+
|
581
|
+
maintainer-clean-generic:
|
582
|
+
@echo "This command is intended for maintainers to use"
|
583
|
+
@echo "it deletes files that may require special tools to rebuild."
|
584
|
+
clean: clean-am
|
585
|
+
|
586
|
+
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
|
587
|
+
mostlyclean-am
|
588
|
+
|
589
|
+
distclean: distclean-am
|
590
|
+
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
591
|
+
-rm -rf ./$(DEPDIR)
|
592
|
+
-rm -f Makefile
|
593
|
+
distclean-am: clean-am distclean-compile distclean-generic \
|
594
|
+
distclean-hdr distclean-libtool distclean-tags
|
595
|
+
|
596
|
+
dvi: dvi-am
|
597
|
+
|
598
|
+
dvi-am:
|
599
|
+
|
600
|
+
html: html-am
|
601
|
+
|
602
|
+
html-am:
|
603
|
+
|
604
|
+
info: info-am
|
605
|
+
|
606
|
+
info-am:
|
607
|
+
|
608
|
+
install-data-am:
|
609
|
+
|
610
|
+
install-dvi: install-dvi-am
|
611
|
+
|
612
|
+
install-dvi-am:
|
613
|
+
|
614
|
+
install-exec-am: install-libLTLIBRARIES
|
615
|
+
|
616
|
+
install-html: install-html-am
|
617
|
+
|
618
|
+
install-html-am:
|
619
|
+
|
620
|
+
install-info: install-info-am
|
621
|
+
|
622
|
+
install-info-am:
|
623
|
+
|
624
|
+
install-man:
|
625
|
+
|
626
|
+
install-pdf: install-pdf-am
|
627
|
+
|
628
|
+
install-pdf-am:
|
629
|
+
|
630
|
+
install-ps: install-ps-am
|
631
|
+
|
632
|
+
install-ps-am:
|
633
|
+
|
634
|
+
installcheck-am:
|
635
|
+
|
636
|
+
maintainer-clean: maintainer-clean-am
|
637
|
+
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
638
|
+
-rm -rf $(top_srcdir)/autom4te.cache
|
639
|
+
-rm -rf ./$(DEPDIR)
|
640
|
+
-rm -f Makefile
|
641
|
+
maintainer-clean-am: distclean-am maintainer-clean-generic
|
642
|
+
|
643
|
+
mostlyclean: mostlyclean-am
|
644
|
+
|
645
|
+
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
646
|
+
mostlyclean-libtool
|
647
|
+
|
648
|
+
pdf: pdf-am
|
649
|
+
|
650
|
+
pdf-am:
|
651
|
+
|
652
|
+
ps: ps-am
|
653
|
+
|
654
|
+
ps-am:
|
655
|
+
|
656
|
+
uninstall-am: uninstall-libLTLIBRARIES
|
657
|
+
|
658
|
+
.MAKE: all install-am install-strip
|
659
|
+
|
660
|
+
.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
|
661
|
+
clean-generic clean-libLTLIBRARIES clean-libtool ctags dist \
|
662
|
+
dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
|
663
|
+
dist-xz dist-zip distcheck distclean distclean-compile \
|
664
|
+
distclean-generic distclean-hdr distclean-libtool \
|
665
|
+
distclean-tags distcleancheck distdir distuninstallcheck dvi \
|
666
|
+
dvi-am html html-am info info-am install install-am \
|
667
|
+
install-data install-data-am install-dvi install-dvi-am \
|
668
|
+
install-exec install-exec-am install-html install-html-am \
|
669
|
+
install-info install-info-am install-libLTLIBRARIES \
|
670
|
+
install-man install-pdf install-pdf-am install-ps \
|
671
|
+
install-ps-am install-strip installcheck installcheck-am \
|
672
|
+
installdirs maintainer-clean maintainer-clean-generic \
|
673
|
+
mostlyclean mostlyclean-compile mostlyclean-generic \
|
674
|
+
mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
|
675
|
+
uninstall-am uninstall-libLTLIBRARIES
|
676
|
+
|
677
|
+
|
678
|
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
679
|
+
# Otherwise a system limit (for SysV at least) may be exceeded.
|
680
|
+
.NOEXPORT:
|