save/restore cr2, cr3 from vmcb
[freebsd-src/fkvm-freebsd.git] / usr.sbin / ypserv / Makefile
blobc1b2df30478b56988c7989efcd0ec14919f767f6
1 # $FreeBSD$
3 RPCDIR= ${.CURDIR}/../../include/rpcsvc
4 .PATH: ${RPCDIR}
6 PROG= ypserv
7 MAN= ypserv.8 ypinit.8
8 SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \
9 ypxfr_clnt.c yp.h yp_main.c yp_error.c yp_access.c yp_svc_udp.c
11 CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I.
13 DPADD= ${LIBWRAP}
14 LDADD= -lwrap
16 CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
18 RPCGEN= rpcgen -I -C
20 # We need to remove the 'static' keyword from _rpcsvcstate so that
21 # yp_main.c can see it.
22 yp_svc.c: yp.x
23 rm -f ${.TARGET}
24 ${RPCGEN} -DYPSERV_ONLY -m ${RPCDIR}/yp.x | \
25 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
27 ypxfr_clnt.c: yp.x
28 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
30 yp.h: yp.x
31 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
33 FILES= Makefile.yp
34 FILESNAME= Makefile.dist
35 FILESDIR= /var/yp
36 SCRIPTS= ypinit.sh
38 .if !exists(${DESTDIR}${FILESDIR}/Makefile)
39 SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile
40 .endif
42 .include <bsd.prog.mk>