#
#	Make password checking routines and test program

#
#	The checkpasswd routine depends upon the existence of the ndbm
#	routines in the 4.3BSD libc.  Changes will have to be made to
#	checkpasswd.c if these are not available.
#
CFLAGS	= -g

pwtest: driver.o checkpasswd.o
	cc $(CFLAGS) -o pwtest driver.o checkpasswd.o

checkpasswd.o: checkpasswd.c checkpasswd.h
	cc $(CFLAGS) -c checkpasswd.c

makedict: makedict.c
	cc $(CFLAGS) -o makedict makedict.c

viewdict: viewdict.c
	cc $(CFLAGS) -o viewdict viewdict.c

pwdict:	wormlist makedict
	-rm -f pwdict
	cat /usr/dict/words wormlist | makedict pwdict
	@echo install pwdict to where PWDICT points to in checkpasswd.c
