summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2017-03-04 23:32:12 -0600
committerDiegoisawesome <diego@domoreaweso.me>2017-03-04 23:32:12 -0600
commitd12fd5c5ce574dd920a968794591afe7d42659fb (patch)
tree95a469d0243864473d13cd19082827cc89fe1a69 /Makefile
parent56f5e8bdabdc9cb18f65eccc4de66b2932489db1 (diff)
parent83ae14e2b9e2af7ce3eb01383fe3466357ac30b1 (diff)
Merge remote-tracking branch 'refs/remotes/pret/master'
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 $@ $<