0c3591334023bde53d19049968d981e4230cc37b
[openafs.git] / src / rcp / Makefile.in
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 #
17 # @(#)Makefile  5.1 (Berkeley) 9/20/88
18 #
19 DEST=@DEST@
20 TOP_INCDIR=@TOP_INCDIR@
21 TOP_LIBDIR=@TOP_LIBDIR@
22 prefix=@prefix@
23 exec_prefix=@exec_prefix@
24 bindir=@bindir@
25 sbindir=@sbindir@
26 libexecdir=@libexecdir@
27 libdir=@libdir@
28 includedir=@includedir@
29 mandir=@mandir@
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@
37
38 SHELL=/bin/sh
39 include ../config/Makefile.${SYS_NAME}
40
41 LIBC=   /lib/libc.a
42 SRCS=   rcp.c
43 OBJS=   rcp.o ../rsh/rcmd.o ../rsh/herror.o ../inetd/ta-rauth.o
44
45
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 \
52           ${TOP_LIBDIR}/util.a
53 LIBRES = 
54 LIBS = ${AFSLIBS} ${LIBRES} 
55 MAN=
56
57 include ../config/Makefile.version
58
59 all: rcp
60
61 rcp.o: AFS_component_version_number.c
62
63 system: install
64
65 rcp: ${OBJS} ${LIBS}
66         set -x; \
67         case "${SYS_NAME}" in \
68         alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux?? ) \
69            ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -non_shared ;; \
70         * ) \
71            ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} ;; \
72         esac
73
74 ../rsh/rcmd.o: ../rsh/rcmd.c
75         (cd ../rsh ; $(MAKE) rcmd.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
76
77 ../rsh/herror.o: ../rsh/herror.c
78         (cd ../rsh ; $(MAKE) herror.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
79
80 ../inetd/ta-rauth.o: ../inetd/ta-rauth.c
81         (cd ../inetd ; $(MAKE) ta-rauth.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
82
83 clean:
84 clean:
85         $(RM) -f ${OBJS} core rcp AFS_component_version_number.c
86
87 cleandir: clean
88         $(RM) -f ${MAN} tags .depend
89
90 depend: ${SRCS}
91         mkdep -p ${CFLAGS} ${SRCS}
92
93 install:   ${DESTDIR}${bindir}/rcp
94
95 ${DEST}/bin/rcp: rcp
96         ${INSTALL} $? $@
97
98 ${DESTDIR}${bindir}/rcp: rcp
99         ${INSTALL} $? $@
100
101
102 dest:   ${DEST}/bin/rcp
103