freebsd-dev/usr.sbin/rpc.ypupdated/Makefile

33 lines
891 B
Makefile
Raw Normal View History

1999-08-28 01:35:59 +00:00
# $FreeBSD$
.PATH: ${.CURDIR}/../ypserv ${.CURDIR}/../../libexec/ypxfr
PROG= rpc.ypupdated
NOMAN= yes
SRCS= ypupdate_prot_svc.c ypupdate_prot.h ypupdated_main.c \
yp_error.c update.c ypupdated_server.c \
yp_dblookup.c yp_dbwrite.c yp_dbdelete.c yp_dbupdate.c
#CFLAGS+= -DYP
2003-04-04 17:49:21 +00:00
CFLAGS+= -I${.CURDIR}/../ypserv -I. -I${.CURDIR}/../../libexec/ypxfr
1997-12-16 17:43:33 +00:00
DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc
CLEANFILES= ypupdate_prot_svc.c ypupdate_prot.h
RPCDIR= ${DESTDIR}/usr/include/rpcsvc
RPCGEN= rpcgen -I -C
# We need to remove the 'static' keyword from _rpcsvcstate so that
# ypupdated_main.c can see it.
ypupdate_prot_svc.c: ${RPCDIR}/ypupdate_prot.x
rm -f ${.TARGET}
${RPCGEN} -m ${RPCDIR}/ypupdate_prot.x | \
sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
ypupdate_prot.h: ${RPCDIR}/ypupdate_prot.x
${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypupdate_prot.x
.include <bsd.prog.mk>