Makefile revision 2969
542N/A#
542N/A# CDDL HEADER START
943N/A#
542N/A# The contents of this file are subject to the terms of the
542N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
919N/A#
542N/Ainclude ../../make-rules/shared-macros.mk
542N/A
542N/ACOMPONENT_NAME= grep
542N/ACOMPONENT_VERSION= 2.20
542N/ACOMPONENT_PROJECT_URL= http://gnu.org/software/grep/
542N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
542N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
542N/A
542N/ACOMPONENT_ARCHIVE_HASH= \
542N/A sha256:f0af452bc0d09464b6d089b6d56a0a3c16672e9ed9118fbe37b0b6aeaf069a65
810N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/grep/$(COMPONENT_ARCHIVE)
542N/A
810N/ACOMPONENT_BUGDB= utility/ggrep
810N/A
810N/ATPNO= 18300
542N/A
851N/Ainclude ../../make-rules/prep.mk
542N/Ainclude ../../make-rules/configure.mk
542N/Ainclude ../../make-rules/ips.mk
542N/A
542N/A# We need to be able to return from void functions
542N/ACFLAGS += $(studio_FEATURES_EXTENSIONS)
542N/A
542N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
542N/ACONFIGURE_OPTIONS += --prefix=/usr
542N/A
542N/A# Enable aslr for this component
542N/AASLR_MODE = $(ASLR_ENABLE)
542N/A
922N/A# Needed for "gmake test" to work.
851N/A# SHELLOPTS is exported via make-rules/shared-macros.mk,
851N/A# causing the braceexpand option to be set.
542N/A# This option causes "$1: unbound variable" errors during the check-TESTS,
851N/A# and the gnulib-tests don't even run at all.
542N/A# Note that the below unexports SHELLOPTS, even for targets
851N/A# other than "test."
542N/Aunexport SHELLOPTS
# common targets
build: $(BUILD_64)
install: $(INSTALL_64)
# 3 expected failures in gnulib-tests:
# test-mbrtowc3.sh, test-mbrtowc4.sh, test-mbsrtowcs4.sh
test: $(TEST_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk