Update READMEs for latest import.
[dragonfly.git] / usr.sbin / rpc.ypupdated / Makefile
blob7f1d33b71c1059ac17bbe093a54b85af7faf6eb7
1 # $FreeBSD: src/usr.sbin/rpc.ypupdated/Makefile,v 1.6 1999/08/28 01:19:43 peter Exp $
2 # $DragonFly: src/usr.sbin/rpc.ypupdated/Makefile,v 1.2 2003/06/17 04:30:02 dillon Exp $
4 PROG= rpc.ypupdated
5 SRCS= ypupdate_prot_svc.c ypupdate_prot.h ypupdated_main.c \
6 yp_error.c update.c ypupdated_server.c \
7 yp_dblookup.c yp_dbwrite.c yp_dbdelete.c yp_dbupdate.c
9 .PATH: ${.CURDIR}/../ypserv ${.CURDIR}/../../libexec/ypxfr
11 RPCDIR= ${DESTDIR}/usr/include/rpcsvc
13 NOMAN= yes
15 CFLAGS+= -I${.CURDIR}/../ypserv -I.
16 CFLAGS+= -I${.CURDIR}/../../libexec/ypxfr
18 #CFLAGS+= -DYP
20 DPADD= ${LIBRPCSVC}
21 LDADD= -lrpcsvc
23 CLEANFILES= ypupdate_prot_svc.c ypupdate_prot.h
25 RPCGEN= rpcgen -I -C
27 # We need to remove the 'static' keyword from _rpcsvcstate so that
28 # ypupdated_main.c can see it.
29 ypupdate_prot_svc.c: ${RPCDIR}/ypupdate_prot.x
30 rm -f ${.TARGET}
31 ${RPCGEN} -m ${RPCDIR}/ypupdate_prot.x | \
32 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
34 ypupdate_prot.h: ${RPCDIR}/ypupdate_prot.x
35 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypupdate_prot.x
37 .include <bsd.prog.mk>