NetBSD/usr.sbin/mopd/common/Makefile

26 lines
551 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.14 2009/08/20 21:59:12 he Exp $
2002-09-18 17:31:52 +04:00
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>
2006-05-12 05:54:57 +04:00
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4 || defined(HAVE_PCC)
2006-05-12 05:54:57 +04:00
COPTS.print.c+= -Wno-pointer-sign
.endif