# #ident "%W% %G% %U%" # # Copyright John Moyer 1996 # permission is granted to use this for any purpose provided proper # credit is given to the author # CFLAGS = -g CSRCS = ascii2bcd.c bcd2ascii.c int2bcd.c addbignum.c mulbignum.c \ bcddiv.c ASRCS = bcdadd.s bcdsub.s bcdmul.s bcdinc.s SRCS = $(CSRCS) $(ASRCS) \ \ testbcd.c testbcdinc.c testbcddiv.c testbcdmul.c HDRS = bignum.h OBJS = ascii2bcd.o bcd2ascii.o int2bcd.o bcdadd.o bcdsub.o \ bcdmul.o bcddiv.o bcdinc.o addbignum.o mulbignum.o LIBRARY = libbcd.a all: testbcd testbcddiv testbcdmul testbcd: $(LIBRARY) testbcd.o cc -v $(CFLAGS) -o testbcd testbcd.o $(LIBRARY) testbcdmul: $(LIBRARY) testbcdmul.o cc -v $(CFLAGS) -o testbcdmul testbcdmul.o $(LIBRARY) testbcddiv: $(LIBRARY) testbcddiv.o cc -v $(CFLAGS) -o testbcddiv testbcddiv.o $(LIBRARY) testbcdinc: $(LIBRARY) testbcdinc.o cc -v $(CFLAGS) -o testbcdinc testbcdinc.o $(LIBRARY) $(LIBRARY): $(OBJS) ar ru $(LIBRARY) $(OBJS) clean: sccs clean if [ ! -f Makefile ] ; then sccs get Makefile ; fi rm *.o lintlib: sources rm -f llib-lbcd.ln lint -obcd -bh -DLINT -I. $(CSRCS) sources: $(SRCS) $(HDRS) $(SRCS) $(HDRS): sccs get $(@F) depend: /usr/X11R6/bin/makedepend $(SRCS) lint: sources lint -lm $(SRCS) # DO NOT DELETE