###
# This program is copyright Alec Muffett 1993. The author disclaims all
# responsibility or liability with respect to it's usage or its effect
# upon hardware or computer systems, and maintains copyright as set out
# in the "LICENCE" document which accompanies distributions of Crack v4.0
# and upwards.
###

LIB=	libcrack.a
NPASSWDLIB=	checkpasswd.a
OBJ=	fascist.o packlib.o rules.o stringlib.o checkpasswd.o
CFLAGS= -O
DEFS=	-DIN_CRACKLIB

.c.o :
	$(CC) $(CFLAGS) $(DEFS) -c $<

$(NPASSWDLIB) : $(LIB)

$(LIB):	$(OBJ)
	ar rv $(LIB) $?
	-ranlib $(LIB)
	-rm -f $(NPASSWDLIB)
	-ln -s $(LIB) $(NPASSWDLIB)

clean:
	-rm -f $(OBJ) $(LIB) $(NPASSWDLIB)

fascist.o	: fascist.c packer.h
packlib.o	: packlib.c packer.h
rules.o		: rules.c packer.h
bstringli.o	: bstringli.c packer.h
checkpasswd.o	: checkpasswd.c packer.h
