Makefile revision 3996
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# or http://www.opensolaris.org/os/licensing.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPILER = gcc
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon Ross
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../../make-rules/shared-macros.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
b819cea2f73f98c5662230cc9affc8cc84f77fcfGordon RossCOMPONENT_NAME= greenlet
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_VERSION= 0.4.1
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE_HASH= \
sha256:ea671592f8460541286b133ed46a6cf5311a6b75051cc31b53e2bc38992b775a
COMPONENT_ARCHIVE_URL= $(call pypi_url)
COMPONENT_PROJECT_URL= https://github.com/python-greenlet/greenlet
COMPONENT_BUGDB= python-mod/greenlet
TPNO= 14503
# This module is not Python 3 ready: strange build failures that need more
# investigation.
PYTHON_VERSIONS = 2.7 2.6
include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/setup.py.mk
include $(WS_MAKE_RULES)/ips.mk
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
CC = $(COMPONENT_DIR)/CC.sh
COMPONENT_PRE_BUILD_ACTION = \
$(MKDIR) $(SOURCE_DIR)/64
LDSHARED= $(CC) -shared
PYTHON_ENV += LDSHARED="$(LDSHARED)"
# One of the tests, test_exception_switch (tests.test_cpp.CPPTests),
# failed in 64-bit. Skip it for now.
COMPONENT_TEST_ENV += GREENLET_TEST_CPP=no
COMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
COMPONENT_TEST_DIR= $(COMPONENT_SRC)
COMPONENT_TEST_ARGS= setup.py test
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
REQUIRED_PACKAGES += system/library