1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5PROG= gssd 6MAN= gssd.8 7SRCS= gssd.c gssd.h gssd_svc.c gssd_xdr.c gssd_prot.c 8 9CFLAGS+= -I. 10WARNS?= 1 11 12DPADD= ${LIBGSSAPI} 13LDADD= -lgssapi 14.if ${MK_KERBEROS_SUPPORT} != "no" 15DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR} ${LIBCRYPT} ${LIBCRYPTO} 16LDADD+= -lkrb5 -lhx509 -lasn1 -lroken -lcom_err -lcrypt -lcrypto 17.else 18CFLAGS+= -DWITHOUT_KERBEROS 19.endif 20 21CLEANFILES= gssd_svc.c gssd.h 22 23RPCSRC= ${.CURDIR}/../../sys/kgssapi/gssd.x 24RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C -M 25 26gssd_svc.c: ${RPCSRC} gssd.h 27 ${RPCGEN} -m -o ${.TARGET} ${RPCSRC} 28 29gssd_xdr.c: ${RPCSRC} gssd.h 30 ${RPCGEN} -c -o ${.TARGET} ${RPCSRC} 31 32gssd.h: ${RPCSRC} 33 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 34 35.PATH: ${.CURDIR}/../../sys/kgssapi 36 37.include <bsd.prog.mk> 38