[12414] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: makedepend under decmips 7.7F

daemon@ATHENA.MIT.EDU (James Chang)
Tue Aug 16 10:36:36 1994

To: Ezra Peisach <epeisach@MIT.EDU>
Cc: bugs@MIT.EDU
In-Reply-To: Your message of "Tue, 16 Aug 1994 10:09:28 EDT."
             <9408161409.AA21958@kangaroo.mit.edu> 
Date: Tue, 16 Aug 1994 10:36:32 EDT
From: James Chang <diego@MIT.EDU>

> You may want to try 

> makedepend -- -Yfoo -- files.c
> makedepend $(MAKEDEPENDOPTS) -- $(CFLAGS) -- files.c
 
> I believe anything between the -- is passed directly into the cpp. In
> general the CFLAGS should be in between so when you have options like 
> -std1 in the CFLAGS, makedepend does not try to interpret them....

> I have not looked at the source to verify that -Y would not be touched
> in that case - but I think it is correct...

I had the --'s in my makedepend call; from the X11R5 makedepend 
manpage(which I believe is the correct one for the current release):

     - - options - -
          If makedepend encounters a double hyphen (- -) in the argument
          list, then any unrecognized argument following it will be silently
          ignored; a second double hyphen terminates this special treatment.
          In this way, makedepend can be made to safely ignore esoteric com-
          piler arguments that might normally be found in a CFLAGS make macro
          (see the EXAMPLE section above).  All options that makedepend
          recognizes and appear between the pair of double hyphens are pro-
          cessed normally.

Since the -Y is recognized, it is processed "normally" by makedepend, i.e.
it uses it as a substitute for standard include dirs. 

-James

home help back first fref pref prev next nref lref last post