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