xref: /freebsd-14.2/libexec/ypxfr/Makefile (revision d0b2dbfa)
1665823d0SBill Paul
2*5abb10faSEmmanuel VadotPACKAGE=	yp
3665823d0SBill PaulPROG=	ypxfr
433069882SBruce EvansSRCS=	yp_dblookup.c yp_dbwrite.c yp_error.c \
533069882SBruce Evans	ypxfr_getmap.c ypxfr_main.c ypxfr_misc.c \
633069882SBruce Evans	ypxfrd_getmap.c \
733069882SBruce Evans	${GENSRCS}
833069882SBruce EvansGENSRCS=yp.h yp_clnt.c ypxfr_clnt.c
9665823d0SBill Paul
10a251f9dcSEnji Cooper.PATH: ${SRCTOP}/usr.sbin/ypserv
11665823d0SBill Paul
12e5b5c66bSRuslan ErmilovMAN=	ypxfr.8
13e5b5c66bSRuslan Ermilov
14665823d0SBill PaulCFLAGS+= -I.
151100c001SEd Schouten
161100c001SEd SchoutenWARNS?=	2
179357f412SKris KennawayWFORMAT=0
181100c001SEd Schouten
19ee5a34ecSBaptiste DaroussinLIBADD=	rpcsvc
20665823d0SBill Paul
2133069882SBruce EvansCLEANFILES= ${GENSRCS}
22665823d0SBill Paul
23a251f9dcSEnji CooperRPCDIR= ${SRCTOP}/include/rpcsvc
245e0a19bdSDimitry AndricRPCGEN=	RPCGEN_CPP=${CPP:Q} rpcgen -I -C
25665823d0SBill Paul
2633069882SBruce Evansypxfr_clnt.c: ${RPCDIR}/yp.x
2716deb43aSBill Paul	rm -f ${.TARGET}
2816deb43aSBill Paul	${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
29665823d0SBill Paul
3033069882SBruce Evansyp_clnt.c: ${RPCDIR}/yp.x
3116deb43aSBill Paul	rm -f ${.TARGET}
3216deb43aSBill Paul	${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
33665823d0SBill Paul
3416deb43aSBill Paulyp.h: ${RPCDIR}/yp.x
3516deb43aSBill Paul	rm -f ${.TARGET}
3616deb43aSBill Paul	${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
3716deb43aSBill Paul
3833069882SBruce Evans# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
3916deb43aSBill Paul#	rm -f ${.TARGET}
4016deb43aSBill Paul#	${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
4116deb43aSBill Paul
4216deb43aSBill Paulypxfrd.h: ${RPCDIR}/ypxfrd.x
4316deb43aSBill Paul	rm -f ${.TARGET}
4416deb43aSBill Paul	${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
45665823d0SBill Paul
46665823d0SBill Paul.include <bsd.prog.mk>
47