#
# Makefile for libdes.a
#

LIB		= libdes.a
MAN		= des.3

SRC		= \
		Makefile \
		README \
		des.h \
		des.c \
		test.c \
		$(MAN)

CAT		= des.3.cat

all		: test $(CAT)
		./test

$(LIB)		: des.o
		-rm -f $(LIB)
		ar qv $(LIB) des.o

test		: test.o $(LIB)
		$(CC) -o test test.o $(LIB)

$(CAT)		: $(MAN)
		nroff -man $(MAN) > $(CAT)

shar		: $(SRC)
		shar $(SRC) > des.shar

clean		:
		-rm -f *.o $(CAT) des.shar

nuke		: clean
		-rm -f test $(LIB)

des.o		: des.h des.c
test.o		: des.h test.c