This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
per-file compiler flags?
- From: Markus Werle <numerical dot simulation at web dot de>
- To: automake at gnu dot org
- Date: Mon, 23 Dec 2002 11:12:54 +0100
- Subject: per-file compiler flags?
Hi!
Consider the following case:
File VeryImportant.C contains code that really needs some
optimization available. But all other files could (at least during development)
be compiled without optimization, for the sake of not drinking too much coffee
due to long compilation times.
Is there a convenient way to achieve the following behaviour:
If (gcc is the compiler)
Add to compilation of VeryImportant.C
the optimizer flags: CPPFLAGS+="-O9 -finline -funroll-loops"
else if(intel C++ is the compiler)
Add the optimizer flags: CPPFLAGS+="-ip -unroll"
endif
Markus