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