From mboxrd@z Thu Jan 1 00:00:00 1970 From: chuck huang Date: Wed, 19 Dec 2012 16:29:00 +0800 Subject: [U-Boot] u-boot Makefile Questions Message-ID: <002201cdddc2$e873f5c0$b95be140$@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear all, I have some questions about u-boot Makefile. Could you help me ? Thx! The below is my question. First, we do make _depend for those $(SUBDIRS) $(CPUDIR) $(LDSCRIPT_MAKEFILE_DIR) depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) \ $(obj)include/autoconf.mk \ $(obj)include/generated/generic-asm-offsets.h \ $(obj)include/generated/asm-offsets.h for dir in $(SUBDIRS) $(CPUDIR) $(LDSCRIPT_MAKEFILE_DIR) ; do \ $(MAKE) -C $$dir _depend ; done after we already generated the .depend file in those dirs. $(SUBDIRS): depend $(MAKE) -C $@ all That would do make action in SUBDIRS dir. But why we also sinclude .depend in those Makefile which is base on those dir ? I regard that we already generated before. And another questions, how does the other sub-dir(eg, libs) .depend file generated ? is that generated by rules.mk which is include every sub-dirs? Best regards