f1e39809dd
Etched onto my brain with acid by: Mark Murray.
36 lines
930 B
Makefile
36 lines
930 B
Makefile
# $Id: Makefile,v 1.1.1.1 1997/05/28 15:47:10 wpaul Exp $
|
|
|
|
PROG= rpc.ypupdated
|
|
SRCS= ypupdate_prot_svc.c ypupdated_main.c \
|
|
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
|
|
|
|
NOMAN= yes
|
|
|
|
CFLAGS+= -I${.CURDIR}/../ypserv -I.
|
|
CFLAGS+= -I${.CURDIR}/../../libexec/ypxfr
|
|
|
|
#CFLAGS+= -DYP
|
|
|
|
LDADD+= -lrpcsvc
|
|
|
|
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.
|
|
ypupdate_prot_svc.c: ${RPCDIR}/ypupdate_prot.x ypupdate_prot.h
|
|
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>
|