#
# Makefile for sec
#
# To install: Patch config.h to change the location of the security filename.
# Then make, su, and make install.
# Then create the security file. See README
#

#CC=/bin/cc

# for SunOS 4.0 and above, static binding is recommended. If sharing
# a library by NFS, it may become disconnected, rendering sec unavailable.

CFLAGS= -O -Bstatic

GROUP=staff
INSTALLDIR=/etc

all:sec secpw

sec:sec.o
	$(CC) $(CFLAGS) -o sec sec.o
	strip sec

secpw:secpw.o
	$(CC) $(CFLAGS) -o secpw secpw.o
	strip secpw

sec.o:sec.c config.h

secpw.o:secpw.c config.h

install:sec secpw
	mv sec secpw $(INSTALLDIR)
	cd $(INSTALLDIR)
	chmod 4710 sec
	chmod 710 secpw
	chown root sec secpw
	chgrp $(GROUP) sec secpw

clean:
	rm -f *.o core
