1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5LIB= sysdecode 6 7SRCS= errno.c ioctl.c syscallnames.c utrace.c 8INCS= sysdecode.h 9 10CFLAGS+= -I${.CURDIR}/../../sys 11 12MAN+= sysdecode.3 \ 13 sysdecode_abi_to_freebsd_errno.3 \ 14 sysdecode_ioctlname.3 \ 15 sysdecode_syscallnames.3 \ 16 sysdecode_utrace.3 17MLINKS+= sysdecode_abi_to_freebsd_errno.3 sysdecode_freebsd_to_abi_errno.3 18 19CLEANFILES= ioctl.c 20 21.if defined(COMPAT_32BIT) 22CPP+= -m32 23.endif 24 25.if ${MK_PF} != "no" 26CFLAGS+=-DPF 27.endif 28 29# Workaround duplicate declarations in <netinet/ip_compat.h> 30CFLAGS.gcc.ioctl.c+= -Wno-redundant-decls 31 32# Workaround warning for unused ssi_cables[] in <dev/lmc/if_lmc.h> 33CFLAGS.gcc.ioctl.c+= -Wno-unused 34 35CFLAGS.gcc+= ${CFLAGS.gcc.${.IMPSRC}} 36 37ioctl.c: mkioctls 38 env MACHINE=${MACHINE} CPP="${CPP}" \ 39 /bin/sh ${.CURDIR}/mkioctls ${DESTDIR}${INCLUDEDIR} > ${.TARGET} 40 41beforedepend: ioctl.c 42 43.include <bsd.lib.mk> 44