# Make file for cmds/usr.lib/libnisdbm 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=	nisdbm.c version.c
OBJS=	nisdbm.o version.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 libnisdbm.a

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

build: libnisdbm.a

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

install:
