Makefile revision 181
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha#
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# CDDL HEADER START
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha#
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# The contents of this file are subject to the terms of the
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# Common Development and Distribution License (the "License").
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# You may not use this file except in compliance with the License.
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha#
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# or http://www.opensolaris.org/os/licensing.
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# See the License for the specific language governing permissions
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# and limitations under the License.
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha#
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# When distributing Covered Code, include this CDDL HEADER in each
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# If applicable, add the following below this CDDL HEADER, with the
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# fields enclosed by brackets "[]" replaced with your own identifying
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# information: Portions Copyright [yyyy] [name of copyright owner]
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# CDDL HEADER END
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/shared-macros.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_NAME= readline
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_VERSION= 5.2
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_ARCHIVE_HASH= sha1:18f3412c73068509d5f491b7b4535aeaf9522834
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/readline/$(COMPONENT_ARCHIVE)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/prep.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/configure.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/ips.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# readline likes to use ld directly and this is the easiest
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# way to get it to add -lc
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaLDFLAGS += -lc
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --enable-shared
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --disable-static
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# common targets
6ca0e6973c8176100f4a426444823ae5e777e28fsaschabuild: $(BUILD_32_and_64)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainstall: $(INSTALL_32_and_64)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschatest: $(TEST_32_and_64)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/depend.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsascha