Autoconf building, linking across multiple source directories?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello! I'm trying to integrate unit testing with the boost::unit_test
framework into my autotools-using project. At the end of the day I have
two directories in my project, a "src" and a "tests", as follows:

Makefile.am

src/
   foo.cc
   bar.cc
   main.cc
   Makefile.am

tests/
   foo_test.cc
   bar_test.cc
   testrunner.cc
   Makefile.am

What I'd like to be able to do is build "testrunner" from testrunner.o,
foo_test.o, bar_test.o, and crucially, foo.o and bar.o. But I can't
figure out how to specify in the tests/Makefile.am that it depends on
object files outside of it's particular directory subtree. Ideally I'd
be able to avoid explicitly referencing each-and-every source file in
src/, as I hope to soon have a lot of them. Is this possible? 

Thanks again, 
		...Eric


Eric Jonas
The Soma Project
http://soma.mit.edu




_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux