Commit | Line | Data |
---|---|---|
0c5e171e KB |
1 | # |
2 | # Copyright (c) 1987 Regents of the University of California. | |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
366da2c6 | 6 | # @(#)Makefile 5.2 (Berkeley) %G% |
0c5e171e KB |
7 | # |
8 | CFLAGS= -O | |
9 | LIBC= /lib/libc.a | |
10 | SRCS= passwd.c | |
0c5e171e KB |
11 | |
12 | all: passwd | |
13 | ||
366da2c6 KB |
14 | passwd: ${LIBC} |
15 | ${CC} -o $@ ${CFLAGS} ${SRCS} | |
0c5e171e KB |
16 | |
17 | clean: FRC | |
366da2c6 | 18 | rm -f core passwd |
0c5e171e KB |
19 | |
20 | depend: FRC | |
366da2c6 | 21 | mkdep -p ${CFLAGS} ${SRCS} |
0c5e171e KB |
22 | |
23 | install: FRC | |
24 | install -s -o root -g bin -m 4755 passwd ${DESTDIR}/bin/passwd | |
25 | rm -f ${DESTDIR}/bin/chfn; ln ${DESTDIR}/bin/passwd ${DESTDIR}/bin/chfn | |
26 | rm -f ${DESTDIR}/bin/chsh; ln ${DESTDIR}/bin/passwd ${DESTDIR}/bin/chsh | |
27 | ||
28 | lint: FRC | |
29 | lint ${CFLAGS} ${SRCS} | |
30 | ||
31 | tags: FRC | |
32 | ctags ${SRCS} | |
33 | ||
34 | FRC: | |
35 | ||
36 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
37 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
38 | ||
366da2c6 KB |
39 | passwd: passwd.c /usr/include/sys/types.h /usr/include/sys/file.h |
40 | passwd: /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/time.h | |
41 | passwd: /usr/include/sys/resource.h /usr/include/stdio.h /usr/include/signal.h | |
42 | passwd: /usr/include/machine/trap.h /usr/include/pwd.h /usr/include/ndbm.h | |
43 | passwd: /usr/include/errno.h /usr/include/strings.h /usr/include/ctype.h | |
0c5e171e KB |
44 | |
45 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |