From 5119c2fe3a69d0b0d1ab2617af1667d300e0ee71 Mon Sep 17 00:00:00 2001 From: Cristiano Giuffrida Date: Sun, 22 Jun 2014 10:31:30 +0200 Subject: [PATCH] llvm: Use default LLVMPREFIX when building passes. --- minix/llvm/generate_gold_plugin.sh | 4 ++-- minix/llvm/passes/Makefile.inc | 1 + minix/llvm/passes/WeakAliasModuleOverride/Makefile | 2 ++ minix/llvm/passes/hello/Makefile | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 minix/llvm/passes/Makefile.inc diff --git a/minix/llvm/generate_gold_plugin.sh b/minix/llvm/generate_gold_plugin.sh index ea88b3cb4..e1b471867 100755 --- a/minix/llvm/generate_gold_plugin.sh +++ b/minix/llvm/generate_gold_plugin.sh @@ -61,7 +61,7 @@ cp ${OBJ_LLVM}/./Release+Asserts/bin/llvm-* ${CROSS_TOOLS} # Generate and Install default MINIX passes cd ${NETBSDSRCDIR}/minix/llvm/passes/WeakAliasModuleOverride -make LLVMPREFIX=${OBJ_LLVM}/./Release+Asserts/ install +make install cd ${NETBSDSRCDIR}/minix/llvm/passes/hello -make LLVMPREFIX=${OBJ_LLVM}/./Release+Asserts/ install +make install diff --git a/minix/llvm/passes/Makefile.inc b/minix/llvm/passes/Makefile.inc new file mode 100644 index 000000000..3c153a6ba --- /dev/null +++ b/minix/llvm/passes/Makefile.inc @@ -0,0 +1 @@ +LLVMPREFIX?=../../../../../obj_llvm.i386/Release+Asserts diff --git a/minix/llvm/passes/WeakAliasModuleOverride/Makefile b/minix/llvm/passes/WeakAliasModuleOverride/Makefile index cb708a802..7de1b8085 100644 --- a/minix/llvm/passes/WeakAliasModuleOverride/Makefile +++ b/minix/llvm/passes/WeakAliasModuleOverride/Makefile @@ -1,3 +1,5 @@ +include ../Makefile.inc + QUIET=@ ECHO=echo CP=cp diff --git a/minix/llvm/passes/hello/Makefile b/minix/llvm/passes/hello/Makefile index 744dc90f8..ca848156d 100644 --- a/minix/llvm/passes/hello/Makefile +++ b/minix/llvm/passes/hello/Makefile @@ -1,3 +1,5 @@ +include ../Makefile.inc + QUIET=@ ECHO=echo CP=cp -- 2.44.0