add cleandir
[unix-history] / usr / src / old / ratfor / Makefile
CommitLineData
120e0954
KB
1#
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.
5#
6# @(#)Makefile 5.3 (Berkeley) %G%
7#
8CFLAGS= -O
9YFLAGS= -d
10LIBC= /lib/libc.a
11SRCS= r.c r0.c r1.c r2.c rio.c rlook.c rlex.c
12OBJS= r.o r0.o r1.o r2.o rio.o rlook.o rlex.o
4dada203 13
120e0954
KB
14all: ratfor
15
16ratfor: ${OBJS} ${LIBC}
17 ${CC} -o $@ ${CFLAGS} ${OBJS}
18
19clean: FRC
20 rm -f ${OBJS} core ratfor r.c
21
22depend: ${SRCS} FRC
23 mkdep ${CFLAGS} ${SRCS}
24
25install: FRC
26 install -s -o bin -g bin -m 755 ratfor ${DESTDIR}/usr/bin/ratfor
27
28lint: ${SRCS} FRC
29 lint ${CFLAGS} ${SRCS}
30
31tags: ${SRCS} FRC
32 ctags ${SRCS}
33
34FRC:
35
36# DO NOT DELETE THIS LINE -- mkdep uses it.
37# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
38
39r.o: r.c
40r0.o: r0.c r.h /usr/include/stdio.h y.tab.h
41r1.o: r1.c r.h /usr/include/stdio.h y.tab.h
42r2.o: r2.c r.h /usr/include/stdio.h y.tab.h
43rio.o: rio.c r.h /usr/include/stdio.h y.tab.h
44rlook.o: rlook.c
45rlex.o: rlex.c r.h /usr/include/stdio.h y.tab.h
46
47# IF YOU PUT ANYTHING HERE IT WILL GO AWAY