1 # $FreeBSD: src/usr.sbin/ypserv/Makefile,v 1.24 2004/10/18 21:42:15 ru Exp $
2 # $DragonFly: src/usr.sbin/ypserv/Makefile,v 1.3 2005/07/07 11:49:57 corecode Exp $
4 RPCDIR= ${.CURDIR}/../../include/rpcsvc
9 SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \
10 ypxfr_clnt.c yp.h yp_main.c yp_error.c yp_access.c yp_svc_udp.c
13 CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I.
18 CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
22 # We need to remove the 'static' keyword from _rpcsvcstate so that
23 # yp_main.c can see it.
26 ${RPCGEN} -DYPSERV_ONLY -m ${RPCDIR}/yp.x | \
27 sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
30 ${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
33 ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
36 FILESNAME= Makefile.dist
40 .if !exists(${DESTDIR}${FILESDIR}/Makefile)
41 SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile
44 .include <bsd.prog.mk>