问题描述
我想在现有的 fortran90 程序中添加一个新的 fortran 模块。现有的fortran90 程序是通过先运行./configure
,然后运行make
和make install
来编译的。如果我想定义我自己的创新,我还需要做的是export VER_USER=xxx
,然后是make user
和make installuser
。似乎 make
负责编译工作,而 make install
负责安装工作。我需要添加类似 gfortran -o using_FKB using_FKB.o other.o ... -L/path_of_lib -lnewlib
或 path/to/libneural.a
的内容。所以我需要调试原来的Makefile
。但我发现这很困难,因为原来的 Makefile
太长了。我尝试使用 make -V=1
或 make -d
以及 make SHELL='sh -x'
,但它们在我的终端上打印了很多东西......我几乎无法调试。有没有办法一步一步调试它?
顺便说一下,$()
中的 Makefile
变量太多了。当我使用``make -V=1or
make -d,and also
make SHELL='sh -x' ,I found they hardly print the command in
Makefilelike
$(OBJ_PATH)=/path/ obj_path...and it's quite hard for me to debug this...so is there any way to debug the
Makefile``` 一步一步?谢谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)