#CC=cc
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
	chmod a+r $(INSTALLTOP)/include/lhash.h

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 fluff

dclean:
	sed -e '/^# DO NOT DELETE THIS LINE/ q' Makefile >Makefile.new
	mv -f Makefile.new Makefile

lint:
	lint -DLINT -DPROTO $(SRC) >fluff

depend:
	makedepend $(INCLUDES) $(SRC)

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