You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jeff Trawick <tr...@bellsouth.net> on 2001/05/11 22:55:06 UTC

Re: cvs commit: httpd-2.0/build rules.mk

orlikowski@apache.org writes:

> orlikowski    01/05/11 12:44:47
> 
>   Modified:    build    rules.mk
..
>   Index: rules.mk
>   ===================================================================
>   RCS file: /home/cvs/httpd-2.0/build/rules.mk,v
>   retrieving revision 1.54
>   retrieving revision 1.55
>   diff -u -r1.54 -r1.55
>   --- rules.mk	2001/04/29 08:25:52	1.54
>   +++ rules.mk	2001/05/11 19:44:42	1.55
>   @@ -223,7 +223,7 @@
>    
>    depend: depend-recursive
>    	if test "`echo $(srcdir)/*.c`" != "$(srcdir)'/*.c'"; then \
>   -	    gcc -MM $(ALL_CPPFLAGS) $(ALL_INCLUDES) $(srcdir)/*.c | sed 's/\.o:/.lo:/' > $(builddir)/.deps || true;           \
>   +		$(CC) -MM $(ALL_CPPFLAGS) $(ALL_INCLUDES)
>    $(srcdir)/*.c | sed 's/\.o:/.lo:/' > $(builddir)/.deps || true;
>    \

So which C compilers other than gcc have a -MM option which "does the
right thing?"

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...


Re: cvs commit: httpd-2.0/build rules.mk

Posted by "Roy T. Fielding" <fi...@ebuilt.com>.
On Fri, May 11, 2001 at 05:37:38PM -0400, Victor J. Orlikowski wrote:
>  > So which C compilers other than gcc have a -MM option which "does the
>  > right thing?"
> 
> Prolly none. :)
> However, this needs to be fixed anyway, so ...
> I'll see what I can find.

Find the autoconf test that is used by a hundred other packages (somewhere)
and use it to define CC_DEPEND (or some such) and then put that in the
Makefile.

I'd believe in this theory that mkdep.sh could somehow be smarter than
gcc -MM if it were not the case that it doesn't work, has never worked
since it was committed, and doesn't even do what we want (i.e., place
the dependencies in the Makefile as part of its generation).  A far
superior solution would be to simply put the fixed dependencies in CVS
without any of the OS-specific dependencies and generate only those
ones as part of configure.

....Roy


Re: cvs commit: httpd-2.0/build rules.mk

Posted by "Victor J. Orlikowski" <v....@gte.net>.
 > So which C compilers other than gcc have a -MM option which "does the
 > right thing?"

Prolly none. :)
However, this needs to be fixed anyway, so ...
I'll see what I can find.

Victor
-- 
Victor J. Orlikowski
======================
v.j.orlikowski@gte.net
orlikowski@apache.org
vjo@us.ibm.com