# Make file for cmds/usr.etc/vhe 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/newconfig/usr/sbin/vhe/vhe_altlog \
	/usr/newconfig/usr/sbin/vhe/vhe_getlist \
	/usr/newconfig/usr/sbin/vhe/vhe_mounter \
	/usr/newconfig/usr/sbin/vhe/vhe_script \
	/usr/sbin/vhe/vhe_u_mnt

SRCS=	vhe_u_mnt.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
	$(RM) -f vhe_u_mnt

build: vhe_u_mnt

vhe_u_mnt:
	$(ECHO) "Building vhe_u_mnt..."
	$(CC) $(CCFLAGS) $(LDFLAGS) -o vhe_u_mnt $(SRCS)

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