On Sat, Apr 11, 2009 at 4:28 PM, Tyler Littlefield <[email protected]> wrote:

> I've got a Makefile which is rather long, and I have a couple of questions.
> I'm building modules in separate directories, so I have something like:
> O_FILES= module1/file1.o, MODULE2/file2.o
> then I have:
> O_FILES_A = file1.o file2.o
> for the linking.
> Is there a way I can do this with one line?

Not sure what you mean by doing it with one line, do what?

> I would also like to be able to test for the exit status; (if gcc fails just 
> exit without running the rest), etc.
> Any ideas on how this might be done?

If gcc fails, the make will automatically stop, unless you use the -k
option on the command-line.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to