Makefile revision 7083
98N/A#
98N/A# CDDL HEADER START
606N/A#
744N/A# The contents of this file are subject to the terms of the
98N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
98N/A#
98N/A
98N/Ainclude ../../../make-rules/shared-macros.mk
98N/A
810N/ACOMPONENT_NAME= cffi
810N/ACOMPONENT_VERSION= 1.5.2
810N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
810N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
354N/ACOMPONENT_ARCHIVE_HASH= \
354N/A sha256:da9bde99872e46f7bb5cff40a9b1cc08406765efafb583c704de108b6cb821dd
354N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
354N/ACOMPONENT_PROJECT_URL= http://cffi.readthedocs.org/
354N/ACOMPONENT_BUGDB= python-mod/cffi
354N/A
354N/ATPNO= 29371
354N/A
606N/Ainclude $(WS_MAKE_RULES)/prep.mk
810N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
606N/Ainclude $(WS_MAKE_RULES)/ips.mk
606N/A
354N/A# SolarisStudio12.4 is needed for mbarrier.h
810N/ASPRO_VROOT = $(SPRO_ROOT)/solarisstudio12.4
824N/A
810N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
830N/A
810N/ALDSHARED= $(CC) -G
810N/APYTHON_ENV += LDSHARED="$(LDSHARED)"
810N/A
810N/ACOMPONENT_TEST_DIR = $(@D)/tests
810N/ACOMPONENT_TEST_ENV = $(PYTHON_ENV)
810N/ACOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB)
851N/ACOMPONENT_TEST_ENV += TESTOWNLIB_CC="$(CC) %s $(CC_BITS) -G -KPIC -o %s"
851N/ACOMPONENT_TEST_CMD = $(PYTHON.$(BITS)) /usr/bin/py.test-$(PYTHON_VERSION)
810N/ACOMPONENT_TEST_ARGS = --resultlog $(@D)/testresults
810N/ACOMPONENT_TEST_ARGS += -p no:codechecker
810N/ACOMPONENT_TEST_ARGS += $(TEST_SKIPS)
810N/ACOMPONENT_TEST_ARGS += c testing
810N/A
851N/A# Copy the tests and a few of the source files they read into a scratch
810N/A# directory so running the tests don't leave turds in the source directory.
851N/ACOMPONENT_PRE_TEST_ACTION = \
810N/A $(MKDIR) $(@D)/tests/doc/source; \
810N/A $(CP) -r $(SOURCE_DIR)/c $(SOURCE_DIR)/testing $(SOURCE_DIR)/cffi $(@D)/tests; \
810N/A $(CP) $(SOURCE_DIR)/setup.py $(@D)/tests; \
810N/A $(CP) \
810N/A $(SOURCE_DIR)/doc/source/conf.py \
810N/A $(SOURCE_DIR)/doc/source/index.rst \
851N/A $(SOURCE_DIR)/doc/source/installation.rst \
810N/A $(@D)/tests/doc/source
851N/A
810N/A# common targets
851N/Abuild: $(BUILD_32_and_64)
810N/A
810N/Ainstall: $(INSTALL_32_and_64)
810N/A
810N/Atest: $(TEST_32_and_64)
810N/A
810N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
810N/A
810N/A
851N/AREQUIRED_PACKAGES += library/libffi
851N/AREQUIRED_PACKAGES += library/python/pycparser-27
851N/AREQUIRED_PACKAGES += library/python/pycparser-34
851N/AREQUIRED_PACKAGES += library/python/pycparser-35
851N/AREQUIRED_PACKAGES += system/library
98N/A