|
From: | John Graham-Cumming |
Subject: | Re: How to specify the location for .o files in makedepend? |
Date: | Thu, 18 Aug 2005 10:17:24 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104 |
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 address@hidden Home: http://www.jgc.org/ POPFile: http://getpopfile.org/ Sign up for my Spam and Anti-spam Newsletter at http://www.jgc.org/
[Prev in Thread] | Current Thread | [Next in Thread] |