Sync zoneinfo database with tzdata2010b from elsie.
[dragonfly.git] / usr.sbin / rpc.ypupdated / Makefile
blob643c9a37e86c9682384fbd65191c1c265c19aa63
1 # $FreeBSD: src/usr.sbin/rpc.ypupdated/Makefile,v 1.10 2004/12/21 08:47:34 ru Exp $
2 # $DragonFly: src/usr.sbin/rpc.ypupdated/Makefile,v 1.2 2003/06/17 04:30:02 dillon Exp $
4 .PATH: ${.CURDIR}/../ypserv ${.CURDIR}/../../libexec/ypxfr
6 PROG= rpc.ypupdated
7 NOMAN=
8 SRCS= ypupdate_prot_svc.c ypupdate_prot.h ypupdated_main.c \
9 yp_error.c update.c ypupdated_server.c \
10 yp_dblookup.c yp_dbwrite.c yp_dbdelete.c yp_dbupdate.c
11 WARNS?= 2
13 #CFLAGS+= -DYP
14 CFLAGS+= -I${.CURDIR}/../ypserv -I. -I${.CURDIR}/../../libexec/ypxfr
16 DPADD= ${LIBRPCSVC}
17 LDADD= -lrpcsvc
19 CLEANFILES= ypupdate_prot_svc.c ypupdate_prot.h
21 RPCDIR= ${DESTDIR}/usr/include/rpcsvc
22 RPCGEN= rpcgen -I -C
24 # We need to remove the 'static' keyword from _rpcsvcstate so that
25 # ypupdated_main.c can see it.
26 ypupdate_prot_svc.c: ${RPCDIR}/ypupdate_prot.x
27 rm -f ${.TARGET}
28 ${RPCGEN} -m ${RPCDIR}/ypupdate_prot.x | \
29 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
31 ypupdate_prot.h: ${RPCDIR}/ypupdate_prot.x
32 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypupdate_prot.x
34 .include <bsd.prog.mk>