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