Makefile revision 135
73fbd4c9d3e65621eb32a8e01659532f131de690Mark Andrews#
73fbd4c9d3e65621eb32a8e01659532f131de690Mark Andrews# CDDL HEADER START
73fbd4c9d3e65621eb32a8e01659532f131de690Mark Andrews#
fc7bce5f350aa119d4c500fd5b35c47b14b539efMark Andrews# The contents of this file are subject to the terms of the
fc7bce5f350aa119d4c500fd5b35c47b14b539efMark Andrews# Common Development and Distribution License (the "License").
b4ccec331dbd81581c6226a54847385a27d9eb25Evan Hunt# You may not use this file except in compliance with the License.
b4ccec331dbd81581c6226a54847385a27d9eb25Evan Hunt#
bb5d14d7243d71e03d262ff175b355b52873e195Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb5d14d7243d71e03d262ff175b355b52873e195Evan Hunt# or http://www.opensolaris.org/os/licensing.
bb5d14d7243d71e03d262ff175b355b52873e195Evan Hunt# See the License for the specific language governing permissions
bb5d14d7243d71e03d262ff175b355b52873e195Evan Hunt# and limitations under the License.
bb5d14d7243d71e03d262ff175b355b52873e195Evan Hunt#
c8b968f4144a271213756cc33e8062b9efdd7441Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
c8b968f4144a271213756cc33e8062b9efdd7441Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c8b968f4144a271213756cc33e8062b9efdd7441Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
c8b968f4144a271213756cc33e8062b9efdd7441Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
41494939b62d74fb159009f28428df23e5fc70e3Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
41494939b62d74fb159009f28428df23e5fc70e3Evan Hunt#
41494939b62d74fb159009f28428df23e5fc70e3Evan Hunt# CDDL HEADER END
41494939b62d74fb159009f28428df23e5fc70e3Evan Hunt#
3bcd09b4162ccd383b4b20e3b5306b3c317c9795Evan Hunt
3bcd09b4162ccd383b4b20e3b5306b3c317c9795Evan Hunt#
3bcd09b4162ccd383b4b20e3b5306b3c317c9795Evan Hunt# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
292eb9c4e4fc51aec911e72821735a123a8c252aMark Andrews#
292eb9c4e4fc51aec911e72821735a123a8c252aMark Andrews
292eb9c4e4fc51aec911e72821735a123a8c252aMark Andrewsinclude ../../make-rules/shared-macros.mk
292eb9c4e4fc51aec911e72821735a123a8c252aMark Andrews
1b3d21180244529f0099894fe9d29beb3f11efb3Mark AndrewsCOMPONENT_NAME= sed
1b3d21180244529f0099894fe9d29beb3f11efb3Mark AndrewsCOMPONENT_VERSION= 4.2.1
1b3d21180244529f0099894fe9d29beb3f11efb3Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fbed5f0f44515f5b3ca499a3466c875507852970Evan HuntCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
fbed5f0f44515f5b3ca499a3466c875507852970Evan HuntCOMPONENT_ARCHIVE_HASH= sha1:502f5fa9aff891f0383baaeb1958b66dbc4b05c8
fbed5f0f44515f5b3ca499a3466c875507852970Evan HuntCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/sed/$(COMPONENT_ARCHIVE)
fbed5f0f44515f5b3ca499a3466c875507852970Evan Hunt
fbed5f0f44515f5b3ca499a3466c875507852970Evan Huntinclude ../../make-rules/prep.mk
4fa9eaf0734e892431e78179bdcc5251c9b6aa7dMark Andrewsinclude ../../make-rules/configure.mk
bed6e9d614d2ac9e6a84949379aba4fc04aa8e0bMark Andrewsinclude ../../make-rules/ips.mk
49762dffc45b6c02abe5d131cb7c49369cf13e09Mark Andrews
49762dffc45b6c02abe5d131cb7c49369cf13e09Mark AndrewsCONFIGURE_OPTIONS += --program-prefix=g
49762dffc45b6c02abe5d131cb7c49369cf13e09Mark AndrewsCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
49762dffc45b6c02abe5d131cb7c49369cf13e09Mark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
f647c0df9fd334b19a5bdc9c252f90d94c0abf1eMark Andrews
f647c0df9fd334b19a5bdc9c252f90d94c0abf1eMark AndrewsGNUPROGS = sed
ecc06cbc32c5a2b91a17e65c1820c9c66313d35cMukund SivaramanGNUMAN1 = sed.1
ecc06cbc32c5a2b91a17e65c1820c9c66313d35cMukund Sivaraman
ecc06cbc32c5a2b91a17e65c1820c9c66313d35cMukund Sivaramaninclude ../../make-rules/shared-targets.mk
94c7301f6f0ada7aa84ede5808ab8fdec5bae6b5Mark Andrews
94c7301f6f0ada7aa84ede5808ab8fdec5bae6b5Mark Andrews# common targets
505d311709be77b2bd6ebb2aead84771588f9c29Mark Andrewsbuild: $(BUILD_32)
505d311709be77b2bd6ebb2aead84771588f9c29Mark Andrews
505d311709be77b2bd6ebb2aead84771588f9c29Mark Andrewsinstall: $(INSTALL_32) \
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman $(PROTOGNULINKS) $(PROTOGNUMAN1LINKS)
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund SivaramanBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaramantest: build
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman @cd $(BUILD_DIR_32); $(MAKE) check
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman
322e6b5be784d79d15fea9db9440dd821162c574Mark Andrewsinclude ../../make-rules/depend.mk
322e6b5be784d79d15fea9db9440dd821162c574Mark Andrews