Commit | Line | Data |
---|---|---|
a21bf85e KB |
1 | # |
2 | # Copyright (c) 1988 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, advertising | |
8 | # materials, and other materials related to such redistribution and | |
9 | # use acknowledge that the software was developed by the University | |
10 | # of California, Berkeley. The name of the University may not be | |
11 | # used to endorse or promote products derived from this software | |
12 | # without specific prior written permission. THIS SOFTWARE IS PROVIDED | |
13 | # ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | |
14 | # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND | |
15 | # FITNESS FOR A PARTICULAR PURPOSE. | |
16 | # | |
f3422dd2 | 17 | # @(#)Makefile 5.2 (Berkeley) %G% |
a21bf85e KB |
18 | # |
19 | ||
20 | CFLAGS= -O | |
21 | LIBC= /lib/libc.a | |
22 | SRCS= su.c | |
f3422dd2 | 23 | OBJS= |
a21bf85e KB |
24 | MAN= su.0 |
25 | ||
26 | all: su | |
27 | ||
f3422dd2 KB |
28 | su: ${LIBC} |
29 | ${CC} -o $@ ${CFLAGS} $@.c | |
a21bf85e KB |
30 | |
31 | clean: | |
32 | rm -f ${OBJS} core su | |
33 | ||
34 | cleandir: clean | |
35 | rm -f ${MAN} tags .depend | |
36 | ||
37 | depend: ${SRCS} | |
f3422dd2 | 38 | mkdep -p ${CFLAGS} ${SRCS} |
a21bf85e KB |
39 | |
40 | install: ${MAN} | |
41 | install -s -o root -g bin -m 4755 su ${DESTDIR}/bin/su | |
42 | install -c -o bin -g bin -m 444 su.0 ${DESTDIR}/usr/man/cat1/su.0 | |
43 | ||
44 | lint: ${SRCS} | |
45 | lint ${CFLAGS} ${SRCS} | |
46 | ||
47 | tags: ${SRCS} | |
48 | ctags ${SRCS} |