#CC=gcc
CFLAGS= -g

INCLUDES=
CFLAGS= $(INCLUDES) $(CFLAG)
LIBDIR=/usr/local/lib
BINDIR=/usr/local/bin
INCDIR=/usr/local/include
MANDIR=/usr/local/man
MAN1=1
MAN3=3
SHELL=/bin/sh

OBJS=	lhash.o

GENERAL=Makefile
HEADERS=lhash.h
SRC=	lhash.c

ALL=	$(GENERAL) $(SRC) $(HEADERS)

LIB=	../libcrypto.a

all: $(LIB)

tags:
	ctags $(SRC)

install: all
	cp lhash.h $(INSTALLTOP)/include

depend:
	makedepend $(INCLUDES) $(SRC)

test:
	@echo "no test to run - this always works :-)"

$(LIB):	$(OBJS)
	ar r $(LIB) $(OBJS)
	-if test -s /bin/ranlib; then /bin/ranlib $(LIB); \
	else if test -s /usr/bin/ranlib; then /usr/bin/ranlib $(LIB); \
	else exit 0; fi; fi

clean:
	/bin/rm -f *.o tags core .nfs* *.old *.bak

dclean:
	perl -i -ne 'print; last if /^# DO NOT DELETE THIS LINE/;' Makefile

# DO NOT DELETE THIS LINE -- make depend depends on it.
