11983Swollman# from: @(#)Makefile 5.10 (Berkeley) 6/24/90 250476Speter# $FreeBSD: stable/11/lib/librpcsvc/Makefile 313538 2017-02-10 07:32:40Z ngie $ 31983Swollman 4265420Simp.include <src.opts.mk> 5156813Sru 6313538Sngie.PATH: ${SRCTOP}/include/rpcsvc 71983Swollman 8298107SgjbPACKAGE=lib${LIB} 91983SwollmanLIB= rpcsvc 101983Swollman 111983SwollmanRPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \ 1226215Swpaul rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x ypxfrd.x \ 1326215Swpaul ypupdate_prot.x 141983Swollman 15137675SbzOTHERSRCS= rnusers.c rstat.c rwall.c 1636166SwpaulSECRPCSRCS= secretkey.c xcrypt.c 171983Swollman 18156813Sru.if ${MK_NIS} != "no" 19137675SbzOTHERSRCS+= yp_passwd.c yp_update.c 20137675Sbz.endif 21137675Sbz 22231118SdimRPCCOM= RPCGEN_CPP=${CPP:Q} rpcgen -C 231983Swollman 2496573SruINCDIRS= -I${DESTDIR}/usr/include/rpcsvc 251983Swollman 2626215SwpaulCFLAGS+= -DYP ${INCDIRS} 271983Swollman 2826215SwpaulGENSRCS= ${RPCSRCS:R:S/$/_xdr.c/g} 2926215SwpaulSRCS+= ${GENSRCS} ${OTHERSRCS} ${SECRPCSRCS} 3026215Swpaul 3133800SbdeCLEANFILES+= ${GENSRCS} 3226215Swpaul 33176006SmatteoWARNS?= 1 34175965Smatteo 351983Swollman.include <bsd.lib.mk> 361983Swollman 371983Swollman.SUFFIXES: .x _xdr.c 381983Swollman 391983Swollman.x_xdr.c: 4017934Speter ${RPCCOM} -c ${.IMPSRC} -o ${.TARGET} 411983Swollman 4226215SwpaulOBJS= ${RPCSRCS:R:S/$/_xdr.o/g} ${SECRPCSRCS:R:S/$/.o/g} \ 4326215Swpaul ${OTHERSRCS:R:S/$/.o/g} 44