Revert "Don't generate .depend anymore"

This reverts commit cc5ad09caa.
This commit is contained in:
Xiang Xiao 2020-03-23 11:33:08 +08:00
parent f074d7f376
commit 1511403fdf
254 changed files with 266 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.depend
Make.dep
*.o
*.a

View File

@ -219,14 +219,15 @@ else
context::
endif
Make.dep: Makefile $(SRCS)
.depend: Makefile $(SRCS)
ifeq ($(filter %$(CXXEXT),$(SRCS)),)
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$^) >$@
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$^) >Make.dep
else
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$^) >$@
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$^) >Make.dep
endif
$(Q) touch $@
depend:: Make.dep
depend:: .depend
clean::
$(call DELFILE, .built)
@ -234,5 +235,6 @@ clean::
distclean:: clean
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)
-include Make.dep

View File

@ -58,7 +58,7 @@ SYMTABOBJ = $(SYMTABSRC:.c=$(OBJEXT))
# Build targets
all: $(BIN)
.PHONY: import install dirlinks context context_serialize clean_context context_rest export preconfig depend clean distclean
.PHONY: import install dirlinks context context_serialize clean_context context_rest export .depdirs preconfig depend clean distclean
.PRECIOUS: $(BIN)
$(foreach SDIR, $(CONFIGURED_APPS), $(eval $(call SDIR_template,$(SDIR),all)))
@ -145,7 +145,12 @@ ifneq ($(BUILTIN_REGISTRY),)
endif
endif
depend: $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_depend)
.depdirs: $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_depend)
.depend: Makefile .depdirs
$(Q) touch $@
depend: .depend
clean_context:
$(Q) $(MAKE) -C platform clean_context TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
@ -174,6 +179,7 @@ else
)
endif
$(call DELFILE, *.lock)
$(call DELFILE, .depend)
$(call DELFILE, $(SYMTABSRC))
$(call DELFILE, $(SYMTABOBJ))
$(call DELFILE, $(BIN))

1
builtin/.gitignore vendored
View File

@ -1,4 +1,5 @@
/.context
/.depend
/.built
/Make.dep
/builtin_list.h

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,5 +1,6 @@
/Make.dep
/.context
/.depend
/.built
/*.asm
/*.rel

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/romfs.img
/romfs.h

View File

@ -1,5 +1,6 @@
/hello
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/bridge_config.h
/host1

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,5 +1,6 @@
/hello
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.o1
/*.asm

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,5 +1,6 @@
/Make.dep
/.context
/.depend
/.built
/*.asm
/*.rel

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,2 +1,3 @@
/Make.dep
/.depend
/.built

View File

@ -1,5 +1,6 @@
/hello
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/host
/config.h

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,5 +1,6 @@
/hello
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/host
/*.asm

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,5 +1,6 @@
/hello
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/host
/*.asm

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,2 +1,3 @@
/Make.dep
/.depend
/.built

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,5 +1,6 @@
/hello
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/host
/*.asm

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/host
/config.h

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,5 +1,6 @@
/Make.dep
/.context
/.depend
/.built
/*.asm
/*.rel

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,2 +1,3 @@
/Make.dep
/.depend
/.built

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.rel

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/host
/*.asm

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/host
/*.asm

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

View File

@ -1,4 +1,5 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj

Some files were not shown because too many files have changed in this diff Show More