2009-05-26 20:49:35 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2004-2009 The Trustees of Indiana University and Indiana
|
|
|
|
# University Research and Technology
|
|
|
|
# Corporation. All rights reserved.
|
2011-06-10 20:03:06 +00:00
|
|
|
# Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
|
2011-06-27 20:38:30 +00:00
|
|
|
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
|
2009-05-26 20:49:35 +00:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
2011-06-10 20:03:06 +00:00
|
|
|
#
|
|
|
|
# C bindings
|
|
|
|
#
|
2009-05-26 20:49:35 +00:00
|
|
|
headers = \
|
|
|
|
mpiext_example_c.h
|
|
|
|
|
|
|
|
sources = \
|
|
|
|
c/progress.c
|
|
|
|
|
2011-06-10 20:03:06 +00:00
|
|
|
#
|
|
|
|
# F77 bindings
|
|
|
|
#
|
|
|
|
f77_sources =
|
|
|
|
if OMPI_WANT_F77_BINDINGS
|
|
|
|
headers += \
|
|
|
|
mpiext_example_f77.h
|
|
|
|
|
|
|
|
f77_sources += \
|
|
|
|
f77/progress_f.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# F90 bindings
|
|
|
|
#
|
2011-06-27 20:38:30 +00:00
|
|
|
if OMPI_WANT_F90_BINDINGS
|
2011-06-10 20:03:06 +00:00
|
|
|
headers += \
|
|
|
|
mpiext_example_f90.h
|
|
|
|
endif
|
2009-05-26 20:49:35 +00:00
|
|
|
|
|
|
|
extcomponentdir = $(pkglibdir)
|
|
|
|
|
2011-06-10 20:03:06 +00:00
|
|
|
# For C Bindings
|
|
|
|
lib = libext_mpiext_example.la
|
|
|
|
lib_sources = $(sources)
|
|
|
|
|
2009-05-26 20:49:35 +00:00
|
|
|
libext_mpiext_example_la_SOURCES = $(lib_sources)
|
|
|
|
libext_mpiext_example_la_LDFLAGS = -module -avoid-version
|
|
|
|
|
2011-06-10 20:03:06 +00:00
|
|
|
# For F77 Bindings
|
|
|
|
AM_CPPFLAGS = -DOMPI_PROFILE_LAYER=0 -DOMPI_COMPILING_F77_WRAPPERS=1
|
|
|
|
f77_lib = libext_mpiext_example_f77.la
|
|
|
|
f77_lib_sources = $(f77_sources)
|
|
|
|
|
|
|
|
libext_mpiext_example_f77_la_SOURCES = $(f77_lib_sources)
|
|
|
|
libext_mpiext_example_f77_la_LIBADD = $(lib_sources)
|
|
|
|
libext_mpiext_example_f77_la_LDFLAGS = -module -avoid-version
|
|
|
|
|
|
|
|
# For F90 Bindings
|
|
|
|
#f90_lib = libext_mpiext_example_f90.la
|
|
|
|
#f90_lib_sources =
|
|
|
|
|
|
|
|
#libext_mpiext_example_f90_la_SOURCES = $(f90_lib_sources)
|
|
|
|
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = $(lib) $(f77_lib)
|
|
|
|
|
2009-05-26 20:49:35 +00:00
|
|
|
ompidir = $(includedir)/openmpi/ompi/mpiext/example
|
|
|
|
ompi_HEADERS = \
|
|
|
|
$(headers)
|