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