Makefile revision 5079
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
TPNO= 25030
cd $(COMPONENT_SRC)/Modules; $(GNU_GREP) -l '/opt/csw' *.cmake | /usr/bin/xargs -I \{\} $(GSED) -i -e '/^[ ]*\/opt\/csw/d' \{\}
# Currently only builds with gcc, and since it's C++, we'll just force it to
# build as C++11 for ABI compatibility.
# Need to remove this option from LD_OPTIONS (only affects sparc build);
# it causes a SegFault failure in kwsys/testSystemInformation
# when testing on sparc
# We need these in the environment, although they are already passed
# as CONFIGURE_OPTIONS; otherwise the correct compilers are not used
# configure in cmake does not accept many of the options set in
# configure.mk (CC=, CXX=, --bindir, --libdir, --sbindir). Clear those
# out and just include the default options it does accept.
# Use system-installed third-party libraries, rather than the private
# copies in the cmake source.
ASLR_MODE = $(ASLR_ENABLE)
# Need C and C++ compiler locations for cmake tests
COMPONENT_TEST_TARGETS = test
'-e "s/\s\s*[0-9][0-9]*\.[0-9][0-9]* sec/ SEC sec/"' \
'-e "s/\][0-9][0-9]*\.[0-9][0-9]* sec/\]SEC sec/"'
# Built binaries are moved aside and replaced with
# which will be executed for the system-test target
# Restore the built binaries after system-test is done
# common targets
install: $(INSTALL_64)
# expected failure: CTestTestUpload
test: $(TEST_64)