configuring for cross compiling
kitts
kitts at hotpop.com
Fri Jun 9 17:18:23 BST 2006
On Tuesday 06 June 2006 22:06 IST, Daniel Franke wrote:
> > building for the AVR platform requires the additional compiler option;
> > the part number such as "-mmcu=atmega64". I would like to leave this
> > option to the individual while making the "--host=avr" as default. How
> > can i do this?
>
> The options '--host', '--build' and '--target' are defined by configure.
> You will have to employ (black?) AC/AM magic to achieve what you want (if
> possible at all).
Will need to learn on that. any tips? any projects that i can refer to?
> Assuming that you are using an automake based project type: edit your
> corresponding Makefile.am(s) and add or overwrite an appropiate target,
> e.g.
Yes. I am using automake based project.
> -- http://sources.redhat.com/automake/automake.html --
> 11.3 Extending installation
> It is possible to extend this mechanism by defining an install-exec-local
> or install-data-local rule. If these rules exist, they will be run at
> make install time. These rules can do almost anything; care is required.
> Automake also supports two install hooks, install-exec-hook and
> install-data-hook. These hooks are run after all other install rules of
> the appropriate type, exec or data, have completed. So, for instance, it
> is possible to perform post-installation modifications using an install
> hook. Extending gives some examples.
> --
>
> There are uninstall- and dist-hooks as well, but no "build-hooks", say, I
> couldn't find any scanning the manual.
Thanks for the input. Ill take a deeper look.
--
Cheers!
kitts
More information about the KDevelop
mailing list