diff --git a/config/oshmem_config_files.m4 b/config/oshmem_config_files.m4 index 779757dfdde..36385ab2fbc 100644 --- a/config/oshmem_config_files.m4 +++ b/config/oshmem_config_files.m4 @@ -3,8 +3,8 @@ # Copyright (c) 2013 Mellanox Technologies, Inc. # All rights reserved. # Copyright (c) 2013 Cisco Systems, Inc. All rights reserved. -# Copyright (c) 2017 Research Organization for Information Science -# and Technology (RIST). All rights reserved. +# Copyright (c) 2017-2018 Research Organization for Information Science +# and Technology (RIST). All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -27,5 +27,9 @@ AC_DEFUN([OSHMEM_CONFIG_FILES],[ oshmem/tools/wrappers/shmemcc-wrapper-data.txt oshmem/tools/wrappers/shmemc++-wrapper-data.txt oshmem/tools/wrappers/shmemfort-wrapper-data.txt + oshmem/tools/wrappers/oshmem.pc + oshmem/tools/wrappers/oshmem-c.pc + oshmem/tools/wrappers/oshmem-cxx.pc + oshmem/tools/wrappers/oshmem-fort.pc ]) ]) diff --git a/oshmem/tools/wrappers/Makefile.am b/oshmem/tools/wrappers/Makefile.am index e8f1e48484a..d00b5e0fa86 100644 --- a/oshmem/tools/wrappers/Makefile.am +++ b/oshmem/tools/wrappers/Makefile.am @@ -17,6 +17,9 @@ man_pages = oshcc.1 shmemcc.1 oshc++.1 shmemc++.1 oshcxx.1 shmemcxx.1 oshfort.1 if PROJECT_OSHMEM man_MANS = $(man_pages) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = oshmem.pc oshmem-c.pc oshmem-cxx.pc oshmem-fort.pc + nodist_oshmemdata_DATA = \ shmemcc-wrapper-data.txt \ shmemc++-wrapper-data.txt \ diff --git a/oshmem/tools/wrappers/oshmem-c.pc.in b/oshmem/tools/wrappers/oshmem-c.pc.in new file mode 100644 index 00000000000..b6c400e29f6 --- /dev/null +++ b/oshmem/tools/wrappers/oshmem-c.pc.in @@ -0,0 +1,24 @@ +# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. +# Copyright (c) 2018 Research Organization for Information Science +# and Technology (RIST). All rights reserved. +# +Name: Open SHMEM +Description: Open MPI based Open SHMEM implementation +Version: @OSHMEM_VERSION@ +URL: http://www.open-mpi.org/ +# +prefix=@prefix@ +exec_prefix=@exec_prefix@ +includedir=@includedir@ +libdir=@libdir@ +pkgincludedir=@opalincludedir@ +# +# Note that -lopen-pal and all the EXTRA_LIBS are only necessary when +# static linking (they're pulled in by libopen-rte.so's implicit +# dependencies), so only list these in Libs.private. +# +Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ -loshmem -l@OMPI_LIBMPI_NAME@ +Libs.private: -lopen-rte -lopen-pal @OMPI_WRAPPER_EXTRA_LIBS@ +# +Cflags: -I${includedir} @OMPI_WRAPPER_EXTRA_CPPFLAGS@ @OMPI_WRAPPER_EXTRA_CFLAGS@ diff --git a/oshmem/tools/wrappers/oshmem-cxx.pc.in b/oshmem/tools/wrappers/oshmem-cxx.pc.in new file mode 100644 index 00000000000..6423d5cbbe7 --- /dev/null +++ b/oshmem/tools/wrappers/oshmem-cxx.pc.in @@ -0,0 +1,24 @@ +# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. +# Copyright (c) 2018 Research Organization for Information Science +# and Technology (RIST). All rights reserved. +# +Name: Open SHMEM +Description: Open MPI based Open SHMEM implementation +Version: @OSHMEM_VERSION@ +URL: http://www.open-mpi.org/ +# +prefix=@prefix@ +exec_prefix=@exec_prefix@ +includedir=@includedir@ +libdir=@libdir@ +pkgincludedir=@opalincludedir@ +# +# Note that -lopen-pal and all the EXTRA_LIBS are only necessary when +# static linking (they're pulled in by libopen-rte.so's implicit +# dependencies), so only list these in Libs.private. +# +Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ @OMPI_WRAPPER_CXX_LIB@ -loshmem -l@OMPI_LIBMPI_NAME@ +Libs.private: -lopen-rte -lopen-pal @OMPI_WRAPPER_EXTRA_LIBS@ +# +Cflags: -I${includedir} @OMPI_WRAPPER_EXTRA_CPPFLAGS@ @OMPI_WRAPPER_EXTRA_CXXFLAGS@ diff --git a/oshmem/tools/wrappers/oshmem-fort.pc.in b/oshmem/tools/wrappers/oshmem-fort.pc.in new file mode 100644 index 00000000000..7fcfb5f5539 --- /dev/null +++ b/oshmem/tools/wrappers/oshmem-fort.pc.in @@ -0,0 +1,23 @@ +# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. +# Copyright (c) 2018 Research Organization for Information Science +# and Technology (RIST). All rights reserved. +# +Name: Open SHMEM +Description: Open MPI based Open SHMEM implementation +Version: @OSHMEM_VERSION@ +URL: http://www.open-mpi.org/ +# +prefix=@prefix@ +exec_prefix=@exec_prefix@ +includedir=@includedir@ +libdir=@libdir@ +pkgincludedir=@opalincludedir@ +# +# Note that -lopen-pal and all the EXTRA_LIBS are only necessary when +# static linking (they're pulled in by libopen-rte.so's implicit +# dependencies), so only list these in Libs.private. +# +Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ -loshmem -l@OMPI_LIBMPI_NAME@_mpifh -l@OMPI_LIBMPI_NAME@ +Libs.private: -lopen-rte -lopen-pal @OMPI_WRAPPER_EXTRA_LIBS@ +Cflags: -I${includedir} @OMPI_WRAPPER_EXTRA_CPPFLAGS@ @OMPI_WRAPPER_EXTRA_FCFLAGS@ diff --git a/oshmem/tools/wrappers/oshmem.pc.in b/oshmem/tools/wrappers/oshmem.pc.in new file mode 100644 index 00000000000..127563f790b --- /dev/null +++ b/oshmem/tools/wrappers/oshmem.pc.in @@ -0,0 +1,24 @@ +# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. +# Copyright (c) 2018 Research Organization for Information Science +# and Technology (RIST). All rights reserved. +# +Name: Open SHMEM +Description: Open MPI based Open SHMEM implementation +Version: @OSHMEM_VERSION@ +URL: http://www.open-mpi.org/ +# +prefix=@prefix@ +exec_prefix=@exec_prefix@ +includedir=@includedir@ +libdir=@libdir@ +pkgincludedir=@opalincludedir@ +# +# Note that -lopen-pal and all the EXTRA_LIBS are only necessary when +# static linking (they're pulled in by libopen-rte.so's implicit +# dependencies), so only list these in Libs.private. +# +Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ -loshmem -l@OMPI_LIBMPI_NAME@ +Libs.private: @OMPI_WRAPPER_EXTRA_LIBS@ +# +Cflags: -I${includedir} @OMPI_WRAPPER_EXTRA_CPPFLAGS@ @OMPI_WRAPPER_EXTRA_CFLAGS@