#
# $Header: Makefile,v 1.2 86/03/10 09:50:18 root Exp $
#
# $Log:	Makefile,v $
# Revision 1.2  86/03/10  09:50:18  root
# scan.o and parse.o now depend on scan.l and parse.y instead of on
# intermediary ".c" files
# 
# Revision 1.1  86/03/03  10:04:18  root
# Initial revision
# 
#
# @(#)Makefile	4.6 11/3/83
CFLAGS=	-O
DESTDIR=
ALL=	htable

all:	${ALL}

htable:	htable.o parse.o scan.o
	${CC} htable.o parse.o scan.o -o htable

htable.o: htable.c htable.h
	${CC} ${CFLAGS} -c htable.c

scan.o:	scan.l htable.h y.tab.h

parse.o: parse.y htable.h

y.tab.h:
	${YACC} -d parse.y
	rm y.tab.c

clean:
	rm -f ${ALL} *.o *.s y.tab.h errs a.out core rslts

install:
	install -s htable ${DESTDIR}/etc/htable
