I was hoping to get some help regarding the good practice automake based, toolkit build (compile) procedure. I am writing a toolkit which consists of several external and couple of internal libraries together with demo tools. Until now I was doing my own makefile scripts to compile it but now I would like to switch to autotools, that is I would like to move from my wanky scripts to something more standardized. So what I am looking for is some help, a minimum example which I could study. This minimum example should be in accord to "good practice" principles and preserve the following tree structure:
toolkit/src/libint/
libinternal.cpp libinternal.hpp
toolkit/src/libext/
externallib/
toolkit/bin/
my binaries
toolkit/demo/tool1/
tool1.cpp tool1.hpp
toolkit/demo/tool2/
tool2.cpp tool2.hpp
toolkit/lib/
libinternal.a libexternal.a
toolkit/include/libint/
libinternal.hpp
toolkit/include/libext/
libexternal.hpp
Usually I have my demo tools in demo folder under separate subfolders which are compiled using headers and libraries from include and lib folders. This means that in my makefile I usually first compile libraries into include and lib folder and then demo tools while building the toolkit.
Could anyone provide a minimal example for required configure.ac and Makefile.am files for the above tree source structure (any suggestions regarding the source tree are more then welcomed)
thank you
libext/externallib/? And if it's external, why is a copy needed inlib/? The autotools use a build directory, with the goal of installing libraries, headers, programs in directories specified by:./configure --help- Brett Hale