Commit | Line | Data |
---|---|---|
8a3f4fd4 DF |
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 | # | |
a7672d6a | 6 | # @(#)Makefile 5.2 (Berkeley) %G% |
8a3f4fd4 | 7 | # |
b2bfe6d1 | 8 | CFLAGS= -O |
6017a464 | 9 | DESTDIR= |
bcc152c2 | 10 | ALL= htable |
b2bfe6d1 | 11 | |
b2ac07a4 | 12 | all: ${ALL} |
b2bfe6d1 SL |
13 | |
14 | htable: htable.o parse.o scan.o | |
15 | ${CC} htable.o parse.o scan.o -o htable | |
16 | ||
17 | htable.o: htable.c htable.h | |
99d3ae94 | 18 | ${CC} ${CFLAGS} -c htable.c |
b2bfe6d1 SL |
19 | |
20 | scan.o: scan.c htable.h y.tab.h | |
21 | ||
22 | parse.o: parse.c htable.h | |
23 | ||
24 | scan.c: scan.l | |
25 | ||
26 | parse.c: parse.y | |
27 | ||
28 | y.tab.h: | |
29 | ${YACC} -d parse.y | |
30 | rm y.tab.c | |
31 | ||
32 | clean: | |
a7672d6a | 33 | rm -f ${ALL} *.o *.s parse.c scan.c y.tab.h errs |
b2bfe6d1 SL |
34 | |
35 | install: | |
b2ac07a4 | 36 | install -s htable ${DESTDIR}/etc/htable |