1
1

Use BUILT_SOURCES to hint automake to actually build

mpi_kinds.ompi_module before the rest which depends on it.  Fix suffix
rules, add suffix rule for libtool objects for testing.  Fix for VPATH
builds.

This commit was SVN r7048.
Этот коммит содержится в:
Jeff Squyres 2005-08-26 16:22:33 +00:00
родитель 917b696f9b
Коммит 2fb92f5844

Просмотреть файл

@ -51,13 +51,16 @@ include $(top_srcdir)/config/Makefile.options
SUBDIRS = scripts
AM_FCFLAGS = -I$(top_srcdir)/include $(OMPI_FC_MODULE_FLAG).
AM_FCFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include $(OMPI_FC_MODULE_FLAG).
# We have to EXTRA_DIST mpi_kinds.f90 because there is no explicit
# Automake rule to compile this file.
EXTRA_DIST = mpi_kinds.f90
# We have to build this before the other ones.
BUILT_SOURCES = mpi_kinds.ompi_module
# Override the default f90 rules because we have to insert
# $(FCFLAGS_f90) right before the source filename. This is necessary
# for cases where the compiler expects source files to end in .f, and
@ -68,7 +71,11 @@ EXTRA_DIST = mpi_kinds.f90
$(FCCOMPILE) -c -o $@ $(FCFLAGS_f90) $<
.f90.obj:
$(FCCOMPILE) -c -o $@ `$(CYGPATH_W) $(FCFLAGS_f90) '$<'`
$(FCCOMPILE) -c -o $@ $(FCFLAGS_f90) `$(CYGPATH_W) '$<'`
.f90.lo:
$(LTFCCOMPILE) -c -o $@ $(FCFLAGS_f90) $<
# Do different things if the top-level configure decided that we're
# going to build F90 bindings or not.
@ -152,7 +159,7 @@ mpi.obj: mpi.f90 mpi-f90-interfaces.h
@echo "* This is quite normal -- do not be alarmed if the compile"
@echo "* process seems to 'hang' at this point for several minutes."
@echo "***************************************************************"
$(FCCOMPILE) -c -o $@ `$(CYGPATH_W) $(FCFLAGS_f90) '$<'`
$(FCCOMPILE) -c -o $@ $(FCFLAGS_f90) `$(CYGPATH_W) '$<'`
else
lib_LIBRARIES +=