Makefiles
Ralf Corsepius
ralf_corsepius at rtems.org
Tue Oct 26 11:32:45 UTC 2004
On Tue, 2004-10-26 at 12:47, James Yates wrote:
> I have tried this and i get a much bigger executeable, but that's to be
> expected, although it is too big for me run through my GDB stub. I
> really want to find a solution whereby I can specify a list of sources
> that are not optimised as well as a list of sources that are optimised.
> I have 2 files out of 30 that I need optimisation turned off for, the
> rest I really want optimised. The template Makefile.leaf only seems to
> cope with one set of CFLAGS for all c files. This is quite an unusual
> problem, but one I am eager to solve. Does anyone have any ideas?
Several possibilities:
* To make these changes permanent, add customized compilation rules for
the files you want to be compiled with custom flags.
* For temporary changes, try overriding CFLAGS from the environment,
e.g. something like
cd <directory with Makefile>
rm x.o y.o
make CFLAGS=<custom cflags> x.o y.o
I am not using RTEMS makefile fragments for presumably well known
reasons, and don't know if any of these ways are applicable.
Ralf
More information about the users
mailing list