Commit | Line | Data |
---|---|---|
70d35ad6 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 | # | |
e5eecf3c | 17 | # @(#)Makefile 5.7 (Berkeley) %G% |
70d35ad6 KB |
18 | # |
19 | ||
db4a934c | 20 | CFLAGS= -O -DKERBEROS |
70d35ad6 | 21 | LIBC= /lib/libc.a |
e5eecf3c KB |
22 | SRCS= rlogind.c des_rw.c |
23 | OBJS= des_rw.o | |
70d35ad6 | 24 | MAN= rlogind.0 |
e5eecf3c | 25 | VPATH= ../../usr.bin/rlogin/des |
70d35ad6 KB |
26 | |
27 | all: rlogind | |
28 | ||
e5eecf3c KB |
29 | rlogind: ${LIBC} ${OBJS} |
30 | ${CC} -o $@ ${CFLAGS} $@.c ${OBJS} -lutil -lkrb -ldes | |
70d35ad6 | 31 | |
70d35ad6 | 32 | clean: |
0a779320 KB |
33 | rm -f ${OBJS} core rlogind |
34 | ||
35 | cleandir: clean | |
36 | rm -f ${MAN} tags .depend | |
70d35ad6 KB |
37 | |
38 | depend: ${SRCS} | |
39 | mkdep -p ${CFLAGS} ${SRCS} | |
40 | ||
41 | install: ${MAN} | |
1e82ff5d | 42 | install -s -o bin -g bin -m 755 rlogind ${DESTDIR}/usr/libexec |
0a779320 | 43 | install -c -o bin -g bin -m 444 rlogind.0 ${DESTDIR}/usr/man/cat8 |
70d35ad6 KB |
44 | |
45 | lint: ${SRCS} | |
46 | lint ${CFLAGS} ${SRCS} | |
47 | ||
48 | tags: ${SRCS} | |
49 | ctags ${SRCS} |