1994-08-09 16:56:28 +00:00
|
|
|
# from: @(#)Makefile 5.10 (Berkeley) 6/24/90
|
1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1994-08-09 16:56:28 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2017-01-20 04:36:28 +00:00
|
|
|
.PATH: ${SRCTOP}/include/rpcsvc
|
1994-08-09 16:56:28 +00:00
|
|
|
|
2021-12-14 14:31:30 +00:00
|
|
|
PACKAGE= runtime
|
|
|
|
|
1994-08-09 16:56:28 +00:00
|
|
|
LIB= rpcsvc
|
|
|
|
|
|
|
|
RPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \
|
1997-05-28 04:53:07 +00:00
|
|
|
rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x ypxfrd.x \
|
|
|
|
ypupdate_prot.x
|
1994-08-09 16:56:28 +00:00
|
|
|
|
2004-11-13 20:40:32 +00:00
|
|
|
OTHERSRCS= rnusers.c rstat.c rwall.c
|
1998-05-18 21:59:53 +00:00
|
|
|
SECRPCSRCS= secretkey.c xcrypt.c
|
1994-08-09 16:56:28 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
2004-11-13 20:40:32 +00:00
|
|
|
OTHERSRCS+= yp_passwd.c yp_update.c
|
|
|
|
.endif
|
|
|
|
|
2012-02-07 09:27:07 +00:00
|
|
|
RPCCOM= RPCGEN_CPP=${CPP:Q} rpcgen -C
|
1994-08-09 16:56:28 +00:00
|
|
|
|
2017-06-19 20:47:24 +00:00
|
|
|
INCDIRS= -I${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc
|
1994-08-09 16:56:28 +00:00
|
|
|
|
1997-05-28 04:53:07 +00:00
|
|
|
CFLAGS+= -DYP ${INCDIRS}
|
|
|
|
|
|
|
|
GENSRCS= ${RPCSRCS:R:S/$/_xdr.c/g}
|
|
|
|
SRCS+= ${GENSRCS} ${OTHERSRCS} ${SECRPCSRCS}
|
|
|
|
|
1998-02-25 01:30:05 +00:00
|
|
|
CLEANFILES+= ${GENSRCS}
|
1994-08-09 16:56:28 +00:00
|
|
|
|
2008-02-05 20:03:45 +00:00
|
|
|
WARNS?= 1
|
2008-02-04 07:56:36 +00:00
|
|
|
|
1994-08-09 16:56:28 +00:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
.SUFFIXES: .x _xdr.c
|
|
|
|
|
|
|
|
.x_xdr.c:
|
1996-08-30 02:02:09 +00:00
|
|
|
${RPCCOM} -c ${.IMPSRC} -o ${.TARGET}
|
1994-08-09 16:56:28 +00:00
|
|
|
|
1997-05-28 04:53:07 +00:00
|
|
|
OBJS= ${RPCSRCS:R:S/$/_xdr.o/g} ${SECRPCSRCS:R:S/$/.o/g} \
|
|
|
|
${OTHERSRCS:R:S/$/.o/g}
|