开发者

How can I control the order in which make targets are executed?

开发者 https://www.devze.com 2023-01-29 19:33 出处:网络
Let\'s say I have a main target, exe which depends on three libs: exe: LIB1.lib LIB2.lib LIB3.lib and the lib targets have something like this:

Let's say I have a main target, exe which depends on three libs:

exe: LIB1.lib LIB2.lib LIB3.lib

and the lib targets have something like this:

LIB1: $(LIB1OBJECTS)
LIB2: $(LIB2OBJECTS)
LIB3: $(LIB3OBJECTS)

Giving that most of the time, make will be run with a -j flag, and I 开发者_运维技巧would like for LIB1 and LIB2 to be built in parallel, how can I make sure that LIB3 is always built after LIB2?


Make LIB3 dependent on LIB2.

0

精彩评论

暂无评论...
验证码 换一张
取 消