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