#
# kludged standard make Makefile - adapted from GNU make version .. kre
#
CFLAGS=		-DBSD -O -Dconst= #SUN -msoft-float
PRINT=		enscript
LIBNAME=	libdes.a
SOURCES=	alo-getline.c alo-getpass.c cbc-cksum.c cbc-encrypt.c \
		des-data.c des-expand.c des-fun.c des-hash.c des-hex.c \
		des-perms.c des-reverse.c ecb-encrypt.c ksched.c \
		pcbc-encrypt.c read-passwd.c string-to-key.c
OBJS=		alo-getline.o alo-getpass.o cbc-cksum.o cbc-encrypt.o \
		des-data.o des-expand.o des-fun.o des-hash.o des-hex.o \
		des-perms.o des-reverse.o ecb-encrypt.o ksched.o \
		pcbc-encrypt.o read-passwd.o string-to-key.o
PRINTFILES=	des-private.h des.h $(SOURCES)

all:	$(LIBNAME)

$(LIBNAME): $(OBJS)
	ar ru $(LIBNAME) $?
	ranlib $(LIBNAME)

clean:
	rm -f $(LIBNAME) $(OBJS)

print:
	$(PRINT) $(PRINTFILES)
