# -*- indent-tabs-mode:nil -*- # # Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights # reserved. # Copyright (c) 2011 UT-Battelle, LLC. All rights reserved. # # Additional copyrights may follow # # $HEADER$ # # Make the output library in this directory, and name it either # mca__.la (for DSO builds) or libmca__.la # (for static builds). AM_CPPFLAGS = $(common_ugni_CPPFLAGS) component_noinst = libmca_common_ugni_noinst.la component_install = libmca_common_ugni.la if MCA_BUILD_ompi_common_ugni_DSO mcacomponent_LTLIBRARIES = $(component_install) else noinst_LTLIBRARIES = $(component_noinst) endif headers = common_ugni.h \ common_ugni_ep.h ugni_SOURCES = common_ugni.c \ common_ugni_ep.c mcacomponentdir = $(ompilibdir) libmca_common_ugni_la_SOURCES = $(headers) $(ugni_SOURCES) nodist_libmca_common_ugni_la_SOURCES = $(ugni_nodist_SOURCES) libmca_common_ugni_la_LIBADD = $(common_ugni_LIBS) libmca_common_ugni_la_LDFLAGS = \ -version-info $(libmca_common_ugni_so_version) \ $(common_ugni_LDFLAGS) libmca_common_ugni_noinst_la_SOURCES = $(headers) $(ugni_SOURCES) nodist_libmca_common_ugni_noinst_la_SOURCES = $(ugni_nodist_SOURCES) libmca_common_ugni_noinst_la_LIBADD = $(common_ugni_LIBS) libmca_common_ugni_noinst_la_LDFLAGS = -module -avoid-version $(common_ugni_LDFLAGS) # These two rules will sym link the "noinst" libtool library filename # to the installable libtool library filename in the case where we are # compiling this component statically (case 2), described above). all-local: if test -z "$(mcacomponent_LTLIBRARIES)"; then \ rm -f "$(component_install)"; \ $(LN_S) "$(component_noinst)" "$(component_install)"; \ fi clean-local: if test -z "$(mcacomponent_LTLIBRARIES)"; then \ rm -f "$(component_install)"; \ fi