5e0a19bdee
set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp. MFC after: 1 week
27 lines
517 B
Makefile
27 lines
517 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= keyserv
|
|
MAN= keyserv.8
|
|
SRCS= keyserv.c setkey.c crypt_svc.c crypt_server.c crypt.h
|
|
|
|
CFLAGS+= -DKEYSERV_RANDOM -DBROKEN_DES -I.
|
|
|
|
DPADD= ${LIBMP} ${LIBCRYPTO} ${LIBRPCSVC}
|
|
LDADD= -lmp -lcrypto -lrpcsvc
|
|
|
|
WARNS?= 1
|
|
|
|
RPCDIR= ${DESTDIR}/usr/include/rpcsvc
|
|
|
|
CLEANFILES= crypt_svc.c crypt.h
|
|
|
|
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -C
|
|
|
|
crypt_svc.c: ${RPCDIR}/crypt.x
|
|
${RPCGEN} -m -o ${.TARGET} ${RPCDIR}/crypt.x
|
|
|
|
crypt.h: ${RPCDIR}/crypt.x
|
|
${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/crypt.x
|
|
|
|
.include <bsd.prog.mk>
|