#CC=cc 
#CFLAGS= -g

INCLUDES=-I../lhash -I../rsa
CFLAGS=	$(INCLUDES) $(CFLAG)
INSTALLTOP=/usr/local/ssl

LIBDIR=/usr/local/lib
BINDIR=/usr/local/bin
INCDIR=/usr/local/include
MANDIR=/usr/local/man
MAN1=1
MAN3=3
SHELL=/bin/sh

TEST=

OBJS=	err.o err_all.o

GENERAL=Makefile
PROGS=	
HEADERS=err.h
LIBSRC=	err.c err_all.c

ALL=	$(GENERAL) $(TEST) $(LIBSRC) $(RC4)

LIB=	../libcrypto.a

all: $(LIB) $(TEST)

tags:
	ctags $(PROGS) $(LIBSRC)

depend:
	makedepend $(INCLUDES) $(PROGS) $(LIBSRC)

test:	all

$(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

tar:
	tar cf liberr.tar $(ALL)

shar:
	shar $(ALL) >liberr.shar

lint:
	lint -DLINT -DPROTO $(INCLUDES) $(PROG) $(LIBSRC)>fluff

clean:
	/bin/rm -f *.o $(TEST) tags core .nfs* *.old *.bak fluff

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

install: all
	cp rc4.h $(INSTALLTOP)/include
	chmod a+r $(INSTALLTOP)/include/err.h

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