freebsd-src/lib/librpcsvc/Makefile
Warner Losh dc36d6f9bb lib: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by:		Netflix
2023-11-26 22:23:28 -07:00

43 lines
798 B
Makefile

.include <src.opts.mk>
.PATH: ${SRCTOP}/include/rpcsvc
PACKAGE= runtime
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_CPP=${CPP:Q} rpcgen -C
INCDIRS= -I${SYSROOT:U${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}