Add an extra -I so that compilers can find mpi-f90-interfaces.h in a
vpath build. This commit was SVN r9937.
Этот коммит содержится в:
родитель
e24377a89c
Коммит
1f8cc1af65
@ -123,13 +123,17 @@ $(nodist_libmpi_f90_a_SOURCES): fortran_kinds.sh
|
|||||||
# exist; there aren't good portable ways to indicate that the target
|
# exist; there aren't good portable ways to indicate that the target
|
||||||
# name is fake and should never exist).
|
# name is fake and should never exist).
|
||||||
|
|
||||||
|
# Note the "-I." in the commands below. This is because mpi.f90
|
||||||
|
# includes mpi-f90-interfaces.h, which will be in the build tree
|
||||||
|
# (i.e., the current directory) because it is generated.
|
||||||
|
|
||||||
mpi.o: mpi.f90 mpi-f90-interfaces.h
|
mpi.o: mpi.f90 mpi-f90-interfaces.h
|
||||||
@echo "***************************************************************"
|
@echo "***************************************************************"
|
||||||
@echo "* Compiling the mpi.f90 file may take a few minutes."
|
@echo "* Compiling the mpi.f90 file may take a few minutes."
|
||||||
@echo "* This is quite normal -- do not be alarmed if the compile"
|
@echo "* This is quite normal -- do not be alarmed if the compile"
|
||||||
@echo "* process seems to 'hang' at this point for several minutes."
|
@echo "* process seems to 'hang' at this point for several minutes."
|
||||||
@echo "***************************************************************"
|
@echo "***************************************************************"
|
||||||
$(FCCOMPILE) -c -o $@ $(FCFLAGS_f90) $<
|
$(FCCOMPILE) -c -I. -o $@ $(FCFLAGS_f90) $<
|
||||||
|
|
||||||
mpi.obj: mpi.f90 mpi-f90-interfaces.h
|
mpi.obj: mpi.f90 mpi-f90-interfaces.h
|
||||||
@echo "***************************************************************"
|
@echo "***************************************************************"
|
||||||
@ -137,7 +141,7 @@ mpi.obj: mpi.f90 mpi-f90-interfaces.h
|
|||||||
@echo "* This is quite normal -- do not be alarmed if the compile"
|
@echo "* This is quite normal -- do not be alarmed if the compile"
|
||||||
@echo "* process seems to 'hang' at this point for several minutes."
|
@echo "* process seems to 'hang' at this point for several minutes."
|
||||||
@echo "***************************************************************"
|
@echo "***************************************************************"
|
||||||
$(FCCOMPILE) -c -o $@ $(FCFLAGS_f90) `$(CYGPATH_W) '$<'`
|
$(FCCOMPILE) -c -I. -o $@ $(FCFLAGS_f90) `$(CYGPATH_W) '$<'`
|
||||||
|
|
||||||
else
|
else
|
||||||
lib_LIBRARIES +=
|
lib_LIBRARIES +=
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user