Makefile revision 5775
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A
2362N/A#
2362N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/ABUILD_BITS= 64_and_32
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= nettle
0N/ACOMPONENT_VERSION= 3.2
0N/ACOMPONENT_PROJECT_URL= http://www.lysator.liu.se/~nisse/nettle/
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:ea4283def236413edab5a4cf9cf32adf540c8df1b9b67641cfc2302fca849d97
0N/ACOMPONENT_BUGDB= library/nettle
0N/A
0N/ATPNO= 27549
0N/A
0N/A# We need to build an extra static version of these libraries for
0N/A# GRUB/Wanboot support.
0N/A
0N/Aifeq ($(MACH),i386)
0N/A
0N/AWANBOOT_CONFIGURE = $(BUILD_DIR)/wanboot-amd64/.configured
0N/AWANBOOT_BUILD = $(BUILD_DIR)/wanboot-amd64/.built
0N/AWANBOOT_INSTALL = $(BUILD_DIR)/wanboot-amd64/.installed
0N/A
0N/ACONFIGURE_32_and_64 += $(WANBOOT_CONFIGURE)
0N/ABUILD_32_and_64 += $(WANBOOT_BUILD)
0N/AINSTALL_32_and_64 += $(WANBOOT_INSTALL)
0N/A
0N/Aendif
0N/A
0N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
0N/A
0N/AMCS = mcs
0N/ASTRIP = strip
0N/A
0N/A# Set the wanboot CFLAGS as needed for the wanboot compilation
0N/A
0N/ACFLAGS.wanboot += -D_BOOT
0N/ACFLAGS.wanboot += -g
0N/ACFLAGS.wanboot += -falign-jumps=1
0N/ACFLAGS.wanboot += -falign-loops=1
0N/ACFLAGS.wanboot += -falign-functions
0N/ACFLAGS.wanboot += -mno-mmx
0N/ACFLAGS.wanboot += -mno-3dnow
0N/ACFLAGS.wanboot += -fno-dwarf2-cfi-asm
0N/ACFLAGS.wanboot += -fno-asynchronous-unwind-tables
0N/ACFLAGS.wanboot += -fno-common
0N/ACFLAGS.wanboot += -mcmodel=large
0N/ACFLAGS.wanboot += -mno-red-zone
0N/ACFLAGS.wanboot += -fno-stack-protector
0N/ACFLAGS.wanboot += -mno-stack-arg-probe
0N/A
0N/ACONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
0N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
0N/ACONFIGURE_OPTIONS += --with-include-path=$(USRINCDIR)/gmp
0N/ACONFIGURE_OPTIONS += --disable-elliptic-curves
0N/ACONFIGURE_OPTIONS += --disable-knuth-lfib
0N/A
0N/A# Set the wanboot configure options as needed for wanboot
0N/A
0N/ACONFIGURE_OPTIONS.wanboot += --disable-assembler
0N/ACONFIGURE_OPTIONS.wanboot += --enable-static
0N/ACONFIGURE_OPTIONS.wanboot += --disable-shared
0N/ACONFIGURE_OPTIONS.wanboot += --disable-pic
0N/ACONFIGURE_OPTIONS.wanboot += --disable-gcov
0N/ACONFIGURE_OPTIONS.wanboot += --disable-openssl
0N/ACONFIGURE_OPTIONS.wanboot += --disable-documentation
0N/ACONFIGURE_OPTIONS.wanboot += --disable-fat
0N/ACONFIGURE_OPTIONS.wanboot += --disable-arm-neon
0N/ACONFIGURE_OPTIONS.wanboot += --disable-x86-aesni
0N/ACONFIGURE_OPTIONS.wanboot += --disable-mini-gmp
0N/ACONFIGURE_OPTIONS.wanboot += --disable-ld-version-script
0N/A
0N/A# The additional set of transforms to be applied to the
0N/A# test results to try to normalize them.
0N/ACOMPONENT_TEST_TRANSFORMS += \
0N/A '-e "1,/run-tests/d"' \
0N/A '-e "/^e/d"'
0N/A
0N/ACOMPONENT_PREP_ACTION = \
0N/A (cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv)
0N/A
0N/AASLR_MODE = $(ASLR_ENABLE)
0N/A
0N/A$(BUILD_DIR)/$(MACH32)/.configured: CFLAGS += $(CFLAGS.shared)
0N/A$(BUILD_DIR)/$(MACH32)/.configured: CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.shared)
0N/A$(BUILD_DIR)/$(MACH64)/.configured: CFLAGS += $(CFLAGS.shared)
0N/A$(BUILD_DIR)/$(MACH64)/.configured: CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.shared)
0N/A$(BUILD_DIR)/wanboot-amd64/.configured: BITS=64
0N/A$(BUILD_DIR)/wanboot-amd64/.configured: COMPILER=gcc
0N/A$(BUILD_DIR)/wanboot-amd64/.configured: CFLAGS += $(CFLAGS.wanboot)
0N/A$(BUILD_DIR)/wanboot-amd64/.configured: CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.wanboot)
0N/A
0N/A$(BUILD_DIR)/wanboot-amd64/.installed: \
0N/A COMPONENT_POST_INSTALL_ACTION += \
0N/A $(MKDIR) $(PROTO_DIR)/usr/lib/grub/wanboot;
0N/A$(BUILD_DIR)/wanboot-amd64/.installed: \
0N/A COMPONENT_POST_INSTALL_ACTION += \
0N/A $(MV) $(PROTO_DIR)/usr/lib/amd64/libnettle.a $(PROTO_DIR)/usr/lib/grub/wanboot/libnettle.a;
0N/A$(BUILD_DIR)/wanboot-amd64/.installed: \
0N/A COMPONENT_POST_INSTALL_ACTION += \
0N/A $(STRIP) -x $(PROTO_DIR)/usr/lib/grub/wanboot/libnettle.a;
0N/A$(BUILD_DIR)/wanboot-amd64/.installed: \
0N/A COMPONENT_POST_INSTALL_ACTION += \
0N/A $(MCS) -d $(PROTO_DIR)/usr/lib/grub/wanboot/libnettle.a;
0N/A$(BUILD_DIR)/wanboot-amd64/.installed: \
0N/A COMPONENT_POST_INSTALL_ACTION += \
0N/A $(AR) ts $(PROTO_DIR)/usr/lib/grub/wanboot/libnettle.a;
0N/A$(BUILD_DIR)/wanboot-amd64/.installed: \
0N/A COMPONENT_POST_INSTALL_ACTION += \
0N/A $(MV) $(PROTO_DIR)/usr/lib/amd64/libhogweed.a $(PROTO_DIR)/usr/lib/grub/wanboot/libhogweed.a;
0N/A$(BUILD_DIR)/wanboot-amd64/.installed: \
0N/A COMPONENT_POST_INSTALL_ACTION += \
0N/A $(STRIP) -x $(PROTO_DIR)/usr/lib/grub/wanboot/libhogweed.a;
0N/A$(BUILD_DIR)/wanboot-amd64/.installed: \
0N/A COMPONENT_POST_INSTALL_ACTION += \
0N/A $(MCS) -d $(PROTO_DIR)/usr/lib/grub/wanboot/libhogweed.a;
0N/A$(BUILD_DIR)/wanboot-amd64/.installed: \
0N/A COMPONENT_POST_INSTALL_ACTION += \
0N/A $(AR) ts $(PROTO_DIR)/usr/lib/grub/wanboot/libhogweed.a;
0N/A
0N/A# Required by this Makefile.
0N/AREQUIRED_PACKAGES += developer/build/automake-111
0N/A
0N/AREQUIRED_PACKAGES += library/gmp
0N/A