Makefile revision 77
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater# CDDL HEADER START
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater#
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# The contents of this file are subject to the terms of the
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# Common Development and Distribution License (the "License").
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater# You may not use this file except in compliance with the License.
7b67cfadd077feb0ec3e6c78385ba0d845a9789bMark Andrews#
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# or http://www.opensolaris.org/os/licensing.
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater# See the License for the specific language governing permissions
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/shared-macros.mk
7eda3642eea03f1181e41540c7c8791a57759383Automatic Updater
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCOMPONENT_NAME= which
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_VERSION= 2.16
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:247804c95e91583020b4d57ccb517a2997041bd5
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/which/$(COMPONENT_ARCHIVE)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsinclude ../../make-rules/prep.mk
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude ../../make-rules/configure.mk
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsinclude ../../make-rules/ips.mk
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterCONFIGURE_PREFIX = /usr/gnu
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
fc3576328379e813ccf6b3a6e66d9bb701a79c83Automatic UpdaterCONFIGURE_OPTIONS += --disable-iberty
298c514fff250c1a147176cfbbc1c0ca441d1ea5Automatic UpdaterCONFIGURE_OPTIONS += --disable-dependency-tracking
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
bbb069be941f649228760edcc241122933c066d2Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# common targets
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updaterbuild: $(BUILD_32)
9d330c054e02f52cefd8dc0e71550b0fe07e077eAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinstall: $(INSTALL_32)
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic Updater sed -f oracleman-stability $(COMPONENT_SRC)/which.1 > \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(PROTO_DIR)/$(GNUSHAREMAN1)/which.1
3a6600c8d319275d73c36eb625f77103cd83e824Automatic Updater
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsinclude ../../make-rules/depend.mk
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson