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