Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

makefile

roddur
Beginner
421 Views
This is not really something associated with ifort or even fortran, but in general computation and linking of code to a static library. So, I am sorry to put it here, but i need help in this issue.

when we compile and link some static library to the executable, it seems that the linking do not take into account any change in the library. say, we have some static library liba.a which is edited and archived afresh.
but if a.out previously exists, then re"mak"ing a.out will not take into accout the change in the lib.a; we have to remove a.out and link afresh.
anyway to instruct makefile to chake the changes in the library file?
0 Kudos
1 Reply
TimP
Honored Contributor III
421 Views
Quoting - roddur
if a.out previously exists, then re"mak"ing a.out will not take into accout the change in the lib.a; we have to remove a.out and link afresh.
anyway to instruct makefile to chake the changes in the library file?
Show it explicitly in the dependency list for the link step (besides including it in the link line).
0 Kudos
Reply