summaryrefslogtreecommitdiffstats
path: root/usr.sbin/gssd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/gssd/Makefile')
-rw-r--r--usr.sbin/gssd/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/usr.sbin/gssd/Makefile b/usr.sbin/gssd/Makefile
new file mode 100644
index 0000000..3663bf9
--- /dev/null
+++ b/usr.sbin/gssd/Makefile
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+PROG= gssd
+MAN= gssd.8
+SRCS= gssd.c gssd.h gssd_svc.c gssd_xdr.c gssd_prot.c
+
+CFLAGS+= -I.
+WARNS?= 1
+
+DPADD= ${LIBGSSAPI}
+LDADD= -lgssapi
+.if ${MK_KERBEROS_SUPPORT} != "no"
+DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR} ${LIBCRYPT} ${LIBCRYPTO}
+LDADD+= -lkrb5 -lhx509 -lasn1 -lroken -lcom_err -lcrypt -lcrypto
+.else
+CFLAGS+= -DWITHOUT_KERBEROS
+.endif
+
+CLEANFILES= gssd_svc.c gssd.h
+
+RPCSRC= ${.CURDIR}/../../sys/kgssapi/gssd.x
+RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C -M
+
+gssd_svc.c: ${RPCSRC} gssd.h
+ ${RPCGEN} -m -o ${.TARGET} ${RPCSRC}
+
+gssd_xdr.c: ${RPCSRC} gssd.h
+ ${RPCGEN} -c -o ${.TARGET} ${RPCSRC}
+
+gssd.h: ${RPCSRC}
+ ${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
+
+.PATH: ${.CURDIR}/../../sys/kgssapi
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud