I am using autotools with a tree that is composed of several different components of the same project with various libs that are shared between the differnet components. The intention is to have the components separated and built on different platforms w/ different architectures, but currently the entire project is a single tree and everything builds all at once for x86_64.
I'd like to be able to specifiy which component I'd like to make for the platform it will be run on, build, and install it. For example, in my thinking it might look something like the following:
$ cd componentA-BUILD
$ ../my-proj/configure --prefix=/install/A/here
$ make componentA
$ make install
The above should build componentA for x86_64 and install it in the location for which it was configured.
$ cd componentB-BUILD
$ ../my-proj/configure --prefix=/install/B/here
$ make componentB
$ make install
This should build componentB for ARM and install it in the prefix location for which it was configured (I haven't yet learned cross-compiling with autotools).