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 @@
.config.old
include/config
include/generated
.depend
......@@ -160,7 +160,7 @@ $(AUTOCONF): silentoldconfig
clean:
rm -f $(OBJS) $(OUTPUT).elf $(OUTPUT).bin $(OUTPUT).ram \
$(LDS) rules-*.bin .depend
$(LDS) rules-*.bin
$(MAKE) -C $(PPSI) clean
$(MAKE) -C sdb-lib clean
$(MAKE) -C tools clean
......@@ -194,9 +194,7 @@ defconfig:
.config: silentoldconfig
# Trivial depend rule. We can't $(obj-y:.o=.c) because some objects come from
# assembly source. In glob avoid the toold directory, and ppsi/pp-printf
.depend: $(wildcard *.c [^pt]/*.c)
$(CC) $(CFLAGS) -DSDBFS_BIG_ENDIAN -MM $^ > $@
-include .depend
# This forces more compilations than needed, but it's useful
# (we depend on .config and not on include/generated/autoconf.h
# because the latter is touched by silentoldconfig at each build)
$(obj-y): .config $(wildcard include/*.h)
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