daaf575910
Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
55 lines
1.1 KiB
Makefile
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 -C
|
|
RPCSRC= ${.CURDIR}/../../include/rpcsvc/yp.x
|
|
RPCSRC_PW= ${.CURDIR}/../../include/rpcsvc/yppasswd.x
|
|
RPCSRC_PRIV= ${.CURDIR}/../../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>
|