Makefile revision 458
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
58N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2N/A
2N/A#
2N/Ainclude ../../../make-rules/shared-macros.mk
2N/A
2N/APATH=/usr/bin:/usr/gnu/bin:/usr/sbin
2N/A
2N/ACOMPONENT_NAME= Python
2N/ACOMPONENT_VERSION= 2.7.1
2N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
2N/ACOMPONENT_ARCHIVE_HASH= sha1:fbe1894322ff91b80726e269c97454f4129fc2a3
2N/ACOMPONENT_ARCHIVE_URL= http://python.org/ftp/python/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
59N/A
59N/Ainclude $(WS_TOP)/make-rules/prep.mk
2N/Ainclude $(WS_TOP)/make-rules/configure.mk
59N/Ainclude $(WS_TOP)/make-rules/ips.mk
59N/A
2N/A# We patch auto* files, so regenerate headers and configure
2N/ACOMPONENT_PREP_ACTION = \
2N/A (cd $(@D) ; autoheader ; autoconf)
2N/A
2N/A# to find the ncurses headers
2N/ACPPFLAGS += -I/usr/include/ncurses
2N/A
2N/A# libffi for _ctypes
2N/ACPPFLAGS += $(shell pkg-config --cflags-only-I libffi)
58N/A
2N/A# because python links with $(CC) ... $(LDFLAGS) ...
2N/ALDFLAGS = $(CC_BITS) $(CC_PIC)
2N/A
2N/A# build pic
2N/ACFLAGS += $(CC_PIC)
58N/A
58N/A# add /usr/gnu/lib to the library search/run path
58N/ALDFLAGS.32 = -R/usr/gnu/lib -L/usr/gnu/lib
58N/ALDFLAGS.64 = -R/usr/gnu/lib/$(MACH64) -L/usr/gnu/lib/$(MACH64)
58N/ALDFLAGS += $(LDFLAGS.$(BITS))
58N/A
58N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
58N/ACONFIGURE_OPTIONS += --enable-shared
58N/ACONFIGURE_OPTIONS += --with-system-expat
58N/ACONFIGURE_OPTIONS += --with-system-ffi
58N/ACONFIGURE_OPTIONS += --without-gcc
57N/ACONFIGURE_OPTIONS += --enable-ipv6
57N/ACONFIGURE_OPTIONS += ac_cv_opt_olimit_ok=no
3N/ACONFIGURE_OPTIONS += ac_cv_olimit_ok=no
3N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
58N/ACONFIGURE_OPTIONS += BASECFLAGS="$(CFLAGS)"
58N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
58N/ACONFIGURE_OPTIONS += DFLAGS="-$(BITS)"
58N/A
58N/ACOMPONENT_BUILD_ENV += DFLAGS="-$(BITS)"
58N/A
2N/A# patches/00-bits.patch removes some AC_CHECK_SIZEOF tests in order to
59N/A# generate a pyconfig.h that is both 32 and 64 bit compatible. We add this
59N/A# back to the environment so that configure can still work. configure.in and
2N/A# pyconfig.h.in should probably be rewhacked to do this more cleanly in the
2N/A# future.
2N/ACONFIGURE_OPTIONS.32 += ac_cv_sizeof_long=4
2N/ACONFIGURE_OPTIONS.64 += ac_cv_sizeof_long=8
2N/A
2N/A# 64 bit shared objects need to go in a 64-bit directory
2N/ACOMPONENT_INSTALL_ARGS.64 += DESTSHARED=$(CONFIGURE_PREFIX)/lib/python2.7/lib-dynload
59N/A
2N/A# common targets
2N/Abuild: $(BUILD_32_and_64)
16N/A
59N/A$(INSTALL_32): $(INSTALL_64)
2N/A
2N/Ainstall: $(INSTALL_32_and_64)
2N/A
2N/ACOMPONENT_TEST_TARGETS = test
59N/A
2N/Atest: $(TEST_32_and_64)
16N/A
16N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2N/A
2N/Ainclude $(WS_TOP)/make-rules/depend.mk
2N/A