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.3 (Berkeley) 9/20/88
21 TOP_SRCDIR=@TOP_SRCDIR@
22 SYS_NAME=@AFS_SYSNAME@
26 include ../config/Makefile.${SYS_NAME}
29 SRCS= rlogind.c ../rsh/rcmd.c ../rsh/herror.c ../inetd/ta-rauth.c
30 OBJS= rlogind.o ../rsh/rcmd.o ../rsh/herror.o ../inetd/ta-rauth.o
32 LIBDIR = ${DESTDIR}lib/
33 AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}afs/libprot.a ${LIBDIR}libubik.a\
34 ${LIBDIR}afs/libauth.a ${DESTDIR}lib/librxkad.a ${LIBDIR}afs/libsys.a \
35 ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
36 ${LIBDIR}afs/libsys.a \
37 ${DESTDIR}lib/librxkad.a ${DESTDIR}lib/libdes.a \
38 ${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a ${LIBDIR}afs/libaudit.a
40 LIBS = ../login/libutil.a ${RES} ${AFSLIBS}
42 CFLAGS= ${OPTMZ} -I${TOP_SRCDIR}/config -I${DESTDIR}include ${XCFLAGS}
44 include ../config/Makefile.version
50 rlogind: ${OBJS} ${LIBS} ../login/libutil.a
53 ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -ls ;; \
55 ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -lsec ;; \
56 *) ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} ;;\
59 rlogind.o: rlogind.c AFS_component_version_number.c
61 rexecd.o: rexecd.c AFS_component_version_number.c
63 rexecd: rexecd.o ${ALIBS}
66 ${CC} -o $@ ${CFLAGS} rexecd.o ${ALIBS} ${XLIBS} -ls ;; \
67 *) ${CC} -o $@ ${CFLAGS} rexecd.o ${ALIBS} ${XLIBS} ;;\
71 ../login/libutil.a : ../login/util_login.c ../login/util_logout.c ../login/util_logwtmp.c
72 ( cd ../login ; $(MAKE) libutil.a )
74 ../rsh/rcmd.o : ../rsh/rcmd.c
75 (cp AFS_component_version_number.c ../rsh/AFS_component_version_number.c ; cd ../rsh ; $(MAKE) rsh.o )
77 ../rsh/herror.o : ../rsh/herror.c
78 ( cd ../rsh ; $(MAKE) herror.o )
81 rm -f ${OBJS} core rlogind AFS_component_version_number.c
84 rm -f ${MAN} tags .depend
87 mkdep -p ${CFLAGS} ${SRCS}
90 ${INSTALL} -s -m 755 rlogind ${DESTDIR}etc/rlogind
91 ${INSTALL} -s -m 755 rexecd ${DESTDIR}etc/rexecd
94 lint ${CFLAGS} ${SRCS}