Makefile revision 131
131N/A#
131N/A# CDDL HEADER START
131N/A#
131N/A# The contents of this file are subject to the terms of the
131N/A# Common Development and Distribution License (the "License").
131N/A# You may not use this file except in compliance with the License.
131N/A#
131N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
131N/A# or http://www.opensolaris.org/os/licensing.
131N/A# See the License for the specific language governing permissions
131N/A# and limitations under the License.
131N/A#
131N/A# When distributing Covered Code, include this CDDL HEADER in each
131N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
131N/A# If applicable, add the following below this CDDL HEADER, with the
131N/A# fields enclosed by brackets "[]" replaced with your own identifying
131N/A# information: Portions Copyright [yyyy] [name of copyright owner]
131N/A#
131N/A# CDDL HEADER END
131N/A#
131N/A
131N/A#
131N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
131N/A#
131N/A
131N/Ainclude ../../make-rules/shared-macros.mk
131N/A
131N/ACOMPONENT_NAME= readline
131N/ACOMPONENT_VERSION= 5.2
131N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
131N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
131N/ACOMPONENT_ARCHIVE_HASH= sha1:18f3412c73068509d5f491b7b4535aeaf9522834
131N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/readline/$(COMPONENT_ARCHIVE)
131N/A
131N/Ainclude ../../make-rules/prep.mk
131N/Ainclude ../../make-rules/configure.mk
131N/Ainclude ../../make-rules/ips.mk
131N/A
131N/A# readline likes to use ld directly and this is the easiest
131N/A# way to get it to add -lc
131N/ALDFLAGS += -lc
131N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
131N/ACONFIGURE_OPTIONS += --enable-shared
131N/ACONFIGURE_OPTIONS += --disable-static
131N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
131N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
131N/A
131N/A
131N/Ainclude ../../make-rules/shared-targets.mk
131N/A
131N/A# common targets
131N/Abuild: $(BUILD_32) $(BUILD_64)
131N/A
131N/Ainstall: $(INSTALL_32) $(INSTALL_64)
131N/A $(MKDIR) $(PROTO_DIR)/usr/demo/readline
131N/A $(INSTALL) -D \
131N/A $(SOURCE_DIR)/examples/Inputrc $(PROTO_DIR)/usr/demo/readline
131N/A sed -f oracleman-stability $(COMPONENT_SRC)/doc/history.3 \
131N/A > $(PROTOUSRSHAREMAN3DIR)/history.3
131N/A sed -f oracleman-stability $(COMPONENT_SRC)/doc/readline.3 \
131N/A > $(PROTOUSRSHAREMAN3DIR)/readline.3
131N/A
131N/A
131N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
131N/A
131N/Atest: build
131N/A @cd $(BUILD_DIR_32); $(MAKE) check
131N/A
131N/Ainclude ../../make-rules/depend.mk