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