head 1.5; access; symbols; locks; strict; comment @# @; 1.5 date 2005.01.13.08.42.34; author rse; state Exp; branches; next 1.4; 1.4 date 2004.01.09.11.28.22; author rse; state Exp; branches; next 1.3; 1.3 date 2004.01.09.11.25.48; author rse; state Exp; branches; next 1.2; 1.2 date 2003.03.23.18.07.15; author rse; state Exp; branches; next 1.1; 1.1 date 2002.04.28.13.22.49; author rse; state Exp; branches; next ; desc @@ 1.5 log @happy new year 2005 @ text @## ## OSSP ui64 - 64-Bit Arithmetic ## Copyright (c) 2002-2005 Ralf S. Engelschall ## Copyright (c) 2002-2005 The OSSP Project ## ## This file is part of OSSP ui64, a 64-bit arithmetic library ## which can be found at http://www.ossp.org/pkg/lib/ui64/. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that ## the above copyright notice and this permission notice appear in all ## copies. ## ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ## SUCH DAMAGE. ## ## Makefile.in: make(1) build procedure ## @@SET_MAKE@@ DESTDIR = prefix = @@prefix@@ exec_prefix = @@exec_prefix@@ bindir = @@bindir@@ libdir = @@libdir@@ includedir = @@includedir@@ mandir = @@mandir@@ CC = @@CC@@ CPPFLAGS = @@CPPFLAGS@@ CFLAGS = @@DEFS@@ @@CFLAGS@@ LDFLAGS = @@LDFLAGS@@ LIBS = @@LIBS@@ RM = rm -f RMDIR = rmdir SHTOOL = ./shtool LIBTOOL = ./libtool TRUE = true POD2MAN = pod2man LIB_NAME = libui64.la LIB_OBJS = ui64.lo TST_NAME = ui64_test TST_OBJS = ui64_test.o ts.o .SUFFIXES: .SUFFIXES: .c .o .lo all: $(LIB_NAME) $(TST_NAME) .c.o: $(CC) $(CPPFLAGS) $(CFLAGS) -c $< .c.lo: @@$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $< $(LIB_OBJS): Makefile $(TST_OBJS): Makefile $(LIB_NAME): $(LIB_OBJS) @@$(LIBTOOL) --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \ -version-info `$(SHTOOL) version -l txt -d libtool VERSION` $(TST_NAME): $(TST_OBJS) $(LIB_NAME) @@$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(TST_NAME) $(TST_OBJS) $(LIB_NAME) $(LIBS) man: ui64.3 ui64.3: ui64.pod V1=`$(SHTOOL) version -l txt -d short VERSION`; \ V2=`$(SHTOOL) version -l txt -d long VERSION`; \ D=`$(SHTOOL) version -l txt -d long VERSION | sed -e 's;.*(;;' -e 's;).*;;'`; \ $(POD2MAN) --quotes=none \ --section=3 --center="64-Bit Arithmetic" \ --release="$$D" --date="OSSP ui64 $$V1" ui64.pod | \ sed -e "s;UI64_VERSION_STR;$$V2;" >ui64.3 check: $(TST_NAME) @@$(LIBTOOL) --mode=execute ./$(TST_NAME) install: $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix) $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir) $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir) $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir) $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man3 $(SHTOOL) install -c -m 755 ui64-config $(DESTDIR)$(bindir)/ $(SHTOOL) install -c -m 644 ui64.h $(DESTDIR)$(includedir)/ $(SHTOOL) install -c -m 644 ui64.3 $(DESTDIR)$(mandir)/man3/ @@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libui64.la $(DESTDIR)$(libdir)/ uninstall: @@$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libui64.la -$(RM) $(DESTDIR)$(mandir)/man3/ui64.3 -$(RM) $(DESTDIR)$(includedir)/ui64.h -$(RM) $(DESTDIR)$(bindir)/ui64-config -$(RMDIR) $(DESTDIR)$(mandir)/man3 >/dev/null 2>&1 || $(TRUE) -$(RMDIR) $(DESTDIR)$(mandir) >/dev/null 2>&1 || $(TRUE) -$(RMDIR) $(DESTDIR)$(libdir) >/dev/null 2>&1 || $(TRUE) -$(RMDIR) $(DESTDIR)$(includedir) >/dev/null 2>&1 || $(TRUE) -$(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE) -$(RMDIR) $(DESTDIR)$(prefix) >/dev/null 2>&1 || $(TRUE) clean: -$(RM) $(LIB_NAME) $(LIB_OBJS) -$(RM) $(TST_NAME) $(TST_OBJS) -$(RM) -r .libs >/dev/null 2>&1 || $(TRUE) -$(RM) *.o *.lo distclean: clean -$(RM) config.log config.status config.cache -$(RM) Makefile config.h ui64-config -$(RM) libtool realclean: distclean -$(RM) ui64.3 -$(RM) configure config.h.in -$(RM) shtool -$(RM) ltmain.sh libtool.m4 config.guess config.sub @ 1.4 log @OSSP ui64 was never done under C&W work time, so no need to give them the copyright @ text @d3 2 a4 2 ## Copyright (c) 2002-2004 Ralf S. Engelschall ## Copyright (c) 2002-2004 The OSSP Project @ 1.3 log @bump copyright for year 2004 @ text @a4 1 ## Copyright (c) 2002-2004 Cable & Wireless Deutschland @ 1.2 log @bump copyright year @ text @d3 3 a5 3 ## Copyright (c) 2002-2003 Ralf S. Engelschall ## Copyright (c) 2002-2003 The OSSP Project ## Copyright (c) 2002-2003 Cable & Wireless Deutschland @ 1.1 log @Add first cut of OSSP ui64, a new (sub-)library which allows us to perform 64-bit unsigned integer arithmetic in a portable way without requiring the machine to support C99's 64-bit type "unsigned long long". Basically a ui64_t is an 8 byte array of "unsigned char" elements and hence the library internally stores 64-bit values as 8 digits to the base 2^8 and also performs the mathematical operations this way. @ text @d3 3 a5 3 ## Copyright (c) 2002 Ralf S. Engelschall ## Copyright (c) 2002 The OSSP Project ## Copyright (c) 2002 Cable & Wireless Deutschland @