2 # Copyright (c) 1988 Regents of the University of California.
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.
17 # @(#)Makefile 5.1 (Berkeley) 9/20/88
20 include ../config/Makefile.${SYS_NAME}
24 OBJS= rcp.o ../rsh/rcmd.o ../rsh/herror.o ../inetd/ta-rauth.o
27 INSTALL = ${DESTDIR}bin/install
28 CFLAGS = ${OPTMZ} -I${DESTDIR}include ${XCFLAGS}
29 LIBDIR = ${DESTDIR}lib/
30 AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}libubik.a\
31 ${LIBDIR}afs/libauth.a ${LIBDIR}afs/libsys.a \
32 ${LIBDIR}librx.a ${LIBDIR}liblwp.a ${DESTDIR}lib/librxkad.a\
33 ${DESTDIR}lib/libdes.a ${LIBDIR}afs/libcmd.a \
34 ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a
36 LIBS = ${AFSLIBS} ${LIBRES}
39 include ../config/Makefile.version
43 rcp.o: AFS_component_version_number.c
49 case "${SYS_NAME}" in \
50 alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux?? ) \
51 ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -non_shared ;; \
53 ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} ;; \
56 ../rsh/rcmd.o: ../rsh/rcmd.c
57 (cd ../rsh ; $(MAKE) rcmd.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
59 ../rsh/herror.o: ../rsh/herror.c
60 (cd ../rsh ; $(MAKE) herror.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
62 ../inetd/ta-rauth.o: ../inetd/ta-rauth.c
63 (cd ../inetd ; $(MAKE) ta-rauth.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
67 rm -f ${OBJS} core rcp AFS_component_version_number.c
70 rm -f ${MAN} tags .depend
73 mkdep -p ${CFLAGS} ${SRCS}
76 ${INSTALL} rcp ${DESTDIR}bin/rcp
79 lint ${CFLAGS} ${SRCS}