Commit | Line | Data |
---|---|---|
622fa98b 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 | # | |
b7f2daa4 | 17 | # @(#)Makefile 5.2 (Berkeley) 5/11/89 |
622fa98b KB |
18 | # |
19 | ||
b7f2daa4 KF |
20 | |
21 | CFLAGS= -O -DKERBEROS | |
622fa98b | 22 | LIBC= /lib/libc.a |
b7f2daa4 KF |
23 | SRCS= rsh.c krcmd.c kcmd.c des_rw.c |
24 | OBJS= rsh.o krcmd.o kcmd.o des_rw.o | |
622fa98b | 25 | MAN= rsh.0 |
b7f2daa4 | 26 | VPATH= ../rlogin/kcmd:../rlogin/des |
622fa98b KB |
27 | |
28 | all: rsh | |
29 | ||
b7f2daa4 | 30 | rsh: ${LIBC} ${OBJS} |
ddaf1ad3 | 31 | ${CC} -o $@ ${CFLAGS} ${OBJS} -lkrb -ldes |
622fa98b KB |
32 | |
33 | clean: | |
b7f2daa4 | 34 | rm -f core rsh ${OBJS} |
622fa98b KB |
35 | |
36 | cleandir: clean | |
37 | rm -f ${MAN} tags .depend | |
38 | ||
39 | depend: ${SRCS} | |
40 | mkdep -p ${CFLAGS} ${SRCS} | |
41 | ||
42 | install: ${MAN} | |
ade4c407 | 43 | install -s -o root -g bin -m 4755 rsh ${DESTDIR}/usr/bin |
622fa98b KB |
44 | install -c -o bin -g bin -m 444 rsh.0 ${DESTDIR}/usr/man/cat1 |
45 | ||
46 | lint: ${SRCS} | |
47 | lint ${CFLAGS} ${SRCS} | |
48 | ||
49 | tags: ${SRCS} | |
50 | ctags ${SRCS} |