[Top][All Lists]

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

Multiple-dir make.

From: Andrea Riciputi
Subject: Multiple-dir make.
Date: Thu, 12 May 2005 18:23:25 +0200

Hi all,
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

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,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]