Makefile revision 844
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# CDDL HEADER START
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# The contents of this file are subject to the terms of the
70025d765b044c6d8594bb965a2247a61e991a99johnny# Common Development and Distribution License (the "License").
70025d765b044c6d8594bb965a2247a61e991a99johnny# You may not use this file except in compliance with the License.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70025d765b044c6d8594bb965a2247a61e991a99johnny# or http://www.opensolaris.org/os/licensing.
70025d765b044c6d8594bb965a2247a61e991a99johnny# See the License for the specific language governing permissions
70025d765b044c6d8594bb965a2247a61e991a99johnny# and limitations under the License.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# When distributing Covered Code, include this CDDL HEADER in each
70025d765b044c6d8594bb965a2247a61e991a99johnny# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70025d765b044c6d8594bb965a2247a61e991a99johnny# If applicable, add the following below this CDDL HEADER, with the
70025d765b044c6d8594bb965a2247a61e991a99johnny# fields enclosed by brackets "[]" replaced with your own identifying
70025d765b044c6d8594bb965a2247a61e991a99johnny# information: Portions Copyright [yyyy] [name of copyright owner]
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# CDDL HEADER END
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/shared-macros.mk
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_NAME= readline
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_VERSION= 5.2
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_PROJECT_URL= http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_ARCHIVE_HASH= \
70025d765b044c6d8594bb965a2247a61e991a99johnny sha256:12e88d96aee2cd1192500356f0535540db499282ca7f76339fb4228c31249f45
70025d765b044c6d8594bb965a2247a61e991a99johnnyCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/readline/$(COMPONENT_ARCHIVE)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/prep.mk
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/configure.mk
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/ips.mk
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/lint-libraries.mk
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyLINT_FLAGS += -I$(PROTO_DIR)/usr/include
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny# readline likes to use ld directly and this is the easiest
70025d765b044c6d8594bb965a2247a61e991a99johnny# way to get it to add -lc
70025d765b044c6d8594bb965a2247a61e991a99johnnyLDFLAGS += -lc
70025d765b044c6d8594bb965a2247a61e991a99johnnyCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
70025d765b044c6d8594bb965a2247a61e991a99johnnyCONFIGURE_OPTIONS += --enable-shared
70025d765b044c6d8594bb965a2247a61e991a99johnnyCONFIGURE_OPTIONS += --disable-static
70025d765b044c6d8594bb965a2247a61e991a99johnnyCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
70025d765b044c6d8594bb965a2247a61e991a99johnnyCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny# common targets
70025d765b044c6d8594bb965a2247a61e991a99johnnybuild: $(BUILD_32_and_64)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyinstall: $(INSTALL_32_and_64)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnytest: $(TEST_32_and_64)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyinclude ../../make-rules/depend.mk
70025d765b044c6d8594bb965a2247a61e991a99johnny