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