automake
[Top][All Lists]
Advanced

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

Re: Stupid problem: how to specify the directory for .h files?


From: Ralf Corsepius
Subject: Re: Stupid problem: how to specify the directory for .h files?
Date: 17 Feb 2003 17:01:54 +0100

Am Mon, 2003-02-17 um 15.03 schrieb Jean-Guillaume Paradis (LMC):
> Well I finally managed to solve my problem 
> 
> I changed this 
>  %.o:  %.cpp %.h
>         $(CC) $(DEFINED) -c $(INCLUDES)  $< -o $@
> 
> to this
>  %.o:  %.cpp
>         $(CC) $(DEFINED) -c $(INCLUDES)  $< -o $@
> 
I'd recommend to use automake's rules instead.

> The $(DEFINED) flag is a bunch of -D preprocessor flags. Is there a
> way to let automake do the compilation of the various .o files using
> these flags but without specifying the explicit rule?
Depends on where these flags originate from. Normally, AM_CPPFLAGS
probably is what you are looking for.

Ralf






reply via email to

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