#
# Stripped-down make file to install auditls and lstat remotely
#
# we want everything optimized here
# CFLAGS: add -DCRAY for compiling on the Cray
#	  add -DALONE if you don't want to use the deszip package
# DESLIB: set this to the deszip library if you want to use it
CFLAGS	= %%CFLAGS%%
DESZIP	=
# parameters; these will change from system to system
# DESTBIN is the directory where the auditing programs go
AUDITLS	= .
SCAN	= .
CRYPT	= .
# programs
SRCSH	= auditls.sh
SRCEXE	= auditscan.c
OBJEXE	= auditscan.o
EXECSH	= auditls
EXEC	= auditscan

# make the cookies
all:	$(EXECSH) $(EXEC)

# install the cookies
install:	$(EXECSH) $(EXEC)
	-cp auditls ${AUDITLS}; chmod 700 ${AUDITLS}
	-cp auditscan ${SCAN}; chmod 700 ${SCAN}

installcrypt:	cdes
	-cp cdes ${CRYPT}; chmod 700 ${CRYPT}

# make the programs
auditscan:	auditscan.o
	$(CC) $(CFLAGS) -o auditscan auditscan.o

cdes:	cdes.o
	$(CC) $(CFLAGS) -o cdes cdes.o $(DESZIP)

# make the shell scripts
auditls:	auditls.sh
	cp auditls.sh auditls
	chmod 700 auditls

# clean up
clean:
	rm -f $(OBJEXE)

clobber:	clean
	rm -f $(EXECSH) $(EXEC)

clobbersrc:
	rm -f cdes.c $(SRCSH) $(SRCEXE) $(OBJEXE)

