# Make file for kutil 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/INETSVCS/indnetwk)

ROOT=

PRODUCTS=

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

include ${BUILDRULES}

INCLUDES=-I/usr/include 
CCFLAGS=$(INCLUDES) -DAUDIT -DHP_NFS $(CFLAGS)   

OBJS=   forward.o kcmd.o clnt_kerb.o serv_kerb.o  

SRCS=   forward.c kcmd.c clnt_kerb.c serv_kerb.c 


LIBS=-lkrb5 -lisode -lcom_err -lcrypto ../kutil/libklib.a

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

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

default: all

all: clean build 

clean:
	$(RM) -f $(OBJS)
	$(RM) -f libklib.a
	
install:

build: libklib.a

libklib.a:  $(SRCS)
	$(ECHO) "Building klib..."
	$(CC) -c $(CCFLAGS) -Ae -DKERBEROS $(SRCS)
	ar -rv $@ $(OBJS)
#	$(CC) $(LDFLAGS) -o $@ $(OBJS) 

