11983Swollman# from: @(#)Makefile 5.10 (Berkeley) 6/24/90 250476Speter# $FreeBSD: stable/10/lib/librpcsvc/Makefile 313610 2017-02-11 06:42:56Z ngie $ 31983Swollman 4156813Sru.include <bsd.own.mk> 5156813Sru 6313610Sngie.PATH: ${SRCTOP}/include/rpcsvc 71983Swollman 81983SwollmanLIB= rpcsvc 91983Swollman 101983SwollmanRPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \ 1126215Swpaul rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x ypxfrd.x \ 1226215Swpaul ypupdate_prot.x 131983Swollman 14137675SbzOTHERSRCS= rnusers.c rstat.c rwall.c 1536166SwpaulSECRPCSRCS= secretkey.c xcrypt.c 161983Swollman 17156813Sru.if ${MK_NIS} != "no" 18137675SbzOTHERSRCS+= yp_passwd.c yp_update.c 19137675Sbz.endif 20137675Sbz 21231118SdimRPCCOM= RPCGEN_CPP=${CPP:Q} rpcgen -C 221983Swollman 2396573SruINCDIRS= -I${DESTDIR}/usr/include/rpcsvc 241983Swollman 2526215SwpaulCFLAGS+= -DYP ${INCDIRS} 261983Swollman 2726215SwpaulGENSRCS= ${RPCSRCS:R:S/$/_xdr.c/g} 2826215SwpaulSRCS+= ${GENSRCS} ${OTHERSRCS} ${SECRPCSRCS} 2926215Swpaul 3033800SbdeCLEANFILES+= ${GENSRCS} 3126215Swpaul 32176006SmatteoWARNS?= 1 33175965Smatteo 341983Swollman.include <bsd.lib.mk> 351983Swollman 361983Swollman.SUFFIXES: .x _xdr.c 371983Swollman 381983Swollman.x_xdr.c: 3917934Speter ${RPCCOM} -c ${.IMPSRC} -o ${.TARGET} 401983Swollman 4126215SwpaulOBJS= ${RPCSRCS:R:S/$/_xdr.o/g} ${SECRPCSRCS:R:S/$/.o/g} \ 4226215Swpaul ${OTHERSRCS:R:S/$/.o/g} 43