1212# Copyright (c) 2010-2015 Cisco Systems, Inc. All rights reserved.
1313# Copyright (c) 2010-2015 Los Alamos National Security, LLC.
1414# All rights reserved.
15+ # Copyright (c) 2018 Research Organization for Information Science
16+ # and Technology (RIST). All rights reserved.
1517# $COPYRIGHT$
1618#
1719# Additional copyrights may follow
@@ -81,6 +83,23 @@ if MCA_BUILD_opal_common_sm_DSO
8183lib_LTLIBRARIES += $(comp_inst )
8284else
8385noinst_LTLIBRARIES += $(comp_noinst )
86+
87+ # These two rules will sym link the "noinst" libtool library filename
88+ # to the installable libtool library filename in the case where we are
89+ # compiling this component statically (case 2), described above).
90+
91+ # See Makefile.ompi-rules for an explanation of the "V" macros, below
92+ V =0
93+ OMPI_V_LN_SCOMP = $(ompi__v_LN_SCOMP_$V )
94+ ompi__v_LN_SCOMP_ = $(ompi__v_LN_SCOMP_$AM_DEFAULT_VERBOSITY )
95+ ompi__v_LN_SCOMP_0 = @echo " LN_S " ` basename $( comp_inst) ` ;
96+
97+ all-local : $(comp_inst )
98+ $(OMPI_V_LN_SCOMP ) rm -f " $( comp_inst) " ; \
99+ $(LN_S ) " $( comp_noinst) " " $( comp_inst) "
100+
101+ clean-local :
102+ rm -f " $( comp_inst) "
84103endif
85104
86105lib@OPAL_LIB_PREFIX@mca_common_sm_la_SOURCES = \
@@ -96,24 +115,3 @@ if WANT_INSTALL_HEADERS
96115opaldir = $(opalincludedir ) /$(subdir )
97116opal_HEADERS = $(headers )
98117endif
99-
100- # These two rules will sym link the "noinst" libtool library filename
101- # to the installable libtool library filename in the case where we are
102- # compiling this component statically (case 2), described above).
103-
104- # See Makefile.ompi-rules for an explanation of the "V" macros, below
105- V =0
106- OMPI_V_LN_SCOMP = $(ompi__v_LN_SCOMP_$V )
107- ompi__v_LN_SCOMP_ = $(ompi__v_LN_SCOMP_$AM_DEFAULT_VERBOSITY )
108- ompi__v_LN_SCOMP_0 = @echo " LN_S " ` basename $( comp_inst) ` ;
109-
110- all-local :
111- $(OMPI_V_LN_SCOMP ) if test -z " $( lib_LTLIBRARIES) " ; then \
112- rm -f " $( comp_inst) " ; \
113- $(LN_S ) " $( comp_noinst) " " $( comp_inst) " ; \
114- fi
115-
116- clean-local :
117- if test -z " $( lib_LTLIBRARIES) " ; then \
118- rm -f " $( comp_inst) " ; \
119- fi
0 commit comments