Commit | Line | Data |
---|---|---|
5b2ebd96 KB |
1 | # |
2 | # Copyright (c) 1988 Regents of the University of California. | |
3 | # All rights reserved. | |
4 | # | |
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, advertising | |
8 | # materials, and other materials related to such redistribution and | |
9 | # use acknowledge that the software was developed by the University | |
10 | # of California, Berkeley. The name of the University may not be | |
11 | # used to endorse or promote products derived from this software | |
12 | # without specific prior written permission. THIS SOFTWARE IS PROVIDED | |
13 | # ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | |
14 | # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND | |
15 | # FITNESS FOR A PARTICULAR PURPOSE. | |
16 | # | |
c861cac9 | 17 | # @(#)Makefile 5.2 (Berkeley) %G% |
5b2ebd96 KB |
18 | # |
19 | ||
20 | CFLAGS= -O | |
21 | LIBC= /lib/libc.a | |
22 | SRCS= wall.c | |
23 | MAN= wall.0 | |
24 | ||
25 | all: wall | |
26 | ||
27 | wall: ${LIBC} | |
28 | ${CC} -o $@ ${CFLAGS} $@.c | |
29 | ||
30 | clean: | |
31 | rm -f ${OBJS} core wall | |
32 | ||
33 | cleandir: clean | |
34 | rm -f ${MAN} tags .depend | |
35 | ||
36 | depend: ${SRCS} | |
37 | mkdep -p ${CFLAGS} ${SRCS} | |
38 | ||
39 | install: ${MAN} | |
c861cac9 KB |
40 | install -s -o bin -g tty -m 2755 wall ${DESTDIR}/usr/bin |
41 | install -c -o bin -g bin -m 444 wall.0 ${DESTDIR}/usr/man/cat1 | |
5b2ebd96 KB |
42 | |
43 | lint: ${SRCS} | |
44 | lint ${CFLAGS} ${SRCS} | |
45 | ||
46 | tags: ${SRCS} | |
47 | ctags ${SRCS} |