Lan Xue wrote:
Hmm.. you are right. I changed to one line and problem solved :-).Now the depend section in my Makefile is like this: INC_ALL=-I$(IDIR) -I$(INCDIR1) -I$(INCDIR2) --nostdinc depend: cd $(TEST)/src; \ makedepend -v -f $(TOPDIR)/Makefile $(INC_ALL) -p$(TEST)/obj/*.c cd $(TEST2)/src; \ makedepend -f $(TOPDIR)/Makefile $(INC_ALL) -p$(TEST2)/obj/*.c cd $(PUBLIC)/src; \ makedepend -f $(TOPDIR)/Makefile $(INC_ALL) -p$(PUBLIC)/obj/*.c #cd $(TOPDIR) I found when there are more than one include dirs, -Y won't be able to include all of them, -I has to be used instead. But somehow --nostdinc or -nostdinc option doesn't work for -I so that the standard include files will be listed in the dependancy, which is kind of annoying.
I don't know how to address that.
Another problem is, since I have three makedepend, the output of the last one will overwrite that of the previous makedepend, so the dependancy only covers the information from the last one.
You should be able to use the -a option on the second and third makedepend's to stop that from happening.
John. -- John Graham-Cumming [EMAIL PROTECTED] Home: http://www.jgc.org/ POPFile: http://getpopfile.org/ Sign up for my Spam and Anti-spam Newsletter at http://www.jgc.org/ _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
