usb4bsd: Fix some SCSI handling in umass
[dragonfly.git] / usr.sbin / ypserv / Makefile
blobb2187ed8c529a0a98ba21d44e2f5742d79a0659d
1 # $FreeBSD: src/usr.sbin/ypserv/Makefile,v 1.24 2004/10/18 21:42:15 ru Exp $
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
10 WARNS?= 2
12 CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I.
14 DPADD= ${LIBWRAP}
15 LDADD= -lwrap
17 CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
19 RPCGEN= rpcgen -I -C
21 # We need to remove the 'static' keyword from _rpcsvcstate so that
22 # yp_main.c can see it.
23 yp_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}
28 ypxfr_clnt.c: yp.x
29 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
31 yp.h: yp.x
32 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
34 FILES= Makefile.yp
35 FILESNAME= Makefile.dist
36 FILESDIR= /var/yp
37 SCRIPTS= ypinit.sh
39 .if !exists(${DESTDIR}${FILESDIR}/Makefile)
40 SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile
41 .endif
43 .include <bsd.prog.mk>