Makefile revision 814
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# CDDL HEADER START
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# The contents of this file are subject to the terms of the
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# Common Development and Distribution License (the "License").
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# You may not use this file except in compliance with the License.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# See the License for the specific language governing permissions
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# and limitations under the License.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# When distributing Covered Code, include this CDDL HEADER in each
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# If applicable, add the following below this CDDL HEADER, with the
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# CDDL HEADER END
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCOMPONENT_ARCHIVE_HASH= sha1:bee572680d1966501247cb2b26e0e51f94d1cd13
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)ftp/python/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# We patch auto* files, so regenerate headers and configure
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# This seems horribly wrong, but these defines break the ability to build c99
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# compliant modules or with gcc.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync perl -pi -e 's/(^\#define _POSIX_C_SOURCE.*)/\/* $$1 *\//' pyconfig.h ; \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync perl -pi -e 's/^(\#define _XOPEN_SOURCE.*)/\/* $$1 *\//' pyconfig.h ; \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync perl -pi -e 's/^(\#define _XOPEN_SOURCE_EXTENDED.*)/\/* $$1 *\//' \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# The python build is profile-guided for studio; to see the benefits of that,
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# Python must be compiled with -xO5 and a different build target must be used.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# Use of xprofile requires that the same options be used during compilation and
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# linking. The targets chosen are based on Solaris 11 minimum supported system
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# requirements.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# the non-clang compiler we need to use for now doesn't like
a180a41bba1d50822df23fff0099e90b86638b89vboxsync#ifneq ($(strip $(PARFAIT_BUILD)),yes)
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# we don't want to leak $(CC_BITS) into BASECFLAGS as it causes problems with
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# python-config
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# so we find the ncurses headers
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# enable large files how they did in JDS
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# libffi for _ctypes
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCPPFLAGS += $(shell pkg-config --cflags-only-I libffi)
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# Python puts its header files in a special place.
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCOMPONENT_BUILD_ENV += XPROFILE_DIR="$(XPROFILE_DIR)"
COMPONENT_TEST_TARGETS = test
test: $(TEST_32_and_64)