#
# libcrypt.a compiled for use by the kernel.
#
VDIR	= $(TOP)/crypt .
vpath	%.c $(VDIR)

include $(TOP)/config.mk

CFLAGS	= $(KFLAGS)
CC	= $(CCMOD)
LD	= $(LDMOD)
SRCS	= md5.c sha.c
OBJS	= $(SRCS:.c=.o)
LIB	= libkcrypt.a

all::	$(LIB)
	@echo "Done."

$(LIB):$(OBJS)
	rm -f $@
	ar cr $@ $(OBJS)

clean distclean::
	rm -f *.o

distclean::
	rm -f $(LIB) .depend

findsrc = $(wildcard $(addprefix $(dir)/, $(SRCS)))
allsrcs := $(foreach dir, $(VDIR), $(findsrc))

dep::
	$(CC) $(CFLAGS) -M $(allsrcs) > .depend

install::

ifeq (.depend,$(wildcard .depend))
include .depend
endif
