1.include <src.opts.mk> 2 3PROG= bootparamd 4MAN= bootparams.5 bootparamd.8 5SRCS= bootparamd.c main.c ${GENSRCS} 6GENSRCS=bootparam_prot.h bootparam_prot_svc.c bootparam_prot_xdr.c 7 8CFLAGS+= -DTFTP_DIR=\"/tftpboot\" -I. 9.if ${MK_NIS} != "no" 10CFLAGS+= -DYP 11.endif 12 13CLEANFILES= ${GENSRCS} 14 15RPCSRC= ${SYSROOT:U${DESTDIR}}/usr/include/rpcsvc/bootparam_prot.x 16 17bootparam_prot_svc.c: ${RPCSRC} 18 RPCGEN_CPP=${CPP:Q} rpcgen -C -m -o ${.TARGET} ${RPCSRC} 19 20bootparam_prot_xdr.c: ${RPCSRC} 21 RPCGEN_CPP=${CPP:Q} rpcgen -C -c -o ${.TARGET} ${RPCSRC} 22 23bootparam_prot.h: ${RPCSRC} 24 RPCGEN_CPP=${CPP:Q} rpcgen -C -h -o ${.TARGET} ${RPCSRC} 25 26.include <bsd.prog.mk> 27