aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/Makefile')
-rw-r--r--runtime/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/Makefile b/runtime/Makefile
index 2fdaa4ec..2fe32881 100644
--- a/runtime/Makefile
+++ b/runtime/Makefile
@@ -9,6 +9,8 @@ LIB=libcompcert.a
INCLUDES=include/float.h include/stdarg.h include/stdbool.h \
include/stddef.h include/varargs.h
+VPATH=$(ARCH)/$(MODEL) $(ARCH)
+
ifeq ($(strip $(HAS_RUNTIME_LIB)),true)
all: $(LIB)
else
@@ -19,10 +21,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::