xref: /freebsd/lib/librpcsvc/Makefile (revision 837b13af68bde317414f6c0ce295df66308cc31b)
1c6063d0dSWarner Losh.include <src.opts.mk>
2e1fe3dbaSRuslan Ermilov
34781b8d8SEnji Cooper.PATH: ${SRCTOP}/include/rpcsvc
4d2845bc5SGarrett Wollman
593c43690SEmmanuel VadotPACKAGE=	runtime
693c43690SEmmanuel Vadot
7d2845bc5SGarrett WollmanLIB=    rpcsvc
8d2845bc5SGarrett Wollman
9d2845bc5SGarrett WollmanRPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \
10aba0f05dSBill Paul	rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x ypxfrd.x \
11aba0f05dSBill Paul	ypupdate_prot.x
12d2845bc5SGarrett Wollman
136c58990dSBjoern A. ZeebOTHERSRCS=  rnusers.c rstat.c rwall.c
140a11c79dSBill PaulSECRPCSRCS= secretkey.c xcrypt.c
15d2845bc5SGarrett Wollman
16e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
17*837b13afSLexi WinterOTHERSRCS+= yp_passwd.c yp_update.c
186c58990dSBjoern A. Zeeb.endif
196c58990dSBjoern A. Zeeb
205e0a19bdSDimitry AndricRPCCOM=	RPCGEN_CPP=${CPP:Q} rpcgen -C
21d2845bc5SGarrett Wollman
22c99b67a7SBryan DreweryINCDIRS= -I${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc
23d2845bc5SGarrett Wollman
24aba0f05dSBill PaulCFLAGS+= -DYP ${INCDIRS}
25aba0f05dSBill Paul
26aba0f05dSBill PaulGENSRCS= ${RPCSRCS:R:S/$/_xdr.c/g}
27aba0f05dSBill PaulSRCS+= ${GENSRCS} ${OTHERSRCS} ${SECRPCSRCS}
28aba0f05dSBill Paul
295efd9b89SBruce EvansCLEANFILES+= ${GENSRCS}
30d2845bc5SGarrett Wollman
3123490135SMatteo RiondatoWARNS?=	1
32c75cd2cbSMatteo Riondato
33d2845bc5SGarrett Wollman.include <bsd.lib.mk>
34d2845bc5SGarrett Wollman
35d2845bc5SGarrett Wollman.SUFFIXES: .x _xdr.c
36d2845bc5SGarrett Wollman
37d2845bc5SGarrett Wollman.x_xdr.c:
38755a8720SPeter Wemm	${RPCCOM} -c ${.IMPSRC} -o ${.TARGET}
39d2845bc5SGarrett Wollman
40aba0f05dSBill PaulOBJS=	${RPCSRCS:R:S/$/_xdr.o/g} ${SECRPCSRCS:R:S/$/.o/g} \
41aba0f05dSBill Paul	${OTHERSRCS:R:S/$/.o/g}
42