#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved. The Berkeley Software License Agreement
# specifies the terms and conditions for redistribution.
#
# $Header:Makefile 12.1$
# $ACIS:Makefile 12.1$
# $Source: /ibm/acis/usr/src/etc/htable/RCS/Makefile,v $
#
# @(#)Makefile	4.6 11/3/83
CFLAGS=	-O
IFLAGS=	-c -s
ETCDIR=	/etc
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.c htable.h y.tab.h

parse.o: parse.c htable.h

scan.c:	scan.l

parse.c: parse.y

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

clean:
	rm -f ${ALL} *.o *.s y.tab.h errs parse.c scan.c

install: all
	install ${IFLAGS} htable ${DESTDIR}${ETCDIR}/htable
