summaryrefslogtreecommitdiffstats
path: root/lib/librpcsvc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librpcsvc/Makefile')
-rw-r--r--lib/librpcsvc/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/librpcsvc/Makefile b/lib/librpcsvc/Makefile
new file mode 100644
index 0000000..8bb7458
--- /dev/null
+++ b/lib/librpcsvc/Makefile
@@ -0,0 +1,42 @@
+# from: @(#)Makefile 5.10 (Berkeley) 6/24/90
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+.PATH: ${.CURDIR}/../../include/rpcsvc
+
+LIB= rpcsvc
+
+RPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \
+ rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x ypxfrd.x \
+ ypupdate_prot.x
+
+OTHERSRCS= rnusers.c rstat.c rwall.c
+SECRPCSRCS= secretkey.c xcrypt.c
+
+.if ${MK_NIS} != "no"
+OTHERSRCS+= yp_passwd.c yp_update.c
+.endif
+
+RPCCOM = rpcgen -C
+
+INCDIRS= -I${DESTDIR}/usr/include/rpcsvc
+
+CFLAGS+= -DYP ${INCDIRS}
+
+GENSRCS= ${RPCSRCS:R:S/$/_xdr.c/g}
+SRCS+= ${GENSRCS} ${OTHERSRCS} ${SECRPCSRCS}
+
+CLEANFILES+= ${GENSRCS}
+
+WARNS?= 1
+
+.include <bsd.lib.mk>
+
+.SUFFIXES: .x _xdr.c
+
+.x_xdr.c:
+ ${RPCCOM} -c ${.IMPSRC} -o ${.TARGET}
+
+OBJS= ${RPCSRCS:R:S/$/_xdr.o/g} ${SECRPCSRCS:R:S/$/.o/g} \
+ ${OTHERSRCS:R:S/$/.o/g}
OpenPOWER on IntegriCloud