mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 23:05:49 +01:00
3bdf775801
and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
35 lines
916 B
Makefile
35 lines
916 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../ypserv ${.CURDIR}/../../libexec/ypxfr
|
|
|
|
PROG= rpc.ypupdated
|
|
MAN=
|
|
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
|
|
CFLAGS+= -I${.CURDIR}/../ypserv -I. -I${.CURDIR}/../../libexec/ypxfr
|
|
|
|
WARNS?= 1
|
|
|
|
DPADD= ${LIBRPCSVC}
|
|
LDADD= -lrpcsvc
|
|
|
|
CLEANFILES= ypupdate_prot_svc.c ypupdate_prot.h
|
|
|
|
RPCDIR= ${DESTDIR}/usr/include/rpcsvc
|
|
RPCGEN= RPCGEN_CPP=${CPP:Q} 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>
|