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 TOP_INCDIR=@TOP_INCDIR@
21 TOP_LIBDIR=@TOP_LIBDIR@
23 exec_prefix=@exec_prefix@
26 libexecdir=@libexecdir@
28 includedir=@includedir@
30 afssrvbindir=@afssrvbindir@
31 afssrvsbindir=@afssrvsbindir@
32 afssrvlibexecdir=@afssrvlibexecdir@
33 COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
34 RXGEN=${TOP_SRCDIR}/rxgen/rxgen
35 TOP_SRCDIR=@TOP_SRCDIR@
36 SYS_NAME=@AFS_SYSNAME@
39 include ../config/Makefile.${SYS_NAME}
43 OBJS= rcp.o ../rsh/rcmd.o ../rsh/herror.o ../inetd/ta-rauth.o
46 CFLAGS=${OPTMZ} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
47 AFSLIBS = ${TOP_LIBDIR}/libkauth.a ${TOP_LIBDIR}/libubik.a \
48 ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libsys.a \
49 ${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/liblwp.a \
50 ${TOP_LIBDIR}/librxkad.a ${TOP_LIBDIR}/libdes.a \
51 ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/libcom_err.a \
54 LIBS = ${AFSLIBS} ${LIBRES}
57 include ../config/Makefile.version
61 rcp.o: AFS_component_version_number.c
67 case "${SYS_NAME}" in \
68 alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux?? ) \
69 ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -non_shared ;; \
71 ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} ;; \
74 ../rsh/rcmd.o: ../rsh/rcmd.c
75 (cd ../rsh ; $(MAKE) rcmd.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
77 ../rsh/herror.o: ../rsh/herror.c
78 (cd ../rsh ; $(MAKE) herror.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
80 ../inetd/ta-rauth.o: ../inetd/ta-rauth.c
81 (cd ../inetd ; $(MAKE) ta-rauth.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
85 $(RM) -f ${OBJS} core rcp AFS_component_version_number.c
88 $(RM) -f ${MAN} tags .depend
91 mkdep -p ${CFLAGS} ${SRCS}
93 install: ${DESTDIR}${bindir}/rcp
98 ${DESTDIR}${bindir}/rcp: rcp
102 dest: ${DEST}/bin/rcp