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