aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/Makefile
diff options
context:
space:
mode:
authorXavier Leroy <xavierleroy@users.noreply.github.com>2015-10-11 11:14:30 +0200
committerXavier Leroy <xavierleroy@users.noreply.github.com>2015-10-11 11:14:30 +0200
commitef0f69dc1caeab169dcefca4d8b89f4d9e756bb5 (patch)
treed0ec8447f1b87b46d9dc49df81f91d80245cd396 /runtime/Makefile
parent659b735ed2dbefcbe8bcb2ec2123b66019ddaf14 (diff)
parent03672b4bbb2c837ea61a716d0ae67d87f68d20f8 (diff)
downloadcompcert-ef0f69dc1caeab169dcefca4d8b89f4d9e756bb5.tar.gz
compcert-ef0f69dc1caeab169dcefca4d8b89f4d9e756bb5.zip
Merge pull request #51 from AbsInt/ppc64
Take advantage of PowerPC 64-bit instructions
Diffstat (limited to 'runtime/Makefile')
-rw-r--r--runtime/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/runtime/Makefile b/runtime/Makefile
index 2fdaa4ec..99eeaa54 100644
--- a/runtime/Makefile
+++ b/runtime/Makefile
@@ -9,6 +9,16 @@ LIB=libcompcert.a
INCLUDES=include/float.h include/stdarg.h include/stdbool.h \
include/stddef.h include/varargs.h
+VPATH=$(ARCH)
+
+ifeq ($(ARCH),powerpc)
+ifeq ($(MODEL),ppc64)
+VPATH=powerpc/ppc64 $(ARCH)
+else ifeq ($(MODEL),e5500)
+VPATH=powerpc/ppc64 $(ARCH)
+endif
+endif
+
ifeq ($(strip $(HAS_RUNTIME_LIB)),true)
all: $(LIB)
else
@@ -19,10 +29,10 @@ $(LIB): $(OBJS)
rm -f $(LIB)
ar rcs $(LIB) $(OBJS)
-%.o: $(ARCH)/%.s
+%.o: %.s
$(CASMRUNTIME) -o $@ $^
-%.o: $(ARCH)/%.S
+%.o: %.S
$(CASMRUNTIME) -DMODEL_$(MODEL) -DABI_$(ABI) -DSYS_$(SYSTEM) -o $@ $^
clean::