automake
[Top][All Lists]
Advanced

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

Re: adding specific C flags for a SINGLE source file


From: Stepan Kasal
Subject: Re: adding specific C flags for a SINGLE source file
Date: Thu, 9 Dec 2004 09:37:55 +0100
User-agent: Mutt/1.4.1i

Hello,

On Wed, Dec 08, 2004 at 03:15:55AM -0600, Bruce Allen wrote:
> There is a single routine (that lives by itself in dhrystone.C)
> which must ALWAYS be compiled to an object with -O3, regardless of the
> user specified compilation options, CFLAGS, CPPFLAGS, etc.

I think that the easiest way is to redefine the rule to compile that file.
To find the command to execute for compiling, inspect the Makefile.in
that automake has created for you.

I guess the following should work:

re.$(OBJEXT): this.h that.h
re.o: re.C
        $(CXXCOMPILE) -O3 -c -o $@ $<
re.obj: re.C
        $(CXXCOMPILE) -O3 -c -o $@ `$(CYGPATH_W) '$<'`

HTH,
        Stepan Kasal




reply via email to

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