summaryrefslogtreecommitdiff
path: root/usr.sbin/mopd/common/Makefile
blob: f893ae2973e77008e3a78a4fa714c94ec95c3ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#	$NetBSD: Makefile,v 1.14 2009/08/20 21:59:12 he 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>

.if defined(HAVE_GCC) && ${HAVE_GCC} == 4 || defined(HAVE_PCC)
COPTS.print.c+=	-Wno-pointer-sign
.endif