Makefile revision 99
2810N/A#
2810N/A# CDDL HEADER START
2810N/A#
4070N/A# The contents of this file are subject to the terms of the
2810N/A# Common Development and Distribution License (the "License").
2810N/A# You may not use this file except in compliance with the License.
2810N/A#
2810N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2810N/A# or http://www.opensolaris.org/os/licensing.
2810N/A# See the License for the specific language governing permissions
2810N/A# and limitations under the License.
2810N/A#
2810N/A# When distributing Covered Code, include this CDDL HEADER in each
2810N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2810N/A# If applicable, add the following below this CDDL HEADER, with the
2810N/A# fields enclosed by brackets "[]" replaced with your own identifying
2810N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2810N/A#
2810N/A# CDDL HEADER END
2810N/A#
2810N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2810N/A#
2810N/Ainclude ../../make-rules/shared-macros.mk
2810N/A
2810N/ACOMPONENT_NAME= grep
2810N/ACOMPONENT_VERSION= 2.5.4
2810N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2810N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
2810N/ACOMPONENT_ARCHIVE_HASH= sha1:9bbd4f02b18bb264e0fcb17293b6f0445c8694d2
2810N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/grep/$(COMPONENT_ARCHIVE)
2810N/A
2810N/Ainclude ../../make-rules/prep.mk
2810N/Ainclude ../../make-rules/configure.mk
2810N/Ainclude ../../make-rules/ips.mk
2810N/A
2810N/A# We need to be able to return from void functions
2810N/ACFLAGS += $(studio_FEATURES_EXTENSIONS)
4070N/A
4070N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
4070N/ACONFIGURE_OPTIONS += --prefix=/usr
4070N/ACONFIGURE_OPTIONS += --program-prefix=g
4070N/A
2900N/APROGS = egrep fgrep grep
2900N/AGNUPROGS = $(PROGS)
2900N/AGNUMAN1= $(PROGS:%=%.1)
2900N/ASFWPROGS = $(PROGS:%=g%)
2900N/A
2900N/Ainclude ../../make-rules/shared-targets.mk
2900N/A
2810N/A# common targets
2810N/Abuild: $(BUILD_32)
2810N/A
2810N/Ainstall: $(INSTALL_32) $(PROTOSFWLINKS) $(PROTOGNULINKS) \
2810N/A $(PROTOGNUMAN1LINKS)
2810N/A
2810N/Atest32: $(BUILD_32)
2810N/A (cd $(BUILD_DIR_32); env - $(GMAKE) check)
2810N/A
2810N/Atest: test32
2810N/A
2810N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2810N/A
2810N/Ainclude ../../make-rules/depend.mk
2810N/A