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