diff options
Diffstat (limited to 'runtime/Makefile')
-rw-r--r-- | runtime/Makefile | 14 |
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:: |