Commit | Line | Data |
---|---|---|
120e0954 | 1 | # |
71fe9140 KB |
2 | # Copyright (c) 1987 The Regents of the University of California. |
3 | # All rights reserved. | |
120e0954 | 4 | # |
71fe9140 KB |
5 | # Redistribution and use in source and binary forms are permitted |
6 | # provided that the above copyright notice and this paragraph are | |
7 | # duplicated in all such forms and that any documentation, | |
8 | # advertising materials, and other materials related to such | |
9 | # distribution and use acknowledge that the software was developed | |
10 | # by the University of California, Berkeley. The name of the | |
11 | # University may not be used to endorse or promote products derived | |
12 | # from this software without specific prior written permission. | |
13 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
16 | # | |
dc0e9d50 | 17 | # @(#)Makefile 5.5 (Berkeley) %G% |
120e0954 KB |
18 | # |
19 | CFLAGS= -O | |
20 | YFLAGS= -d | |
21 | LIBC= /lib/libc.a | |
22 | SRCS= r.c r0.c r1.c r2.c rio.c rlook.c rlex.c | |
23 | OBJS= r.o r0.o r1.o r2.o rio.o rlook.o rlex.o | |
71fe9140 | 24 | MAN= ratfor.0 |
4dada203 | 25 | |
120e0954 KB |
26 | all: ratfor |
27 | ||
71fe9140 | 28 | ratfor: ${OBJS} ${LIBC} |
120e0954 KB |
29 | ${CC} -o $@ ${CFLAGS} ${OBJS} |
30 | ||
71fe9140 | 31 | clean: |
120e0954 KB |
32 | rm -f ${OBJS} core ratfor r.c |
33 | ||
71fe9140 KB |
34 | cleandir: clean |
35 | rm -f ${MAN} tags .depend | |
36 | ||
37 | depend: ${SRCS} | |
120e0954 KB |
38 | mkdep ${CFLAGS} ${SRCS} |
39 | ||
71fe9140 | 40 | install: ${MAN} |
dc0e9d50 | 41 | install -s -o bin -g bin -m 755 ratfor ${DESTDIR}/usr/bin |
71fe9140 | 42 | install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 |
120e0954 | 43 | |
71fe9140 | 44 | lint: ${SRCS} |
120e0954 KB |
45 | lint ${CFLAGS} ${SRCS} |
46 | ||
71fe9140 | 47 | tags: ${SRCS} |
120e0954 | 48 | ctags ${SRCS} |