How to specify Makefile target building order without put any physical dependencies?

后端 未结 1 1986
庸人自扰
庸人自扰 2021-01-13 18:36

I have been working on a C++ project that links to a .so(dynamic library) file. Let\'s assume that I have a target PROG which needs to link to a.so, and a.so is also built b

1条回答
  •  情深已故
    2021-01-13 18:54

    If you're willing to rely on non-portable aspects of GNU make, you can use order-only prerequisites order-only prerequisites for this. That's the only way to do it other than the stamp file method you've already discovered.

    0 讨论(0)
提交回复
热议问题