http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47495
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-27 16:11:18 UTC --- For the example, the following works - though it it not robust: The order of the "myprogram" dependencies matters - and for the same reason doing a "make myprogram.o" will fail. (Assuming that mymodule.f90 has a change, which is required by myprogram.) myprogram: mymodule.o myprogram.o gfortran -o myprogram myprogram.o mymodule.o mymodule.mod: gfortran -c mymodule.f90 mymodule.o: mymodule.f90 gfortran -c mymodule.f90 myprogram.o: myprogram.f90 mymodule.mod gfortran -c myprogram.f90