# Make file for cmds/usr.lib/libmp directory
#
# Things you might want to change.  Pass them in on the command line:
# ROOT - should point to the root where the commands will be installed
#        (e.g. /deliver/NFS/indnetwk)

ROOT=

SRCS=	gcd.c madd.c mdiv.c mout.c msqrt.c mult.c pow.c util.c
OBJS=	gcd.o madd.o mdiv.o mout.o msqrt.o mult.o pow.o util.o

INCLUDES= -I/source/NFS/$(LOGNAME)/include -I/usr/include

CCFLAGS= $(INCLUDES) $(CFLAGS)

#Commands used by this Makefile
AR=/usr/ccs/bin/ar
CHMOD=/usr/bin/chmod

# Defaults file containing the shell, compiler options, etc
BUILDRULES=/source/NFS/$(LOGNAME)/config/defaults

include ${BUILDRULES}

default: all

all: clean build install

clean: 
	$(RM) -f *.o libmp.a

.c.o:
	$(CC) $(CCFLAGS) -c $*.c

build: libmp.a

libmp.a: $(OBJS)
	$(ECHO) "Building libmp.a..."
	$(AR) r libmp.a $(OBJS)
	$(CHMOD) 664 libmp.a

install:
