help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to specify the location for .o files in makedepend?


From: Lan Xue
Subject: Re: How to specify the location for .o files in makedepend?
Date: Wed, 17 Aug 2005 09:25:33 -0700 (PDT)

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.

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.

Any suggestions? Thank you all for the replies and for the further
clarifications.


Lan



On Tue, 16 Aug 2005, John Graham-Cumming wrote:

> address@hidden wrote:
> >         cd $(TEST)/src;
> >         makedepend -Y $(CFLAGS) -p $(TEST)/obj *.c
>
> Was that two lines starting with tabs or one line?   It it's two then it
> won't work because Make runs each line in a separate shell.
>
> John.
>
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]