[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:1.9.1.13) 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:
target1.so: file1.o file2.o file3.o ...
$(LD) ...
target2.so: file4.o file5.o file6.o ...
$(LD) ...
[and so on, finally 8 targets]
all_targets: target1.so target2.so target3.so target4.so target5.so
target6.so target7.so target8.so
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.
Thanks.
Best regards,
Erik
- Link called only if all other actions are completed,
Erik Rull <=