Commit | Line | Data |
---|---|---|
810b1430 | 1 | # |
d85b20d7 KB |
2 | # Copyright (c) 1987 The Regents of the University of California. |
3 | # All rights reserved. | |
810b1430 | 4 | # |
d85b20d7 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 | # | |
7abf8d65 | 17 | # @(#)Makefile 5.5 (Berkeley) %G% |
e7c962ec | 18 | # |
e7c962ec | 19 | CFLAGS= -O |
d2748719 KB |
20 | LIBC= /lib/libc.a |
21 | SRCS= main.c init.c subr.c gettytab.c get_date.c | |
08c012d4 | 22 | OBJS= main.o init.o subr.o gettytab.o get_date.o |
7abf8d65 | 23 | MAN= getty.0 gettytab.0 |
e7c962ec | 24 | |
d2748719 | 25 | all: getty |
e7c962ec | 26 | |
d85b20d7 | 27 | getty: ${OBJS} ${LIBC} |
d2748719 | 28 | ${CC} -o $@ ${CFLAGS} ${OBJS} |
e7c962ec | 29 | |
d85b20d7 | 30 | clean: |
d2748719 | 31 | rm -f ${OBJS} core getty |
e7c962ec | 32 | |
d85b20d7 KB |
33 | cleandir: clean |
34 | rm -f ${MAN} tags .depend | |
35 | ||
36 | depend: ${SRCS} | |
d2748719 | 37 | mkdep ${CFLAGS} ${SRCS} |
e7c962ec | 38 | |
d85b20d7 | 39 | install: ${MAN} |
7abf8d65 | 40 | install -s -o bin -g bin -m 755 getty ${DESTDIR}/usr/libexec |
d2748719 | 41 | install -c -o bin -g bin -m 444 gettytab ${DESTDIR}/etc/gettytab |
7abf8d65 KB |
42 | install -c -o bin -g bin -m 444 gettytab.0 ${DESTDIR}/usr/man/cat5 |
43 | install -c -o bin -g bin -m 444 getty.0 ${DESTDIR}/usr/man/cat8 | |
66da2b0f | 44 | |
d85b20d7 | 45 | lint: ${SRCS} |
d2748719 KB |
46 | lint ${CFLAGS} ${SRCS} |
47 | ||
d85b20d7 | 48 | tags: ${SRCS} |
d2748719 | 49 | ctags ${SRCS} |