Makefile revision 3817
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster#
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# CDDL HEADER START
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster#
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# The contents of this file are subject to the terms of the
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# Common Development and Distribution License (the "License").
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# You may not use this file except in compliance with the License.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster#
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# or http://www.opensolaris.org/os/licensing.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# See the License for the specific language governing permissions
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# and limitations under the License.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster#
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# If applicable, add the following below this CDDL HEADER, with the
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster#
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# CDDL HEADER END
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster#
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster#
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPILER = gcc
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Fosterinclude ../../../make-rules/shared-macros.mk
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_NAME= greenlet
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_VERSION= 0.4.1
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_ARCHIVE_HASH= \
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster sha256:ea671592f8460541286b133ed46a6cf5311a6b75051cc31b53e2bc38992b775a
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_ARCHIVE_URL= $(call pypi_url)
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_PROJECT_URL= https://github.com/python-greenlet/greenlet
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_BUGDB= python-mod/greenlet
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterTPNO= 14503
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# This module is not Python 3 ready: strange build failures that need more
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# investigation.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterPYTHON_VERSIONS = 2.7 2.6
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Fosterinclude $(WS_MAKE_RULES)/prep.mk
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Fosterinclude $(WS_MAKE_RULES)/setup.py.mk
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Fosterinclude $(WS_MAKE_RULES)/ips.mk
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterASLR_MODE = $(ASLR_NOT_APPLICABLE)
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCC = $(COMPONENT_DIR)/CC.sh
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_PRE_BUILD_ACTION = \
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster $(MKDIR) $(SOURCE_DIR)/64
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterLDSHARED= $(CC) -shared
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterPYTHON_ENV += LDSHARED="$(LDSHARED)"
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# One of the tests, test_exception_switch (tests.test_cpp.CPPTests),
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# failed in 64-bit. Skip it for now.
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_TEST_ENV += GREENLET_TEST_CPP=no
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_TEST_DIR= $(COMPONENT_SRC)
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterCOMPONENT_TEST_ARGS= setup.py test
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster# common targets
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Fosterbuild: $(BUILD_32_and_64)
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Fosterinstall: $(INSTALL_32_and_64)
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Fostertest: $(TEST_32_and_64)
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster
2d0a88b18a041738cfe635b45bd1db56af469c91Allan FosterREQUIRED_PACKAGES += system/library
2d0a88b18a041738cfe635b45bd1db56af469c91Allan Foster