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
22 include ../config/Makefile.${SYS_NAME}
25 SRCS= rlogind.c ../rsh/rcmd.c ../rsh/herror.c ../inetd/ta-rauth.c
26 OBJS= rlogind.o ../rsh/rcmd.o ../rsh/herror.o ../inetd/ta-rauth.o
28 LIBDIR = ${DESTDIR}lib/
29 AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}afs/libprot.a ${LIBDIR}libubik.a\
30 ${LIBDIR}afs/libauth.a ${DESTDIR}lib/librxkad.a ${LIBDIR}afs/libsys.a \
31 ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
32 ${LIBDIR}afs/libsys.a \
33 ${DESTDIR}lib/librxkad.a ${DESTDIR}lib/libdes.a \
34 ${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a ${LIBDIR}afs/libaudit.a
36 LIBS = ../login/libutil.a ${RES} ${AFSLIBS}
38 CFLAGS= ${OPTMZ} -I${DESTDIR}include ${XCFLAGS}
40 include ../config/Makefile.version
46 rlogind: ${OBJS} ${LIBS} ../login/libutil.a
49 ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -ls ;; \
51 ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -lsec ;; \
52 *) ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} ;;\
55 rlogind.o: rlogind.c AFS_component_version_number.c
57 rexecd.o: rexecd.c AFS_component_version_number.c
59 rexecd: rexecd.o ${ALIBS}
62 ${CC} -o $@ ${CFLAGS} rexecd.o ${ALIBS} ${XLIBS} -ls ;; \
63 *) ${CC} -o $@ ${CFLAGS} rexecd.o ${ALIBS} ${XLIBS} ;;\
67 ../login/libutil.a : ../login/util_login.c ../login/util_logout.c ../login/util_logwtmp.c
68 ( cd ../login ; $(MAKE) libutil.a )
70 ../rsh/rcmd.o : ../rsh/rcmd.c
71 (cp AFS_component_version_number.c ../rsh/AFS_component_version_number.c ; cd ../rsh ; $(MAKE) rsh.o )
73 ../rsh/herror.o : ../rsh/herror.c
74 ( cd ../rsh ; $(MAKE) herror.o )
77 rm -f ${OBJS} core rlogind AFS_component_version_number.c
80 rm -f ${MAN} tags .depend
83 mkdep -p ${CFLAGS} ${SRCS}
86 ${INSTALL} -s -m 755 rlogind ${DESTDIR}etc/rlogind
87 ${INSTALL} -s -m 755 rexecd ${DESTDIR}etc/rexecd
90 lint ${CFLAGS} ${SRCS}