kernel - Reduce lwp_signotify() latency
[dragonfly.git] / usr.sbin / ypserv / Makefile
CommitLineData
ce0e08e2 1# $FreeBSD: src/usr.sbin/ypserv/Makefile,v 1.24 2004/10/18 21:42:15 ru Exp $
984263bc 2
ce0e08e2
PA
3RPCDIR= ${.CURDIR}/../../include/rpcsvc
4.PATH: ${RPCDIR}
5
984263bc 6PROG= ypserv
ce0e08e2 7MAN= ypserv.8 ypinit.8
984263bc
MD
8SRCS= 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
51798e10 10WARNS?= 2
984263bc 11
ce0e08e2 12CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I.
984263bc 13
ce0e08e2
PA
14DPADD= ${LIBWRAP}
15LDADD= -lwrap
984263bc
MD
16
17CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
18
984263bc
MD
19RPCGEN= rpcgen -I -C
20
21# We need to remove the 'static' keyword from _rpcsvcstate so that
22# yp_main.c can see it.
23yp_svc.c: yp.x
24 rm -f ${.TARGET}
25 ${RPCGEN} -DYPSERV_ONLY -m ${RPCDIR}/yp.x | \
26 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
27
28ypxfr_clnt.c: yp.x
29 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
30
31yp.h: yp.x
32 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
33
ce0e08e2
PA
34FILES= Makefile.yp
35FILESNAME= Makefile.dist
36FILESDIR= /var/yp
37SCRIPTS= ypinit.sh
38
39.if !exists(${DESTDIR}${FILESDIR}/Makefile)
40SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile
41.endif
984263bc
MD
42
43.include <bsd.prog.mk>