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