I've found a bug in the Makefile based build system in the NNDK 2.5.2.
The $(NAME)depend.mk file will grow indefinitely (until you do a make clean) because of a minor bug in $(NBROOT)/make/main.mak. Line 76 has:
Code: Select all
@echo #Generated Depend file >$(NAME)depend.mk
The bug is that the # is interpreted by make, not the shell. The result is that a blank line is echoed to the console, instead of the message being used to truncate and "restart" the dependency file. The fix is simple, put quotes around the message:
Code: Select all
@echo "#Generated Depend file" >$(NAME)depend.mk