Makefile revision 3733
5432N/A#
5432N/A# CDDL HEADER START
5432N/A#
5432N/A# The contents of this file are subject to the terms of the
5432N/A# Common Development and Distribution License (the "License").
5432N/A# You may not use this file except in compliance with the License.
5432N/A#
5432N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5432N/A# or http://www.opensolaris.org/os/licensing.
5432N/A# See the License for the specific language governing permissions
5432N/A# and limitations under the License.
5432N/A#
5432N/A# When distributing Covered Code, include this CDDL HEADER in each
5432N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5432N/A# If applicable, add the following below this CDDL HEADER, with the
5432N/A# fields enclosed by brackets "[]" replaced with your own identifying
5432N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5432N/A#
5432N/A# CDDL HEADER END
5432N/A#
5432N/A
5432N/A#
5432N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
5432N/A#
5432N/A
6510N/Ainclude ../../make-rules/shared-macros.mk
6510N/A
6510N/ACOMPONENT_NAME= readline
5432N/ACOMPONENT_VERSION= 5.2
5432N/ACOMPONENT_PROJECT_URL= http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
5432N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6510N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5432N/ACOMPONENT_ARCHIVE_HASH= \
6510N/A sha256:12e88d96aee2cd1192500356f0535540db499282ca7f76339fb4228c31249f45
6510N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/readline/$(COMPONENT_ARCHIVE)
6510N/ACOMPONENT_BUGDB= library/readline
5432N/A
6510N/ATPNO= 9042
5432N/A
5432N/Ainclude ../../make-rules/prep.mk
6510N/Ainclude ../../make-rules/configure.mk
5432N/Ainclude ../../make-rules/ips.mk
5432N/Ainclude ../../make-rules/lint-libraries.mk
6510N/A
5432N/ALINT_FLAGS += -I$(PROTO_DIR)/usr/include
5432N/A
5432N/ACC += $(CC_BITS)
5432N/A
5432N/A# readline likes to use ld directly and this is the easiest
6510N/A# way to get it to add -lc
5432N/ALDFLAGS += -lc
5432N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
5432N/ACONFIGURE_OPTIONS += --enable-shared
5432N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5432N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
5432N/A
5432N/A# Build the readline examples as well.
5432N/ACOMPONENT_BUILD_TARGETS = everything
5432N/A
5432N/ACOMPONENT_TEST_DIR = $(@D)/examples
5456N/ACOMPONENT_TEST_CMD = $(CAT) $(SOURCE_DIR)/examples/Inputrc | ./rlcat
5456N/ACOMPONENT_TEST_TARGETS =
5456N/A
6510N/A# Master test results are the same for 32-bit and 64-bit, so override
6510N/A# here, rather than create multiple identical master files.
6510N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5456N/A
5456N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
6510N/A
6510N/Aconfigure: $(CONFIGURE_32_and_64)
6510N/A
6510N/Abuild: $(BUILD_32_and_64)
5680N/A
5432N/Ainstall: $(INSTALL_32_and_64)
5432N/A
5432N/Atest: $(TEST_32_and_64)
5432N/A
6510N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5432N/A
6510N/Ainclude ../../make-rules/depend.mk
6510N/A