xref: /freebsd/lib/librpcsvc/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1.include <src.opts.mk>
2
3.PATH: ${SRCTOP}/include/rpcsvc
4
5PACKAGE=	runtime
6
7LIB=    rpcsvc
8
9RPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \
10	rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x ypxfrd.x \
11	ypupdate_prot.x
12
13OTHERSRCS=  rnusers.c rstat.c rwall.c
14SECRPCSRCS= secretkey.c xcrypt.c
15
16.if ${MK_NIS} != "no"
17OTHERSRCS+= yp_passwd.c yp_update.c
18.endif
19
20RPCCOM=	RPCGEN_CPP=${CPP:Q} rpcgen -C
21
22INCDIRS= -I${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc
23
24CFLAGS+= -DYP ${INCDIRS}
25
26GENSRCS= ${RPCSRCS:R:S/$/_xdr.c/g}
27SRCS+= ${GENSRCS} ${OTHERSRCS} ${SECRPCSRCS}
28
29CLEANFILES+= ${GENSRCS}
30
31WARNS?=	1
32
33.include <bsd.lib.mk>
34
35.SUFFIXES: .x _xdr.c
36
37.x_xdr.c:
38	${RPCCOM} -c ${.IMPSRC} -o ${.TARGET}
39
40OBJS=	${RPCSRCS:R:S/$/_xdr.o/g} ${SECRPCSRCS:R:S/$/.o/g} \
41	${OTHERSRCS:R:S/$/.o/g}
42