Re: [A-A-P-develop] basic a-a-p build support added to gecc
Brought to you by:
vimboss
From: Bram M. <Br...@mo...> - 2002-11-19 13:11:36
|
Joerg Beyer wrote: > I added basic a-a-p[1] support to gecc[2]. This means, you could > build gecc with aap as alternative to make. For practical reasons > I will try to support both build tools (make and aap) for the next > time. Right now the aap support is not 100%, as the e.g. the test > cases will not build with aap ("make check"). > > as always: comments are welcome. I notice you have a commented-out section at the bottom: # How do I compile this file with more compiler optimization? #md5.o: md5.cpp # g++ -o md5.o md5.cpp -O3 -funroll-loops -fexpensive-optimizations -fstrength-reduce -Wall -g -c What you could try is giving an attribute to the md5.cpp file to use different CFLAGS: :attr {var_CFLAGS = $CFLAGS -O3 -funroll-loops -fexpensive-optimizations -fstrength-reduce -Wall -g} md5.cpp The trick is that "var_*" attributes are used for the variables used to compile a specific file. Thus when md5.cpp has the attribute "var_CFLAGS", the value of "CFLAGS" will get the value of this attribute for a dependency where this file is used as a source. To avoid it is used for all files, you need to change your dependencies to be on the ".o" files instead of the ".cpp" files. The automatic mechanisms should be able to find out how to make the ".o" file from the ".cpp" file. I didn't verify this actually works! -- From "know your smileys": :^[/ mean-smiley-with-cigarette /// Bram Moolenaar -- Br...@mo... -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html /// |