Creating a FORTRAN makefile

后端 未结 1 1987
南笙
南笙 2020-12-25 14:55

I have a FORTRAN source code consisting of many different .F and .h files. I need to build an executable from it, but I\'m having some problems. The makefile that I produc

相关标签:
1条回答
  • 2020-12-25 15:06

    Are you using GNU make? If so,

    $(FC) $(FLFLAGS) -o $@ $<
    

    may be the culprit. $< is the name of the first prerequisite, but you want all the *.o files. Try using $^ instead.

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