[LMH]change in Makefile

James A. Crippen james@unlambda.com
Mon Apr 29 17:59:01 2002


Andreas.Eder@t-online.de (Andreas Eder) writes:

> In order to avoid warning messages from makedepend
> ( makedepend: warning:  app.cc, line 1: cannot find include file "iostream.h"
>         not in /usr/local/lib/gcc-include/iostream.h
>         not in /usr/include/iostream.h
>         not in /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/iostream.h
> etc.)
> 
> I have to include the directory /usr/include/g++ to the search path
> for headers with 
> 
> depend : $(SOURCES)
> 	makedepend -I /usr/include/g++ -f- -o .o $(IFLAGS) $(SOURCES)
> 	> depend.mk
> 
> Then  it works without warnings.

I've had similar problems.  And similar workarounds (the other one is
symlinking the files up one dir).

There's no easy way to make this sort of stuff portable without going
to autoconf and automake.  Which I don't think we're ready for yet.

I've committed a patch to e3/Makefile that adds an $(INCLUDES)
variable and uses this var in the depend target.  Didn't use it on the
.cc.o target because it doesn't seem to be necessary (ie, GCC figures
this out on its own).

'james

-- 
James A. Crippen <james@unlambda.com> ,-./-.  Anchorage, Alaska,
Lambda Unlimited: Recursion 'R' Us   |  |/  | USA, 61.20939N, -149.767W
Y = \f.(\x.f(xx)) (\x.f(xx))         |  |\  | Earth, Sol System,
Y(F) = F(Y(F))                        \_,-_/  Milky Way.