Makefile revision 1112
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# Common Development and Distribution License (the "License").
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
3f9d6ad73e45c6823b409f93b0c8d4f62861d2d5Lin Ling#
0e60744c982adecd0a1f146f5637475d07ab1069Pavel Zakharov# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/shared-macros.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_NAME= readline
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_VERSION= 5.2
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE_HASH= sha1:18f3412c73068509d5f491b7b4535aeaf9522834
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/readline/$(COMPONENT_ARCHIVE)
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock
0e60744c982adecd0a1f146f5637475d07ab1069Pavel Zakharovinclude ../../make-rules/prep.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/configure.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/ips.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens# readline likes to use ld directly and this is the easiest
fa9e4066f08beec538e775443c5be79dd423fcabahrens# way to get it to add -lc
fa9e4066f08beec538e775443c5be79dd423fcabahrensLDFLAGS += -lc
fa9e4066f08beec538e775443c5be79dd423fcabahrensCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
fa9e4066f08beec538e775443c5be79dd423fcabahrensCONFIGURE_OPTIONS += --enable-shared
fa9e4066f08beec538e775443c5be79dd423fcabahrensCONFIGURE_OPTIONS += --disable-static
fa9e4066f08beec538e775443c5be79dd423fcabahrensCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
fa9e4066f08beec538e775443c5be79dd423fcabahrensCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens# common targets
fa9e4066f08beec538e775443c5be79dd423fcabahrensbuild: $(BUILD_32_and_64)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinstall: $(INSTALL_32_and_64)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrenstest: $(TEST_32_and_64)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/depend.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrens