summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2014-09-02 15:07:59 +0000
committerAlain Frisch <alain@frisch.fr>2014-09-02 15:07:59 +0000
commit2478ce96ea83e0e2ea9b8b0a994beae5e4e8acf0 (patch)
tree5b4a552869bb215ea7a7b930340768ffda42f89a /Makefile
parent8565699c41c0b5d162a887d7af51d82597cd347a (diff)
downloadocaml-2478ce96ea83e0e2ea9b8b0a994beae5e4e8acf0.tar.gz
Only include Intel_* modules when arch is i386 or amd64.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/abstract_intel_emit@15180 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1dffc7496b..f857a67423 100644
--- a/Makefile
+++ b/Makefile
@@ -85,8 +85,16 @@ INTEL_ASM=\
asmcomp/intel_gas.cmo \
asmcomp/intel_masm.cmo
+ARCH_SPECIFIC_ASMCOMP=
+ifeq ($(ARCH),i386)
+ARCH_SPECIFIC_ASMCOMP=$(INTEL_ASM)
+endif
+ifeq ($(ARCH),amd64)
+ARCH_SPECIFIC_ASMCOMP=$(INTEL_ASM)
+endif
+
ASMCOMP=\
- $(INTEL_ASM) \
+ $(ARCH_SPECIFIC_ASMCOMP) \
asmcomp/arch.cmo asmcomp/debuginfo.cmo \
asmcomp/cmm.cmo asmcomp/printcmm.cmo \
asmcomp/reg.cmo asmcomp/mach.cmo asmcomp/proc.cmo \