Initial commit of an unmodified 2.11BSD source tree taken from a boot tape.
[211bsd.git] / bin / passwd / Makefile
1 #
2 # Copyright (c) 1988 The Regents of the University of California.
3 # All rights reserved.
4 #
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 #
17 #       @(#)Makefile    5.4.2 (2.11BSD) 1996/12/1
18 #
19 CFLAGS= -I. -O
20 SEPFLAG= -i
21 SRCS=   passwd.c
22 OBJS=   passwd.o
23 MAN=    passwd.0
24 MANSRC= passwd.1
25
26 all: passwd ${MAN}
27
28 passwd: ${OBJS}
29         ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS}
30
31 ${MAN}: ${MANSRC}
32         /usr/man/manroff ${MANSRC} > ${MAN}
33
34 clean:
35         rm -f ${OBJS} ${MAN} core passwd
36
37 cleandir: clean
38         rm -f tags .depend
39
40 depend: ${SRCS}
41         mkdep ${CFLAGS} ${SRCS}
42
43 install: ${MAN} passwd
44         install -s -o root -g bin -m 4755 passwd ${DESTDIR}/bin/passwd
45         install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
46
47 lint: ${SRCS}
48         lint ${CFLAGS} ${SRCS}
49
50 tags: ${SRCS}
51         ctags ${SRCS}