save/restore cr2, cr3 from vmcb
[freebsd-src/fkvm-freebsd.git] / usr.sbin / rpc.ypupdated / Makefile
blob4fe19c9c9cab186efe0b0d5accd4757c3ff6935a
1 # $FreeBSD$
3 .PATH: ${.CURDIR}/../ypserv ${.CURDIR}/../../libexec/ypxfr
5 PROG= rpc.ypupdated
6 NO_MAN=
7 SRCS= ypupdate_prot_svc.c ypupdate_prot.h ypupdated_main.c \
8 yp_error.c update.c ypupdated_server.c \
9 yp_dblookup.c yp_dbwrite.c yp_dbdelete.c yp_dbupdate.c
11 #CFLAGS+= -DYP
12 CFLAGS+= -I${.CURDIR}/../ypserv -I. -I${.CURDIR}/../../libexec/ypxfr
14 DPADD= ${LIBRPCSVC}
15 LDADD= -lrpcsvc
17 CLEANFILES= ypupdate_prot_svc.c ypupdate_prot.h
19 RPCDIR= ${DESTDIR}/usr/include/rpcsvc
20 RPCGEN= rpcgen -I -C
22 # We need to remove the 'static' keyword from _rpcsvcstate so that
23 # ypupdated_main.c can see it.
24 ypupdate_prot_svc.c: ${RPCDIR}/ypupdate_prot.x
25 rm -f ${.TARGET}
26 ${RPCGEN} -m ${RPCDIR}/ypupdate_prot.x | \
27 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
29 ypupdate_prot.h: ${RPCDIR}/ypupdate_prot.x
30 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypupdate_prot.x
32 .include <bsd.prog.mk>