Blame src/hwloc/netloc/Makefile.am

Packit Service c5cf8c
# Copyright © 2014 Cisco Systems, Inc.  All rights reserved.
Packit Service c5cf8c
# Copyright © 2014      University of Wisconsin-La Crosse.
Packit Service c5cf8c
#                         All rights reserved.
Packit Service c5cf8c
#
Packit Service c5cf8c
# Copyright © 2016-2018 Inria.  All rights reserved.
Packit Service c5cf8c
# See COPYING in top-level directory.
Packit Service c5cf8c
#
Packit Service c5cf8c
# $HEADER$
Packit Service c5cf8c
#
Packit Service c5cf8c
Packit Service c5cf8c
AM_CPPFLAGS = \
Packit Service c5cf8c
        $(NETLOC_CPPFLAGS) \
Packit Service c5cf8c
        $(HWLOC_CPPFLAGS)
Packit Service c5cf8c
Packit Service c5cf8c
# If we're in standalone mode, build the installable library.
Packit Service c5cf8c
# Otherwise, build the embedded library.
Packit Service c5cf8c
Packit Service c5cf8c
if HWLOC_BUILD_STANDALONE
Packit Service c5cf8c
lib_LTLIBRARIES = libnetloc.la
Packit Service c5cf8c
else
Packit Service c5cf8c
noinst_LTLIBRARIES = libnetloc_embedded.la
Packit Service c5cf8c
endif
Packit Service c5cf8c
Packit Service c5cf8c
sources = \
Packit Service c5cf8c
        support.c \
Packit Service c5cf8c
        topology.c \
Packit Service c5cf8c
        edge.c \
Packit Service c5cf8c
        node.c \
Packit Service c5cf8c
        physical_link.c \
Packit Service c5cf8c
        path.c \
Packit Service c5cf8c
        architecture.c \
Packit Service c5cf8c
        hwloc.c \
Packit Service c5cf8c
        mpicomm.c
Packit Service c5cf8c
Packit Service c5cf8c
Packit Service c5cf8c
# Installable library
Packit Service c5cf8c
Packit Service c5cf8c
libnetloc_la_SOURCES = $(sources)
Packit Service c5cf8c
libnetloc_la_LDFLAGS = $(ldflags) -version-info $(libnetloc_so_version)
Packit Service c5cf8c
libnetloc_la_LIBADD = \
Packit Service c5cf8c
        $(top_builddir)/hwloc/libhwloc.la
Packit Service c5cf8c
Packit Service c5cf8c
# Embedded library (note the lack of a .so version number -- that
Packit Service c5cf8c
# intentionally only appears in the installable library).  Also note
Packit Service c5cf8c
# the lack of _LDFLAGS -- all libs are added by the upper layer (via
Packit Service c5cf8c
# HWLOC_EMBEDDED_LIBS).
Packit Service c5cf8c
Packit Service c5cf8c
libnetloc_embedded_la_SOURCES = $(sources)
Packit Service c5cf8c
libnetloc_embedded_la_LDFLAGS = $(ldflags)
Packit Service c5cf8c
libnetloc_embedded_la_LIBADD = \
Packit Service c5cf8c
        $(HWLOC_top_builddir)/hwloc/libhwloc_embedded.la
Packit Service c5cf8c
Packit Service c5cf8c
scotchsources = \
Packit Service c5cf8c
        scotch.c
Packit Service c5cf8c
Packit Service c5cf8c
if BUILD_NETLOCSCOTCH
Packit Service c5cf8c
# If we're in standalone mode, build the installable library.
Packit Service c5cf8c
# Otherwise, build the embedded library.
Packit Service c5cf8c
Packit Service c5cf8c
if HWLOC_BUILD_STANDALONE
Packit Service c5cf8c
lib_LTLIBRARIES += libnetlocscotch.la
Packit Service c5cf8c
else
Packit Service c5cf8c
noinst_LTLIBRARIES += libnetlocscotch_embedded.la
Packit Service c5cf8c
endif
Packit Service c5cf8c
Packit Service c5cf8c
# Installable library
Packit Service c5cf8c
Packit Service c5cf8c
libnetlocscotch_la_SOURCES = $(scotchsources)
Packit Service c5cf8c
libnetlocscotch_la_LDFLAGS = -version-info $(libnetloc_so_version)
Packit Service c5cf8c
libnetlocscotch_la_LIBADD = \
Packit Service c5cf8c
        $(top_builddir)/hwloc/libhwloc.la \
Packit Service c5cf8c
        libnetloc.la
Packit Service c5cf8c
Packit Service c5cf8c
# Embedded library (note the lack of a .so version number -- that
Packit Service c5cf8c
# intentionally only appears in the installable library).  Also note
Packit Service c5cf8c
# the lack of _LDFLAGS -- all libs are added by the upper layer (via
Packit Service c5cf8c
# HWLOC_EMBEDDED_LIBS).
Packit Service c5cf8c
Packit Service c5cf8c
libnetlocscotch_embedded_la_SOURCES = $(scotchsources)
Packit Service c5cf8c
libnetlocscotch_embedded_la_LDFLAGS =
Packit Service c5cf8c
libnetlocscotch_embedded_la_LIBADD = \
Packit Service c5cf8c
        $(HWLOC_top_builddir)/hwloc/libhwloc_embedded.la \
Packit Service c5cf8c
        $(HWLOC_top_builddir)/hwloc/libnetloc_embedded.la
Packit Service c5cf8c
Packit Service c5cf8c
else !BUILD_NETLOCSCOTCH
Packit Service c5cf8c
EXTRA_DIST = $(scotchsources)
Packit Service c5cf8c
endif !BUILD_NETLOCSCOTCH