summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-04-10 13:36:05 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-04-10 13:36:05 +0000
commit9126d0b909dd3d97059296db6560ce74c43ac1ea (patch)
treebec86ec7d39995767e41508f29241195d11c4b59
parentea411818aa119d87ea17a05933a3013692b335df (diff)
Generate and install arm_neon.h on arm and arm64.
ok jsg@
-rw-r--r--gnu/usr.bin/clang/include/clang/intrin/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/usr.bin/clang/include/clang/intrin/Makefile b/gnu/usr.bin/clang/include/clang/intrin/Makefile
index 006c51b1f0d..4d84bfd463b 100644
--- a/gnu/usr.bin/clang/include/clang/intrin/Makefile
+++ b/gnu/usr.bin/clang/include/clang/intrin/Makefile
@@ -1,12 +1,16 @@
-# $OpenBSD: Makefile,v 1.6 2017/01/24 08:44:47 patrick Exp $
+# $OpenBSD: Makefile,v 1.7 2017/04/10 13:36:04 kettenis Exp $
.include <bsd.own.mk>
LLVM_V= 4.0.0
CLANG_INTR_INCDIR= /usr/lib/clang/${LLVM_V}/include
+TBLGEN= ${.OBJDIR}/../../../clang-tblgen/clang-tblgen
+CLANG_INC=${.CURDIR}/../../../../../llvm/tools/clang/include
+
.PATH: ${.CURDIR}/../../../../../llvm/tools/clang/lib/Headers
+GEN=
HEADERS= stdalign.h \
stdatomic.h \
stdnoreturn.h \
@@ -16,7 +20,8 @@ HEADERS= stdalign.h \
module.modulemap \
.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "arm"
-HEADERS+= arm_acle.h
+GEN+= arm_neon.h
+HEADERS+= arm_acle.h ${GEN}
.elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
HEADERS+= adxintrin.h \
ammintrin.h \
@@ -78,7 +83,7 @@ depend:
# Nothing here so far ...
clean cleandir:
- # Nothing here so far ...
+ rm -f ${GEN}
install includes: ${HEADERS}
${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${DIRMODE} \
@@ -86,4 +91,7 @@ install includes: ${HEADERS}
${INSTALL} ${INSTALL_COPY} -m 444 ${.ALLSRC} \
${DESTDIR}${CLANG_INTR_INCDIR}
+arm_neon.h: ${CLANG_INC}/clang/Basic/arm_neon.td
+ ${TBLGEN} -gen-arm-neon -o ${.TARGET} ${.ALLSRC}
+
.include <bsd.obj.mk>