Makefile revision 4675
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Common Development and Distribution License (the "License").
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You may not use this file except in compliance with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# or http://www.opensolaris.org/os/licensing.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_NAME= nettle
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_VERSION= 3.1
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_PROJECT_URL= http://www.lysator.liu.se/~nisse/nettle/
e6c3a72a023407f5d1fface64356e1cc81f1af31Phill CunningtonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_ARCHIVE_HASH= \
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington sha256:f6859d4ec88e70805590af9862b4b8c43a2d1fc7991df0a7a711b1e7ca9fc9d3
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_ARCHIVE_URL= https://ftp.gnu.org/gnu/nettle/$(COMPONENT_ARCHIVE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_BUGDB= library/nettle
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill CunningtonTPNO= 22160
f48118365a7f4f1240516dbe66e47b24a896ff16Craig McDonnell
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunningtoninclude ../../make-rules/shared-macros.mk
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunningtoninclude $(WS_MAKE_RULES)/prep.mk
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude $(WS_MAKE_RULES)/configure.mk
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunningtoninclude $(WS_MAKE_RULES)/ips.mk
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill CunningtonCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS += --with-include-path=/usr/include/gmp
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill CunningtonCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill CunningtonCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS += CC_FOR_BUILD="$(CC) $(CC_BITS)"
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill CunningtonCONFIGURE_OPTIONS += --disable-elliptic-curves
a82d04bc19fee9d5e34b41ccd7641da1f62ab634Neil MaddenCONFIGURE_OPTIONS += --disable-knuth-lfib
a82d04bc19fee9d5e34b41ccd7641da1f62ab634Neil Madden
a82d04bc19fee9d5e34b41ccd7641da1f62ab634Neil Madden# The additional set of transforms to be applied to the
a82d04bc19fee9d5e34b41ccd7641da1f62ab634Neil Madden# test results to try to normalize them.
a82d04bc19fee9d5e34b41ccd7641da1f62ab634Neil MaddenCOMPONENT_TEST_TRANSFORMS += \
a82d04bc19fee9d5e34b41ccd7641da1f62ab634Neil Madden '-e "1,/run-tests/d"' \
a82d04bc19fee9d5e34b41ccd7641da1f62ab634Neil Madden '-e "/^e/d"'
a82d04bc19fee9d5e34b41ccd7641da1f62ab634Neil Madden
a82d04bc19fee9d5e34b41ccd7641da1f62ab634Neil MaddenCOMPONENT_PREP_ACTION = \
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington (cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv)
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill CunningtonASLR_MODE = $(ASLR_ENABLE)
ce4d3fddc8fe2eddd68a20af9570b3cc63ece5abNeil Madden
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington# common targets
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunningtonconfigure: $(CONFIGURE_32_and_64)
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunningtonbuild: $(BUILD_32_and_64)
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall: $(INSTALL_32_and_64)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8d3140b524c0e28c0a49dc7c7d481123ef3cfe11Chris Leetest: $(TEST_32_and_64)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fostersystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterREQUIRED_PACKAGES += library/gmp
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterREQUIRED_PACKAGES += system/library
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster