mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
1100c00131
Just like bin/ and sbin/, I think setting WARNS to the highest value possible will make it more attractive for people to fix warnings. - The WARNS variable is set in the Makefile in the directory of the application itself, making it more likely that it will be removed out of curiosity to see what happens. - New applications will most likely build with WARNS=6 out of the box, because the author would more likely fix the warnings during development than lower WARNS. Unfortunately almost all apps in libexec require a lowered value of WARNS.
48 lines
907 B
Makefile
48 lines
907 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= ypxfr
|
|
SRCS= yp_dblookup.c yp_dbwrite.c yp_error.c \
|
|
ypxfr_getmap.c ypxfr_main.c ypxfr_misc.c \
|
|
ypxfrd_getmap.c \
|
|
${GENSRCS}
|
|
GENSRCS=yp.h yp_clnt.c ypxfr_clnt.c
|
|
|
|
.PATH: ${.CURDIR}/../../usr.sbin/ypserv
|
|
|
|
MAN= ypxfr.8
|
|
|
|
CFLAGS+= -I.
|
|
|
|
WARNS?= 2
|
|
WFORMAT=0
|
|
|
|
DPADD= ${LIBRPCSVC}
|
|
LDADD= -lrpcsvc
|
|
|
|
CLEANFILES= ${GENSRCS}
|
|
|
|
RPCDIR= ${.CURDIR}/../../include/rpcsvc
|
|
RPCGEN= rpcgen -I -C
|
|
|
|
ypxfr_clnt.c: ${RPCDIR}/yp.x
|
|
rm -f ${.TARGET}
|
|
${RPCGEN} -DYPPUSH_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
|
|
|
|
yp_clnt.c: ${RPCDIR}/yp.x
|
|
rm -f ${.TARGET}
|
|
${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${RPCDIR}/yp.x
|
|
|
|
yp.h: ${RPCDIR}/yp.x
|
|
rm -f ${.TARGET}
|
|
${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x
|
|
|
|
# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
|
|
# rm -f ${.TARGET}
|
|
# ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/ypxfrd.x
|
|
|
|
ypxfrd.h: ${RPCDIR}/ypxfrd.x
|
|
rm -f ${.TARGET}
|
|
${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
|
|
|
|
.include <bsd.prog.mk>
|