1# 2# Copyright (c) 1980 Regents of the University of California. 3# All rights reserved. The Berkeley software License Agreement 4# specifies the terms and conditions for redistribution. 5# 6# @(#)Makefile 5.2 (Berkeley) 09/18/85 7# 8CFLAGS= -O 9DESTDIR= 10ALL= htable 11 12all: ${ALL} 13 14htable: htable.o parse.o scan.o 15 ${CC} htable.o parse.o scan.o -o htable 16 17htable.o: htable.c htable.h 18 ${CC} ${CFLAGS} -c htable.c 19 20scan.o: scan.c htable.h y.tab.h 21 22parse.o: parse.c htable.h 23 24scan.c: scan.l 25 26parse.c: parse.y 27 28y.tab.h: 29 ${YACC} -d parse.y 30 rm y.tab.c 31 32clean: 33 rm -f ${ALL} *.o *.s parse.c scan.c y.tab.h errs 34 35install: 36 install -s htable ${DESTDIR}/etc/htable 37