summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2016-10-28 15:33:23 -0400
committeryenatch <yenatch@gmail.com>2016-10-28 15:34:26 -0400
commit304f9589336b07d9385b7c0d6368902bc694f82b (patch)
tree3777679e5e1d6b210c73cb832f4464525ec52c3d
parentef55219ef23f6c7c2b2b43e87706844403783c07 (diff)
Add `make NODEP=1` for fast builds.
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 04d1f151c..0c38e6d41 100644
--- a/Makefile
+++ b/Makefile
@@ -271,7 +271,11 @@ $(C_OBJS): %.o : %.c
@printf ".text\n\t.align\t2, 0\n" >> $*.s
$(AS) $(ASFLAGS) -o $@ $*.s
+ifeq ($(NODEP),)
%.o: dep = $(shell $(SCANINC) $*.s)
+else
+%.o: dep :=
+endif
$(ASM_OBJS): %.o: %.s $$(dep)
$(AS) $(ASFLAGS) --defsym $(VERSION)=1 --defsym REVISION=$(REVISION) -o $@ $<