1998-05-10 16:03:17 +00:00
|
|
|
# $Id: Makefile,v 1.4 1998/03/06 14:40:42 bde Exp $
|
1997-05-28 15:47:10 +00:00
|
|
|
|
|
|
|
PROG= rpc.ypupdated
|
1998-03-06 14:40:42 +00:00
|
|
|
SRCS= ypupdate_prot_svc.c ypupdate_prot.h ypupdated_main.c \
|
1997-05-28 15:47:10 +00:00
|
|
|
yp_error.c update.c ypupdated_server.c \
|
|
|
|
yp_dblookup.c yp_dbwrite.c yp_dbdelete.c yp_dbupdate.c
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../ypserv ${.CURDIR}/../../libexec/ypxfr
|
|
|
|
|
|
|
|
RPCDIR= ${DESTDIR}/usr/include/rpcsvc
|
|
|
|
|
1997-05-29 13:59:22 +00:00
|
|
|
NOMAN= yes
|
1997-05-28 15:47:10 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I${.CURDIR}/../ypserv -I.
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../libexec/ypxfr
|
|
|
|
|
|
|
|
#CFLAGS+= -DYP
|
|
|
|
|
1997-12-16 17:43:33 +00:00
|
|
|
DPADD= ${LIBRPCSVC}
|
|
|
|
LDADD= -lrpcsvc
|
1997-05-28 15:47:10 +00:00
|
|
|
|
|
|
|
CLEANFILES= ypupdate_prot_svc.c ypupdate_prot.h
|
|
|
|
|
|
|
|
RPCGEN= rpcgen -I -C
|
|
|
|
|
|
|
|
# We need to remove the 'static' keyword from _rpcsvcstate so that
|
|
|
|
# ypupdated_main.c can see it.
|
1998-05-10 16:03:17 +00:00
|
|
|
ypupdate_prot_svc.c: ${RPCDIR}/ypupdate_prot.x
|
1997-05-28 15:47:10 +00:00
|
|
|
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>
|