|
新人求助。之前一直用学校的正版NAG Fortran,现在毕业了换了simply Fortran。原来可以运行的代码居然不能运行了。执行build project时提示:Error: Target (build\module.o) is defined recursively。字面意思是这个文件被重复定义,但是查了很多地方也没有给出更具体的说明,求教诸位,多谢多谢。以下是大部分的Makefile内容FC="C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gfortran.exe"
CC="C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gcc.exe"
AR="C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\ar.exe"
WRC="C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\windres.exe"
RM=rm -f
IDIR=
LDIR=
OPTFLAGS= -g
SPECIALFLAGS=$(IDIR)
RCFLAGS=-O coff
PRJ_FFLAGS=
PRJ_CFLAGS=
PRJ_LFLAGS=
FFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_FFLAGS) -Jmodules
CFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_CFLAGS)
"build\CFLUPOUT.o": ".\CFLUPOUT.f90" "modules\mod_controldata.mod" "modules\mod_solution.mod" "modules\diff.mod" "modules\prcp.mod" "modules\soil.mod" "modules\typedef.mod" "modules\morton.mod"
@echo Compiling .\CFLUPOUT.f90
@$(FC) -c -o "build\CFLUPOUT.o" $(FFLAGS) ".\CFLUPOUT.f90"
"build\CHZ.o": ".\CHZ.f90" "modules\mod_controldata.mod" "modules\typedef.mod"
@echo Compiling .\CHZ.f90
@$(FC) -c -o "build\CHZ.o" $(FFLAGS) ".\CHZ.f90"
"build\dbcm.o": ".\dbcm.f90" "modules\constants.mod" "modules\mod_controldata.mod" "modules\mod_solution.mod" "modules\tsdata.mod" "modules\diff.mod" "modules\prcp.mod" "modules\soil.mod" "modules\bound.mod" "modules\typedef.mod" "modules\morton.mod"
@echo Compiling .\dbcm.f90
@$(FC) -c -o "build\dbcm.o" $(FFLAGS) ".\dbcm.f90"
"build\DIFWAV.o": ".\DIFWAV.f90" "modules\mod_controldata.mod" "modules\mod_solution.mod" "modules\diff.mod"
@echo Compiling .\DIFWAV.f90
@$(FC) -c -o "build\DIFWAV.o" $(FFLAGS) ".\DIFWAV.f90"
"build\DIFWAV_QT.o": ".\DIFWAV_QT.f90" "modules\mod_controldata.mod" "modules\diff.mod" "modules\typedef.mod" "modules\morton.mod"
@echo Compiling .\DIFWAV_QT.f90
@$(FC) -c -o "build\DIFWAV_QT.o" $(FFLAGS) ".\DIFWAV_QT.f90"
"build\DWCHCK.o": ".\DWCHCK.f90" "modules\mod_controldata.mod" "modules\typedef.mod" "modules\morton.mod"
@echo Compiling .\DWCHCK.f90
@$(FC) -c -o "build\DWCHCK.o" $(FFLAGS) ".\DWCHCK.f90"
"build\HYDBND.o": ".\HYDBND.f90" "modules\mod_controldata.mod" "modules\tsdata.mod" "modules\bound.mod" "modules\typedef.mod" "modules\morton.mod"
@echo Compiling .\HYDBND.f90
@$(FC) -c -o "build\HYDBND.o" $(FFLAGS) ".\HYDBND.f90"
"build\HYDSUB_QT.o": ".\HYDSUB_QT.f90" "modules\mod_controldata.mod" "modules\typedef.mod" "modules\morton.mod"
@echo Compiling .\HYDSUB_QT.f90
@$(FC) -c -o "build\HYDSUB_QT.o" $(FFLAGS) ".\HYDSUB_QT.f90"
"build\INREBD.o": ".\INREBD.f90" "modules\mod_controldata.mod"
@echo Compiling .\INREBD.f90
@$(FC) -c -o "build\INREBD.o" $(FFLAGS) ".\INREBD.f90"
"build\MCSUB_QT.o": ".\MCSUB_QT.f90" "modules\mod_controldata.mod" "modules\typedef.mod" "modules\morton.mod"
@echo Compiling .\MCSUB_QT.f90
@$(FC) -c -o "build\MCSUB_QT.o" $(FFLAGS) ".\MCSUB_QT.f90"
"build\module.o": ".\module.f90" "modules\util.mod"
@echo Compiling .\module.f90
@$(FC) -c -o "build\module.o" $(FFLAGS) ".\module.f90"
"modules\constants.mod" "modules\mod_controldata.mod" "modules\mod_solution.mod" "modules\tsdata.mod" "modules\diff.mod" "modules\prcp.mod" "modules\soil.mod" "modules\bound.mod" "modules\typedef.mod" "modules\morton.mod" : "build\module.o" .EXISTSONLY
@echo Compiling .\module.f90
@$(FC) -c -o "build\module.o" $(FFLAGS) ".\module.f90"
"build\PCP.o": ".\PCP.f90" "modules\mod_controldata.mod" "modules\prcp.mod" "modules\morton.mod"
@echo Compiling .\PCP.f90
@$(FC) -c -o "build\PCP.o" $(FFLAGS) ".\PCP.f90"
"build\QTMESH.o": ".\QTMESH.f90" "modules\mod_controldata.mod" "modules\mod_solution.mod" "modules\soil.mod" "modules\morton.mod"
@echo Compiling .\QTMESH.f90
@$(FC) -c -o "build\QTMESH.o" $(FFLAGS) ".\QTMESH.f90"
"build\READIN.o": ".\READIN.f90" "modules\constants.mod" "modules\mod_controldata.mod" "modules\mod_solution.mod" "modules\tsdata.mod" "modules\diff.mod" "modules\bound.mod"
@echo Compiling .\READIN.f90
@$(FC) -c -o "build\READIN.o" $(FFLAGS) ".\READIN.f90"
"build\SOL.o": ".\SOL.f90" "modules\mod_controldata.mod" "modules\mod_solution.mod" "modules\prcp.mod" "modules\soil.mod" "modules\morton.mod"
@echo Compiling .\SOL.f90
@$(FC) -c -o "build\SOL.o" $(FFLAGS) ".\SOL.f90"
"build\SWE.o": ".\SWE.f90" "modules\mod_controldata.mod" "modules\mod_solution.mod"
@echo Compiling .\SWE.f90
@$(FC) -c -o "build\SWE.o" $(FFLAGS) ".\SWE.f90"
"build\SWE_QT.o": ".\SWE_QT.f90" "modules\mod_controldata.mod" "modules\bound.mod" "modules\typedef.mod" "modules\morton.mod"
@echo Compiling .\SWE_QT.f90
@$(FC) -c -o "build\SWE_QT.o" $(FFLAGS) ".\SWE_QT.f90"
"build\TIN.o": ".\TIN.f90" "modules\mod_controldata.mod" "modules\typedef.mod" "modules\morton.mod"
@echo Compiling .\TIN.f90
@$(FC) -c -o "build\TIN.o" $(FFLAGS) ".\TIN.f90"
"build\util.o": ".\util.f90" "modules\constants.mod"
@echo Compiling .\util.f90
@$(FC) -c -o "build\util.o" $(FFLAGS) ".\util.f90"
"modules\util.mod" : "build\util.o" .EXISTSONLY
@echo Compiling .\util.f90
@$(FC) -c -o "build\util.o" $(FFLAGS) ".\util.f90"
"build\ZBND.o": ".\ZBND.f90" "modules\mod_controldata.mod" "modules\bound.mod"
@echo Compiling .\ZBND.f90
@$(FC) -c -o "build\ZBND.o" $(FFLAGS) ".\ZBND.f90"
|
|