[Top][All Lists]
[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
- adding specific C flags for a SINGLE source file, Bruce Allen, 2004/12/08
- Re: adding specific C flags for a SINGLE source file,
Stepan Kasal <=
- Re: adding specific C flags for a SINGLE source file, Alexandre Duret-Lutz, 2004/12/09
- Re: adding specific C flags for a SINGLE source file, Bruce Allen, 2004/12/09
- Re: adding specific C flags for a SINGLE source file, Bruce Allen, 2004/12/09
- Re: adding specific C flags for a SINGLE source file, Sander Niemeijer, 2004/12/10
- Re: adding specific C flags for a SINGLE source file, Kevin P. Fleming, 2004/12/10
- Re: adding specific C flags for a SINGLE source file, Jacob Meuser, 2004/12/10
- Re: adding specific C flags for a SINGLE source file, Alexandre Duret-Lutz, 2004/12/10
- Re: adding specific C flags for a SINGLE source file, Sander Niemeijer, 2004/12/13
- Re: adding specific C flags for a SINGLE source file, Sander Niemeijer, 2004/12/10
- Re: adding specific C flags for a SINGLE source file, Alexandre Duret-Lutz, 2004/12/10