Re: automake Q



Havoc Pennington <rhpennin@midway.uchicago.edu> writes:

> My application has a whole lot of files; I have a tendency to make a file
> for each C++ class. So I want to have subdirectories. However, the 
> subdirectories don't correspond to an executable or library; all the files
> should still be compiled into objects and linked into a single executable
> for the whole package. The subdirectories are purely to help me keep track
> of what's going on.
> 
> Will automake handle this? How?

It won't work to list filenames with their subdir names.
(e.g. subdir/filename.cc)

A way is..  You can make static libraries (noinst_LIBRARIES) for each
subdirectory, and link the libraries into one executable.



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