I have a problem with automake/autoconf. I will show you the layout of my source tree first:
src
------arch
----------avr
--------------i2c.c
-------sys
-----------thread.c
Now my problem. It isn't that hard to fully compile arch/avr/i2c.c and sys/thread.c. But what i actualy want is to compile all my sub directories partialy (with gcc -c) and then link all objects from one subdir together (ld -r) and make a program of of those subdirectory object files when all subdirectories are compiled. Is this possible, and if so, how?
Greetz, Michel