freebsd-dev/lib/libypclnt/Makefile
Emmanuel Vadot 4c1a82cea5 pkgbase: Create a FreeBSD-utilities package and make it the default one
The default package use to be FreeBSD-runtime but it should only contain
binaries and libs enough to boot to single user and repair the system, it
is also very handy to have a package that can be tranform to a small mfsroot.
So create a new package named FreeBSD-utilities and make it the default one.
Also move a few binaries and lib into this package when it make sense.
Reviewed by:	bapt, gjb
Differential Revision:	https://reviews.freebsd.org/D21506
2019-09-05 14:15:47 +00:00

55 lines
1.1 KiB
Makefile

# $FreeBSD$
LIB= ypclnt
SHLIB_MAJOR= 4
SRCS= ypclnt_connect.c \
ypclnt_error.c \
ypclnt_free.c \
ypclnt_new.c \
ypclnt_passwd.c \
${GENSRCS}
CLEANFILES+= ${GENSRCS}
INCS= ypclnt.h
CFLAGS+= -I.
GENSRCS=yp.h \
yp_clnt.c \
yppasswd.h \
yppasswd_xdr.c \
yppasswd_clnt.c \
yppasswd_private.h \
yppasswd_private_clnt.c \
yppasswd_private_xdr.c
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -C
RPCSRC= ${SRCTOP}/include/rpcsvc/yp.x
RPCSRC_PW= ${SRCTOP}/include/rpcsvc/yppasswd.x
RPCSRC_PRIV= ${SRCTOP}/usr.sbin/rpc.yppasswdd/yppasswd_private.x
yp.h: ${RPCSRC}
${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
yp_clnt.c: ${RPCSRC}
${RPCGEN} -l -o ${.TARGET} ${RPCSRC}
yppasswd.h: ${RPCSRC_PW}
${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW}
yppasswd_xdr.c: ${RPCSRC_PW}
${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PW}
yppasswd_clnt.c: ${RPCSRC_PW}
${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW}
yppasswd_private.h: ${RPCSRC_PRIV}
${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV}
yppasswd_private_xdr.c: ${RPCSRC_PRIV}
${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV}
yppasswd_private_clnt.c: ${RPCSRC_PRIV}
${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV}
.include <bsd.lib.mk>