Makefile revision 2790
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or http://www.opensolaris.org/os/licensing.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../../make-rules/shared-macros.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_NAME= pyOpenSSL
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_VERSION= 0.13
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE_HASH= \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin sha256:21e12b03abaa0e04ecc8cd9c251598f71bae11c9f385304234e4ea5618c6163b
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE_URL= $(call pypi_url)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_PROJECT_URL= https://launchpad.net/pyopenssl
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_BUGDB= python-mod/pyopenssl
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(WS_TOP)/make-rules/prep.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(WS_TOP)/make-rules/setup.py.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(WS_TOP)/make-rules/ips.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinASLR_MODE = $(ASLR_NOT_APPLICABLE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Needed to get around a broken /usr/lib/python2.7/config/Makefile
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See CR #16837431.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLD=$(CC)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLDSHARED=$(CC) -G
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPYTHON_ENV += CC="$(CC)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPYTHON_ENV += LDSHARED="$(LDSHARED)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPYTHON_ENV += LD="$(LD)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPYTHON_ENV += CFLAGS="$(CFLAGS)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_INSTALL_ENV += $(PYTHON_ENV)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_TEST_DIR = $(COMPONENT_SRC)/OpenSSL/test
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The .so files are under ./OpenSSL/64 not ./64/OpenSSL so the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# $(PYTHON_VENDOR_PACKAGES) variable for 64bit Python is wrong.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Everything works fine if we just add the 32bit path.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_TEST_CMD = $(SHELL)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_TEST_ARGS = $(COMPONENT_DIR)/files/runtests
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# common targets
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinbuild: $(BUILD_32_and_64)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall: $(INSTALL_32_and_64)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chintest: $(TEST_32_and_64)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(WS_TOP)/make-rules/depend.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin