how do I change compilation flags for selected targets?
"Joerg Beyer" <j.beyer-S0/[email protected]>
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Organization | http://freemail.web.de/ |
| Message-ID | <[email protected]> |
Dear Listreader,
how do I change compilations flags for a selected target?
In my example I have this receipe:
----------------------------------
SOURCES =·
main.cpp
ext.cpp
OPTIMIZE=1
all: hello_world
:program hello_world : $SOURCES
----------------------------------
now I want to compile main.cpp with -O1 (which is OPTIMIZE=1) and
ext.cpp with -O2 (which is OPTIMIZE=2).
How can I do this? What would be the easiest / cleanest receipe
for my example?
thanks
Joerg
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/