1# $FreeBSD$ 2 3PROG= keyserv 4MAN= keyserv.8 5SRCS= keyserv.c setkey.c crypt_svc.c crypt_server.c crypt.h 6 7CFLAGS+= -DKEYSERV_RANDOM -DBROKEN_DES -I. 8.if $(OBJFORMAT) == elf 9CFLAGS+= -DOBJFORMAT_ELF 10.endif 11 12DPADD= ${LIBMP} ${LIBCRYPTO} ${LIBRPCSVC} 13LDADD= -lmp -lcrypto -lrpcsvc 14 15RPCDIR= ${DESTDIR}/usr/include/rpcsvc 16 17CLEANFILES= crypt_svc.c crypt.h 18 19RPCGEN= rpcgen -C 20 21crypt_svc.c: ${RPCDIR}/crypt.x 22 ${RPCGEN} -m -o ${.TARGET} ${RPCDIR}/crypt.x 23 24crypt.h: ${RPCDIR}/crypt.x 25 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/crypt.x 26 27.include <bsd.prog.mk> 28