summaryrefslogtreecommitdiffstats
path: root/lib/libsysdecode/Makefile
blob: e1e69fef64e893ce8bf79dab73cebcc232a0cef8 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $FreeBSD$

.include <src.opts.mk>

LIB=	sysdecode

SRCS=	ioctl.c syscallnames.c utrace.c
INCS=	sysdecode.h

CFLAGS+= -I${.CURDIR}/../../sys

MAN+=	sysdecode.3 \
	sysdecode_ioctlname.3 \
	sysdecode_syscallnames.3 \
	sysdecode_utrace.3

CLEANFILES= ioctl.c

.if defined(COMPAT_32BIT)
CPP+=	-m32
.endif

.if ${MK_PF} != "no"
CFLAGS+=-DPF
.endif

# Workaround duplicate declarations in <netinet/ip_compat.h>
CFLAGS.gcc.ioctl.c+= -Wno-redundant-decls

# Workaround warning for unused ssi_cables[] in <dev/lmc/if_lmc.h>
CFLAGS.gcc.ioctl.c+= -Wno-unused

CFLAGS.gcc+=	${CFLAGS.gcc.${.IMPSRC}}

ioctl.c: mkioctls
	env MACHINE=${MACHINE} CPP="${CPP}" \
		/bin/sh ${.CURDIR}/mkioctls ${DESTDIR}${INCLUDEDIR} > ${.TARGET}

beforedepend: ioctl.c

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud