d8334f2a34b5ec55a7a19fa37439e828dc321bba
[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 srcdir=@srcdir@
18 include @TOP_OBJDIR@/src/config/Makefile.config
19
20
21 LIBC=   /lib/libc.a
22 SRCS=   rcp.c
23 OBJS=   rcp.o ../rsh/rcmd.o ../rsh/herror.o ../inetd/ta-rauth.o
24
25
26 CFLAGS=-I. -I${srcdir} ${OPTMZ} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS}
27 AFSLIBS = ${TOP_LIBDIR}/libkauth.a ${TOP_LIBDIR}/libubik.a \
28           ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libsys.a \
29           ${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/liblwp.a \
30           ${TOP_LIBDIR}/librxkad.a ${TOP_LIBDIR}/libdes.a \
31           ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/libcom_err.a \
32           ${TOP_LIBDIR}/util.a
33 LIBRES = 
34 LIBS = ${AFSLIBS} ${LIBRES} 
35 MAN=
36
37 include ../config/Makefile.version
38
39 all: rcp
40
41 rcp.o: AFS_component_version_number.c
42
43 system: install
44
45 rcp: ${OBJS} ${LIBS}
46         set -x; \
47         case "${SYS_NAME}" in \
48         alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux?? ) \
49            ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -non_shared ;; \
50         * ) \
51            ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} ;; \
52         esac
53
54 ../rsh/rcmd.o: ../rsh/rcmd.c
55         (cd ../rsh ; $(MAKE) rcmd.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
56
57 ../rsh/herror.o: ../rsh/herror.c
58         (cd ../rsh ; $(MAKE) herror.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
59
60 ../inetd/ta-rauth.o: ../inetd/ta-rauth.c
61         (cd ../inetd ; $(MAKE) ta-rauth.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
62
63 clean:
64 clean:
65         $(RM) -f ${OBJS} core rcp AFS_component_version_number.c
66
67 cleandir: clean
68         $(RM) -f ${MAN} tags .depend
69
70 depend: ${SRCS}
71         mkdep -p ${CFLAGS} ${SRCS}
72
73 install:   ${DESTDIR}${bindir}/rcp
74
75 ${DEST}/bin/rcp: rcp
76         ${INSTALL} $? $@
77
78 ${DESTDIR}${bindir}/rcp: rcp
79         ${INSTALL} $? $@
80
81
82 dest:   ${DEST}/bin/rcp
83