Merge branches 'master' and 'suser_to_priv'
[dragonfly.git] / usr.sbin / bootparamd / bootparamd / Makefile
1 #       from: @(#)Makefile      5.8 (Berkeley) 7/28/90
2 # $FreeBSD: src/usr.sbin/bootparamd/bootparamd/Makefile,v 1.15 2004/11/13 20:40:31 bz Exp $
3 # $DragonFly: src/usr.sbin/bootparamd/bootparamd/Makefile,v 1.2 2003/06/17 04:29:52 dillon Exp $
4
5 PROG=   bootparamd
6 MAN=    bootparams.5 bootparamd.8
7 SRCS=   bootparamd.c main.c ${GENSRCS}
8 GENSRCS=bootparam_prot.h bootparam_prot_svc.c bootparam_prot_xdr.c
9
10 CFLAGS+= -DTFTP_DIR=\"/tftpboot\" -I.
11 .if !defined(NO_NIS)
12 CFLAGS+= -DYP
13 .endif
14
15 CLEANFILES= ${GENSRCS}
16
17 RPCSRC= ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x
18
19 bootparam_prot_svc.c: ${RPCSRC}
20         rpcgen -C -m -o ${.TARGET} ${RPCSRC}
21
22 bootparam_prot_xdr.c: ${RPCSRC}
23         rpcgen -C -c -o ${.TARGET} ${RPCSRC}
24
25 bootparam_prot.h: ${RPCSRC}
26         rpcgen -C -h -o ${.TARGET} ${RPCSRC}
27
28 .include <bsd.prog.mk>