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