|
In your make.code.defn file put lines
SRCS = <sources in this directory>
SUBDIRS= <all subdirectories - e.g. what find . -type d would give you>
then in each subdirectory put a make.code.defn containing
SRCS = <sources in this directory>
(N.B. you cannot currently put a SUBDIRS line here)
along with make.code.deps files in all the directories.
Make will then go into the relevant subdirectory and make the object files there
before updating the library file.
The first time it does this you will get errors of the form
cannot find <subdir-name>/make.identity
you should ignore these errors, as the make system then creates the files. If I find a way to do this without the errors, I'll be happy 8-) The files are used to keep track of the subdirectory filenames.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@66 17b73243-c579-4c4c-a9d2-2d5706c11dac
|