only compile the one file
[unix-history] / usr / src / usr.bin / passwd / Makefile
CommitLineData
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#
8CFLAGS= -O
9LIBC= /lib/libc.a
10SRCS= passwd.c
0c5e171e
KB
11
12all: passwd
13
366da2c6
KB
14passwd: ${LIBC}
15 ${CC} -o $@ ${CFLAGS} ${SRCS}
0c5e171e
KB
16
17clean: FRC
366da2c6 18 rm -f core passwd
0c5e171e
KB
19
20depend: FRC
366da2c6 21 mkdep -p ${CFLAGS} ${SRCS}
0c5e171e
KB
22
23install: 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
28lint: FRC
29 lint ${CFLAGS} ${SRCS}
30
31tags: FRC
32 ctags ${SRCS}
33
34FRC:
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
39passwd: passwd.c /usr/include/sys/types.h /usr/include/sys/file.h
40passwd: /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/time.h
41passwd: /usr/include/sys/resource.h /usr/include/stdio.h /usr/include/signal.h
42passwd: /usr/include/machine/trap.h /usr/include/pwd.h /usr/include/ndbm.h
43passwd: /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