[Top][All Lists]

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

Link called only if all other actions are completed

From: Erik Rull
Subject: Link called only if all other actions are completed
Date: Fri, 08 Oct 2010 18:24:00 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100914 Lightning/1.0b1 SeaMonkey/2.0.8

Hi all,

I don't understand the following behavior of my makefile.

The relevant snippet is as following: file1.o file2.o file3.o ...
        $(LD) ... file4.o file5.o file6.o ...
        $(LD) ...

[and so on, finally 8 targets]


I compile make with - j5:

make -j5 all_targets

What happens: all .o's get compiled and only then the linking elements get executed one after another (and not simultaneously!). None of the targets share .o files.

What I would expect: after all .o's of one target are completed the linker of this target should get executed.

Am I right here or is there some other dependency rule that make takes into consideration?

Please help me to understand this sequence.


Best regards,


reply via email to

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