diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2015-12-22 20:33:49 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2015-12-22 20:33:49 +0000 |
| commit | 265e58989d94820a0845000733a5908bcf0d3b00 (patch) | |
| tree | 12efcb04d4bc19b74d2554032b084f8fee602ddf /lib/libsysdecode/Makefile | |
| parent | b63d070ad17e361cda7b769aac13ed87767f1958 (diff) | |
Notes
Diffstat (limited to 'lib/libsysdecode/Makefile')
| -rw-r--r-- | lib/libsysdecode/Makefile | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/lib/libsysdecode/Makefile b/lib/libsysdecode/Makefile index 8eb7908d5a39..a6d3ba13961c 100644 --- a/lib/libsysdecode/Makefile +++ b/lib/libsysdecode/Makefile @@ -4,10 +4,31 @@ LIB= sysdecode -SRCS= utrace.c +SRCS= ioctl.c utrace.c INCS= sysdecode.h MAN+= sysdecode.3 \ + sysdecode_ioctlname.3 \ sysdecode_utrace.3 +CLEANFILES= ioctl.c + +.if defined(COMPAT_32BIT) +CPP+= -m32 +.endif + +.if ${MK_PF} != "no" +CFLAGS+=-DPF +.endif + +# Workaround duplicate declarations in <netinet/ip_compat.h> +CFLAGS.gcc.ioctl.c+= -Wno-redundant-decls +CFLAGS.gcc+= ${CFLAGS.gcc.${.IMPSRC}} + +ioctl.c: mkioctls + env MACHINE=${MACHINE} CPP="${CPP}" \ + /bin/sh ${.CURDIR}/mkioctls ${DESTDIR}${INCLUDEDIR} > ${.TARGET} + +beforedepend: ioctl.c + .include <bsd.lib.mk> |
