[Openal-devel] How to set CFLAGS for specific files?
prakash at punnoor.de
Fri Oct 27 01:06:01 PDT 2006
Am Freitag 27 Oktober 2006 09:22 schrieb Sven Panne:
> Am Freitag, 27. Oktober 2006 07:31 schrieb Prakash Punnoor:
> > I changed the SIMD enabling routines in CMake to make it possible to
> > generate portable code with gcc. For that it was needed that the SIMD
> > CFLAGS only get applied to the c source files which contain SIMD and not
> > to the rest of the source files. Because otherwise (esp with SSE2) gcc
> > could emit SSE code for float maths... Now I want to do the same for the
> > autotools project, but I don't know an easy way. Any advise?
> The relevant documentation is here:
> In a nutshell: If you want special CFLAGS for foo.c, add
> foo_CFLAGS = -my -special -CFLAGS
This doesn't work for me (as a test):
libopenal_la_SOURCES += arch/i386/mixaudio16_sse2_prk.c
mixaudio16_sse2_prk_CFLAGS = $(AM_CFLAGS) -msse3
The flags stay the same. Above link also only lists the command for adding per
target flags, not per source.
> Just a small remark: src/arch/i386/Makefile.am looks a little bit
> complicated, why e.g. are the COMPILE/LTCOMPILE/CCLD/LINK definitions
Well, I admit I don't understand too much of it. I basically ripped it from
lame nasm support Makefile.am. Feel free to trim it down.
//\ Prakash Punnoor /\\
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://opensource.creative.com/pipermail/openal-devel/attachments/20061027/fb76349b/attachment.bin
More information about the Openal-devel