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