Commit 41f432a6 authored by Alessandro Rubini's avatar Alessandro Rubini

Revert "Makefile: add a depend rule, long missing"

This reverts commit 3a3c3806.

The previous line: every object depending on .config, was better.
We had the problem that a fresh clone was not building because of a
missing autoconf.h.

The depend rule was not working anyways, because it created an empty
.depend the first time over, due to the missing autoconf.h.  I admit I
don't know how to create a depend file after configuration: make
pretends to remake all its inclusions as the first step, so a rule
like ".depend: silentoldconfig" loops forever.
parent a1345a12
...@@ -16,4 +16,3 @@ ...@@ -16,4 +16,3 @@
.config.old .config.old
include/config include/config
include/generated include/generated
.depend
...@@ -160,7 +160,7 @@ $(AUTOCONF): silentoldconfig ...@@ -160,7 +160,7 @@ $(AUTOCONF): silentoldconfig
clean: clean:
rm -f $(OBJS) $(OUTPUT).elf $(OUTPUT).bin $(OUTPUT).ram \ rm -f $(OBJS) $(OUTPUT).elf $(OUTPUT).bin $(OUTPUT).ram \
$(LDS) rules-*.bin .depend $(LDS) rules-*.bin
$(MAKE) -C $(PPSI) clean $(MAKE) -C $(PPSI) clean
$(MAKE) -C sdb-lib clean $(MAKE) -C sdb-lib clean
$(MAKE) -C tools clean $(MAKE) -C tools clean
...@@ -194,9 +194,7 @@ defconfig: ...@@ -194,9 +194,7 @@ defconfig:
.config: silentoldconfig .config: silentoldconfig
# Trivial depend rule. We can't $(obj-y:.o=.c) because some objects come from # This forces more compilations than needed, but it's useful
# assembly source. In glob avoid the toold directory, and ppsi/pp-printf # (we depend on .config and not on include/generated/autoconf.h
.depend: $(wildcard *.c [^pt]/*.c) # because the latter is touched by silentoldconfig at each build)
$(CC) $(CFLAGS) -DSDBFS_BIG_ENDIAN -MM $^ > $@ $(obj-y): .config $(wildcard include/*.h)
-include .depend
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment