2009-08-21 01:59:12 +04:00
|
|
|
# $NetBSD: Makefile,v 1.14 2009/08/20 21:59:12 he Exp $
|
2002-09-18 17:31:52 +04:00
|
|
|
|
2008-05-03 18:48:30 +04:00
|
|
|
LIBISPRIVATE= yes
|
1997-10-16 11:36:12 +04:00
|
|
|
|
|
|
|
LIB= common
|
2003-04-20 04:17:22 +04:00
|
|
|
SRCS= cmp.c device.c dl.c file.c get.c log.c loop-bsd.c mopdef.c nma.c pf.c \
|
1997-10-16 11:36:12 +04:00
|
|
|
print.c put.c rc.c version.c
|
|
|
|
CLEANFILES= version.c
|
|
|
|
|
2009-08-21 01:59:12 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.if ${MACHINE_CPU} == "mips"
|
|
|
|
CFLAGS+= -DNOAOUT
|
|
|
|
.endif
|
|
|
|
|
1997-10-16 11:36:12 +04:00
|
|
|
version.c: VERSION
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
1997-10-16 11:36:12 +04:00
|
|
|
rm -f version.c; \
|
2008-10-26 02:27:34 +04:00
|
|
|
${TOOL_SED} 's/.*/char version[] = "&";/' ${.ALLSRC} > version.c
|
1997-10-16 11:36:12 +04:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
2006-05-12 05:54:57 +04:00
|
|
|
|
2008-08-29 04:02:21 +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
|