# Makefile for Defmod
FFLAGS =
FPPFLAGS =
LDLIBS =
-include ${PETSC_DIR}/conf/variables
-include ${PETSC_DIR}/conf/rules
-include ${PETSC_DIR}/lib/petsc/conf/variables
-include ${PETSC_DIR}/lib/petsc/conf/rules
OBJS = main.o m_global.o m_local.o m_elems.o m_utils.o
m_utils.o : m_utils.F90
m_elems.o : m_elems.F90 m_utils.o
m_local.o : m_local.F90 m_elems.o
m_global.o: m_global.F90 m_local.o
main.o : main.F90 m_global.o
all: ${OBJS}
-${FLINKER} ${OBJS} -o ../defmod ${PETSC_LIB} ${LDLIBS}
当我输入make all时,它会弹出:</p>
make[1]: Entering directory '/mnt/c/Users/gxyan/defmod-dev/src'
main.o m_global.o m_local.o m_elems.o m_utils.o -o ../defmod
make[1]: main.o: Command not found
Makefile:21: recipe for target 'all' failed
make[1]: [all] Error 127 (ignored)
make[1]: Leaving directory '/mnt/c/Users/gxyan/defmod-dev/src'
并且设置了PETSC的所有环境变量。PETSC 的配置是通过以下命令完成的:
./configure --with-cc=gcc --with-fc=gfortran --download-mpich --download-fblaslapack --download-cmake --download-metis --with-debugging=0
那么,怎么了?