# Make file for cmds/ucb 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=

PRODUCTS= /usr/bin/rup \
	/usr/bin/rusers 

SRCS= rup.c rusers.c

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

#Install database name
INSTALLDB=/source/NFS/$(LOGNAME)/config/installdb

#Script called to parse the install deliverable
INSTALLSCPT=/source/NFS/$(LOGNAME)/config/install_script

# 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 rup rusers

build: rup rusers

rup:
	$(CC) $(CCFLAGS) $(LDFLAGS) -o rup rup.c $(RPCSVC_LIB) 

rusers: 
	$(CC) $(CCFLAGS) $(LDFLAGS) -o rusers rusers.c $(RPCSVC_LIB)

install:
	for file in $(PRODUCTS) ; do \
		$(INSTALLSCPT) $$file $(INSTALLDB) ;  \
	done

