aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcomex2015-02-15 00:24:51 -0500
committercomex2015-02-15 00:24:51 -0500
commit769b00952c8b2fd1f7ddaf1313ee7c38b8081cc6 (patch)
treec20867f57cb05e745595fbca310a1fe2a73dffb4 /Makefile
parentfix test cases (diff)
downloadsubstitute-769b00952c8b2fd1f7ddaf1313ee7c38b8081cc6.tar.gz
more fixes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 137cf12..a45546b 100644
--- a/Makefile
+++ b/Makefile
@@ -157,8 +157,11 @@ out/insns-libz-arm.o: test/insns-libz-arm.S Makefile
out/insns-libz-thumb2.o: test/insns-libz-arm.S Makefile
clang -arch armv7 -c -o $@ $< -DTHUMB2
-out/transform-dis-cases-i386.o: test/transform-dis-cases-i386.S Makefile
- clang -arch i386 -c -o $@ $<
+define transform-dis-cases
+out/transform-dis-cases-$(arch).o: test/transform-dis-cases-$(arch).S Makefile
+ clang -arch $(arch) -c -o $$@ $$<
+endef
+$(foreach arch,i386 x86_64 armv7 arm64,$(eval $(transform-dis-cases)))
# iOS bootstrap...
ifneq (,$(IS_IOS))