Commit | Line | Data |
---|---|---|
d0aeaf5a | 1 | # |
51a16129 | 2 | # Copyright (c) 1987 Regents of the University of California. |
591c7d4d | 3 | # All rights reserved. |
d0aeaf5a | 4 | # |
591c7d4d KB |
5 | # Redistribution and use in source and binary forms are permitted |
6 | # provided that this notice is preserved and that due credit is given | |
7 | # to the University of California at Berkeley. The name of the University | |
8 | # may not be used to endorse or promote products derived from this | |
9 | # software without specific prior written permission. This software | |
10 | # is provided ``as is'' without express or implied warranty. | |
11 | # | |
12 | # @(#)Makefile 5.7 (Berkeley) %G% | |
d0aeaf5a | 13 | # |
51a16129 KB |
14 | CFLAGS= -O |
15 | LIBC= /lib/libc.a | |
16 | SRCS= tset.c | |
607cd5b6 | 17 | |
51a16129 KB |
18 | all: tset |
19 | ||
591c7d4d KB |
20 | tset: ${SRCS} ${LIBC} |
21 | ${CC} -o $@ ${CFLAGS} ${SRCS} -ltermlib | |
51a16129 KB |
22 | |
23 | clean: FRC | |
24 | rm -f ${OBJS} core tset | |
25 | ||
26 | depend: FRC | |
591c7d4d | 27 | mkdep -p ${CFLAGS} ${SRCS} |
51a16129 KB |
28 | |
29 | install: FRC | |
30 | install -s -o bin -g bin -m 755 tset ${DESTDIR}/usr/ucb/tset | |
607cd5b6 JB |
31 | rm -f ${DESTDIR}/usr/ucb/reset |
32 | ln ${DESTDIR}/usr/ucb/tset ${DESTDIR}/usr/ucb/reset | |
33 | ||
51a16129 KB |
34 | lint: FRC |
35 | lint ${CFLAGS} ${SRCS} | |
36 | ||
37 | tags: FRC | |
38 | ctags ${SRCS} | |
39 | ||
40 | FRC: | |
41 | ||
42 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
43 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
44 | ||
591c7d4d KB |
45 | tset: tset.c /usr/include/ttyent.h /usr/include/sgtty.h |
46 | tset: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
47 | tset: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
48 | tset: /usr/include/stdio.h /usr/include/signal.h /usr/include/machine/trap.h | |
49 | tset: tset.delays.h | |
300a5f74 | 50 | |
51a16129 | 51 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |