summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c18522379..221c54e24 100644
--- a/Makefile
+++ b/Makefile
@@ -93,7 +93,11 @@ $(C_OBJS): %.o : %.c
@echo -e ".text\n\t.align\t2, 0\n" >> $*.s
$(AS) $(ASFLAGS) -o $@ $*.s
-%.o : dep = $(shell $(SCANINC) $*.s)
+ifeq ($(NODEP),)
+%.o: dep = $(shell $(SCANINC) $*.s)
+else
+%.o: dep :=
+endif
$(ASM_OBJS): %.o: %.s $$(dep)
$(AS) $(ASFLAGS) -o $@ $<