Makefile revision 3760
2234N/A#
2234N/A# CDDL HEADER START
2234N/A#
2234N/A# The contents of this file are subject to the terms of the
2234N/A# Common Development and Distribution License (the "License").
2234N/A# You may not use this file except in compliance with the License.
2234N/A#
2234N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2234N/A# or http://www.opensolaris.org/os/licensing.
2234N/A# See the License for the specific language governing permissions
2234N/A# and limitations under the License.
2234N/A#
2234N/A# When distributing Covered Code, include this CDDL HEADER in each
2234N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2234N/A# If applicable, add the following below this CDDL HEADER, with the
2234N/A# fields enclosed by brackets "[]" replaced with your own identifying
2234N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2234N/A#
2234N/A# CDDL HEADER END
2234N/A#
5680N/A# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
5680N/A#
3817N/Ainclude ../../../make-rules/shared-macros.mk
2234N/A
2234N/ACOMPONENT_NAME= greenlet
2234N/ACOMPONENT_VERSION= 0.4.1
2234N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2234N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
2234N/ACOMPONENT_ARCHIVE_HASH= \
2234N/A sha256:ea671592f8460541286b133ed46a6cf5311a6b75051cc31b53e2bc38992b775a
2234N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
2234N/ACOMPONENT_PROJECT_URL= https://github.com/python-greenlet/greenlet
2234N/ACOMPONENT_BUGDB= python-mod/greenlet
2234N/A
2234N/ATPNO= 14503
2234N/A
2899N/Ainclude $(WS_TOP)/make-rules/prep.mk
2899N/Ainclude $(WS_TOP)/make-rules/setup.py.mk
2818N/Ainclude $(WS_TOP)/make-rules/ips.mk
4982N/A
2818N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
3817N/A
3817N/ACOMPILER = gcc
3817N/ACC = $(COMPONENT_DIR)/CC.sh
2234N/A
2234N/ACOMPONENT_PRE_BUILD_ACTION = \
2234N/A $(MKDIR) $(SOURCE_DIR)/64
2234N/A
2234N/A# Needed to get around a broken /usr/lib/python2.7/config/Makefile
2234N/A# See CR #16837431.
2234N/ALD=$(CC)
2234N/ALDSHARED=$(CC) -shared
2234N/APYTHON_ENV += CC="$(CC)"
2234N/APYTHON_ENV += LDSHARED="$(LDSHARED)"
2234N/APYTHON_ENV += LD="$(LD)"
2234N/APYTHON_ENV += CFLAGS="$(CFLAGS)"
2234N/ACOMPONENT_INSTALL_ENV += $(PYTHON_ENV)
4337N/A
4337N/A# 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)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk