Commit | Line | Data |
---|---|---|
51ba0478 | 1 | # |
d73635c8 KB |
2 | # Copyright (c) 1987 Regents of the University of California. |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
51ba0478 | 5 | # |
d73635c8 KB |
6 | # @(#)Makefile 4.4 (Berkeley) %G% |
7 | # | |
8 | CFLAGS= -O -DWORD32 | |
9 | LIBC= /lib/libc.a | |
10 | SRCS= y1.c y2.c y3.c y4.c | |
11 | OBJS= y1.o y2.o y3.o y4.o | |
51ba0478 RH |
12 | |
13 | all: yacc | |
14 | ||
d73635c8 KB |
15 | yacc: ${OBJS} ${LIBC} |
16 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
17 | ||
18 | clean: FRC | |
19 | rm -f ${OBJS} core yacc | |
20 | ||
21 | depend: FRC | |
22 | mkdep ${CFLAGS} ${SRCS} | |
23 | ||
24 | install: FRC | |
25 | install -s -o bin -g bin -m 755 yacc ${DESTDIR}/usr/bin/yacc | |
26 | install -c -o bin -g bin -m 755 yaccpar ${DESTDIR}/usr/lib/yaccpar | |
27 | ||
28 | lint: FRC | |
29 | lint ${CFLAGS} ${SRCS} | |
30 | ||
31 | tags: FRC | |
32 | ctags ${SRCS} | |
33 | ||
34 | FRC: | |
35 | ||
36 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
37 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
51ba0478 | 38 | |
d73635c8 KB |
39 | y1.o: y1.c dextern /usr/include/stdio.h /usr/include/ctype.h files |
40 | y2.o: y2.c dextern /usr/include/stdio.h /usr/include/ctype.h files | |
41 | y3.o: y3.c dextern /usr/include/stdio.h /usr/include/ctype.h files | |
42 | y4.o: y4.c dextern /usr/include/stdio.h /usr/include/ctype.h files | |
a8629c9c | 43 | |
d73635c8 | 44 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |