freebsd-dev/lib/librpcsvc/Makefile
Enji Cooper 4781b8d840 Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones
This implifies pathing in make/displayed output

MFC after:    3 weeks
Sponsored by: Dell EMC Isilon
2017-01-20 04:36:28 +00:00

44 lines
846 B
Makefile

# from: @(#)Makefile 5.10 (Berkeley) 6/24/90
# $FreeBSD$
.include <src.opts.mk>
.PATH: ${SRCTOP}/include/rpcsvc
PACKAGE=lib${LIB}
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${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}