Makefile revision 6017
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# CDDL HEADER START
ad0b283113c3f11ac1877df97d5d0fae899b56caBrendan Mmiller# The contents of this file are subject to the terms of the
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# Common Development and Distribution License (the "License").
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# You may not use this file except in compliance with the License.
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# or http://www.opensolaris.org/os/licensing.
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# See the License for the specific language governing permissions
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# and limitations under the License.
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# When distributing Covered Code, include this CDDL HEADER in each
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# If applicable, add the following below this CDDL HEADER, with the
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# fields enclosed by brackets "[]" replaced with your own identifying
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# information: Portions Copyright [yyyy] [name of copyright owner]
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# CDDL HEADER END
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
a3f1c4bb696d904f842314da867a84288809db8bBrendan Mmiller# When new version of OpenSSL comes in, you must update both COMPONENT_VERSION
1233cf61f92cf026493da1465aa5ef6e84f443adBrendan Mmiller# and IPS_COMPONENT_VERSION.
a3f1c4bb696d904f842314da867a84288809db8bBrendan Mmiller# When upgrading OpenSSL, please, DON'T FORGET TO TEST WANBOOT too.
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# For more information about wanboot-openssl testing, please refer to
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# Version for IPS. It is easier to do it manually than convert the letter to a
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# number while taking into account that there might be no letter at all.
448987059f6c769c5a4986c178356b90e823bb36Brendan MmillerCOMPONENT_PROJECT_URL= http://www.openssl.org/
448987059f6c769c5a4986c178356b90e823bb36Brendan MmillerCOMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller sha256:1d4007e53aad94a5b2002fe045ee7bb0b3d98f1a47f8b2bc851dcd1c74332919
eb63168b5d410b5ea72fee84051e99ba88255128Brendan MmillerCOMPONENT_ARCHIVE_URL = $(COMPONENT_PROJECT_URL)source/$(COMPONENT_ARCHIVE)
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# Clone the patch files to the patches-all dir.
aaa0f5ddd147facc5c535e28845db1d482c6c6d5Brendan Mmiller# COPY_COMMON_FILES is there so that rsync is called as soon as
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# the Makefile is parsed.
448987059f6c769c5a4986c178356b90e823bb36Brendan MmillerCOPY_COMMON_FILES:= $(shell rsync -ac ../common/patches/ patches/ $(PATCH_DIR))
aaa0f5ddd147facc5c535e28845db1d482c6c6d5Brendan MmillerPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin:/usr/perl5/bin
aaa0f5ddd147facc5c535e28845db1d482c6c6d5Brendan MmillerPATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin:/usr/perl5/bin
aaa0f5ddd147facc5c535e28845db1d482c6c6d5Brendan Mmiller# Variant of OpenSSL for wanboot is built in build/sparcv9-wanboot.
aaa0f5ddd147facc5c535e28845db1d482c6c6d5Brendan MmillerBUILD_DIR_WANBOOT = $(BUILD_DIR)/$(MACH64)-wanboot
aaa0f5ddd147facc5c535e28845db1d482c6c6d5Brendan Mmiller# OpenSSL does not use autoconf but its own configure system.
aaa0f5ddd147facc5c535e28845db1d482c6c6d5Brendan Mmiller# Ignore default CC_FOR_BUILD, CC, and CXX in CONFIGURE_ENV.
eb63168b5d410b5ea72fee84051e99ba88255128Brendan Mmiller# This is to force OpenSSL's Configure script to use gmake for 'make links'.
4e65082ea63c1351c75db3b678f6182abcf151dbBrendan Mmiller# Otherwise it fails with:
eb63168b5d410b5ea72fee84051e99ba88255128Brendan Mmiller# mksh: Fatal error in reader: Unmatched `(' on line
4e65082ea63c1351c75db3b678f6182abcf151dbBrendan Mmiller# Used in the configure options below.
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# Configure options common to both regular OpenSSL and OpenSSL for wanboot.
448987059f6c769c5a4986c178356b90e823bb36Brendan MmillerCONFIGURE_OPTIONS = -DSOLARIS_OPENSSL -DNO_WINDOWS_BRAINDEATH
ad0b283113c3f11ac1877df97d5d0fae899b56caBrendan MmillerCONFIGURE_OPTIONS += --openssldir=/etc/openssl
aaa0f5ddd147facc5c535e28845db1d482c6c6d5Brendan Mmiller# We use OpenSSL install code for installing only manual pages and we do that
448987059f6c769c5a4986c178356b90e823bb36Brendan Mmiller# for 32-bit version only.
# We deliver only one opensslconf.h file which must be suitable for both 32 and
# creates opensslconf.h for either 32 or 64 bits. A patch makes the resulting
# opensslconf.h version from the 32 bit build.
# Same holds for wanboot-stubs.c, which stubs out several functions, that are
# Object files for wanboot-openssl.o have to be listed explicitly.
WANBOOT_OBJS = \
# Interface for wanboot is specified in mapfile.wanboot. Object files are
COMPONENT_TEST_TARGETS = test
test: $(TEST_32_and_64)