I have a project here that I want to compile using make. The code of the project can be organized hierarchically as a common set of source files (named foo), and many different (and indipendent) sets of source files (named bar01, bar02, and so on) all linking against the object files resulting from the foo source files.
-----/foo (the common set of source file) | |--/bar01 (first set of source file that link against foo) | |--/bar02 (second set of source file that link against foo) | ....
When I run make inside one of the bar directories, I'd like that the files inside foo were rebuild (if necessary) and then the file inside bar were compiled and linked together with those in foo. I means something like this:
gcc ../foo/foofileA.o ../foo/foofileB.o bar01fileA.o bar01fileB.o -o bar01module.so
I've tried to get it with make, but without success, neither googling the Net helped. Is it possible to get this behavior with make? How?
Thanks in advance, Andrea.
_______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
