Commit | Line | Data |
---|---|---|
ecf27307 | 1 | # |
51a16129 | 2 | # Copyright (c) 1987 Regents of the University of California. |
5ff67f98 DF |
3 | # All rights reserved. The Berkeley software License Agreement |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
51a16129 | 6 | # @(#)Makefile 5.3 (Berkeley) %G% |
5ff67f98 | 7 | # |
51a16129 KB |
8 | CFLAGS= -O |
9 | LIBC= /lib/libc.a | |
10 | SRCS= msgs.c | |
11 | OBJS= msgs.o | |
12 | ||
13 | all: msgs | |
14 | ||
15 | msgs: ${OBJS} ${LIBC} | |
16 | ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermlib | |
17 | ||
18 | clean: FRC | |
19 | rm -f ${OBJS} core msgs | |
20 | ||
21 | depend: FRC | |
22 | mkdep ${CFLAGS} ${SRCS} | |
23 | ||
24 | install: FRC | |
25 | install -s -o bin -g bin -m 755 msgs ${DESTDIR}/usr/ucb/msgs | |
26 | ||
27 | lint: FRC | |
28 | lint ${CFLAGS} ${SRCS} | |
29 | ||
30 | tags: FRC | |
31 | ctags ${SRCS} | |
32 | ||
33 | FRC: | |
34 | ||
35 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
36 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
37 | ||
38 | msgs.o: msgs.c /usr/include/stdio.h /usr/include/sys/param.h | |
39 | msgs.o: /usr/include/sys/types.h /usr/include/signal.h | |
40 | msgs.o: /usr/include/machine/machparam.h /usr/include/signal.h | |
41 | msgs.o: /usr/include/sys/dir.h /usr/include/sys/stat.h /usr/include/ctype.h | |
42 | msgs.o: /usr/include/pwd.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
43 | msgs.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
44 | msgs.o: /usr/include/setjmp.h | |
45 | msgs.o:msgs.h | |
46 | ||
47 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |