NetBSD/usr.sbin/mopd/common/Makefile
dholland d78881479c Fix broken snprintf usage; noted in PR 47976 from Henning Petersen.
As a bonus, this removes the nonliteral format arguments.
2014-07-27 04:38:03 +00:00

24 lines
487 B
Makefile

# $NetBSD: Makefile,v 1.20 2014/07/27 04:38:03 dholland Exp $
LIBISPRIVATE= yes
LIB= common
SRCS= cmp.c device.c dl.c file.c get.c log.c loop-bsd.c mopdef.c nma.c pf.c \
print.c put.c rc.c version.c
CLEANFILES= version.c
.include <bsd.own.mk>
.if ${MACHINE_CPU} == "mips"
CFLAGS+= -DNOAOUT
.endif
version.c: VERSION
${_MKTARGET_CREATE}
rm -f version.c; \
${TOOL_SED} 's/.*/char version[] = "&";/' ${.ALLSRC} > version.c
.include <bsd.lib.mk>
COPTS.print.c+= -Wno-pointer-sign