Makefile revision 1273
9540b42695c15fdd5f01b4c663e21936e6c38c82Mukund Sivaraman#
9540b42695c15fdd5f01b4c663e21936e6c38c82Mukund Sivaraman# CDDL HEADER START
9540b42695c15fdd5f01b4c663e21936e6c38c82Mukund Sivaraman#
9540b42695c15fdd5f01b4c663e21936e6c38c82Mukund Sivaraman# The contents of this file are subject to the terms of the
9540b42695c15fdd5f01b4c663e21936e6c38c82Mukund Sivaraman# Common Development and Distribution License (the "License").
fec9247b8f1ab52e999643ae03f0550387ec359fMukund Sivaraman# You may not use this file except in compliance with the License.
fec9247b8f1ab52e999643ae03f0550387ec359fMukund Sivaraman#
fec9247b8f1ab52e999643ae03f0550387ec359fMukund Sivaraman# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fec9247b8f1ab52e999643ae03f0550387ec359fMukund Sivaraman# or http://www.opensolaris.org/os/licensing.
fec9247b8f1ab52e999643ae03f0550387ec359fMukund Sivaraman# See the License for the specific language governing permissions
0d7548ee341c83c540624a423e2c701b6e9ddc4eEvan Hunt# and limitations under the License.
0d7548ee341c83c540624a423e2c701b6e9ddc4eEvan Hunt#
0d7548ee341c83c540624a423e2c701b6e9ddc4eEvan Hunt# When distributing Covered Code, include this CDDL HEADER in each
2883bbaef3b2b712acfb89358f5a9c7ebb62733bEvan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
527163f0e5e8639bcceb7fe52387285042f5b24cEvan Hunt# If applicable, add the following below this CDDL HEADER, with the
527163f0e5e8639bcceb7fe52387285042f5b24cEvan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
62a6147e51fd1ccb9ec1c1b6c97b6e9b9ef1f002Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
62a6147e51fd1ccb9ec1c1b6c97b6e9b9ef1f002Evan Hunt#
62a6147e51fd1ccb9ec1c1b6c97b6e9b9ef1f002Evan Hunt# CDDL HEADER END
4c432aae90bc9b220725ca7df5a6af40cf4c74b3Mark Andrews#
4c432aae90bc9b220725ca7df5a6af40cf4c74b3Mark Andrews
4c432aae90bc9b220725ca7df5a6af40cf4c74b3Mark Andrews#
3195754154292f0651c195433607696a259a98e2Evan Hunt# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3195754154292f0651c195433607696a259a98e2Evan Hunt#
911576956388270fe2401fbf9236d8879d2795e9Evan Hunt
911576956388270fe2401fbf9236d8879d2795e9Evan Huntinclude ../../make-rules/shared-macros.mk
911576956388270fe2401fbf9236d8879d2795e9Evan Hunt
911576956388270fe2401fbf9236d8879d2795e9Evan HuntCOMPONENT_NAME= pconsole
fd0d60b3a0139c040fedb0bb765fd9667831412eMark AndrewsCOMPONENT_VERSION= 1.0
fd0d60b3a0139c040fedb0bb765fd9667831412eMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fd0d60b3a0139c040fedb0bb765fd9667831412eMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3001a1b4e6298466882a4147307b4c28a3b08f91Mark AndrewsCOMPONENT_PROJECT_URL= http://www.heiho.net/pconsole/
3001a1b4e6298466882a4147307b4c28a3b08f91Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
3001a1b4e6298466882a4147307b4c28a3b08f91Mark Andrews sha256:94520bf65f726df9d7e686bb486e9a2828c29d09a20b9522f1da4f7d66700bb2
1bce43adcc11d21afaf645cbe466553aabc725b2Mark AndrewsCOMPONENT_ARCHIVE_URL= http://www.heiho.net/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1bce43adcc11d21afaf645cbe466553aabc725b2Mark AndrewsCOMPONENT_BUGDB= utility/pconsole
da4823c08a9a41e7b5ff1f3a83c80007f60fd21cMark Andrews
da4823c08a9a41e7b5ff1f3a83c80007f60fd21cMark Andrewsinclude ../../make-rules/prep.mk
da4823c08a9a41e7b5ff1f3a83c80007f60fd21cMark Andrewsinclude ../../make-rules/configure.mk
52cae869e0296713b764f6065bdad80832d4c493Mark Andrewsinclude ../../make-rules/ips.mk
52cae869e0296713b764f6065bdad80832d4c493Mark Andrews
52cae869e0296713b764f6065bdad80832d4c493Mark Andrews# Required to configure correctly.
62b5dd5b09cb575281f8193476b58a4bd9870fc9Evan HuntCOMPONENT_PRE_CONFIGURE_ACTION = \
62b5dd5b09cb575281f8193476b58a4bd9870fc9Evan Hunt ($(CLONEY) $(SOURCE_DIR) $(@D))
7fcbbd6fa9ed199cf6947bb6b204da5438211faaMark Andrews
7fcbbd6fa9ed199cf6947bb6b204da5438211faaMark Andrews# -I argument needed to find the generated config.h file.
8c31a25f3ff5d6783c7add7c887e52f7031d173dMark AndrewsCONFIGURE_ENV += "CC=$(CC) -I."
8c31a25f3ff5d6783c7add7c887e52f7031d173dMark Andrews
8c31a25f3ff5d6783c7add7c887e52f7031d173dMark Andrews# If the configure options are not explicitly set, then configure fails with:
8bcd80824c51c802c2927236b012cd526f569b04Mark Andrews# configure: warning: CC=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc: invalid host type
3be4330b77e6de0c6aa7cca74c1ae17fc661ac32Tinderbox User# configure: warning: CXX=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/CC: invalid host type
8bcd80824c51c802c2927236b012cd526f569b04Mark Andrews# configure: error: can only configure for one host and one target at a time
7fcbbd6fa9ed199cf6947bb6b204da5438211faaMark AndrewsCONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
7fcbbd6fa9ed199cf6947bb6b204da5438211faaMark Andrews
7fcbbd6fa9ed199cf6947bb6b204da5438211faaMark Andrews# DESTDIR doesn't work correctly, so we specify some of the paths directly.
559cbe04e73cf601784a371e09554c20407a6c7bEvan HuntCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
559cbe04e73cf601784a371e09554c20407a6c7bEvan Hunt
559cbe04e73cf601784a371e09554c20407a6c7bEvan Hunt# common targets
559cbe04e73cf601784a371e09554c20407a6c7bEvan Huntbuild: $(BUILD_32)
559cbe04e73cf601784a371e09554c20407a6c7bEvan Hunt
6ef61e764583887172e27c3bc681e36cfa27b469Mark Andrewsinstall: $(INSTALL_32)
94a94fca2444bb18b4bf74d6c5dbcbb89f139237Mark Andrews
b81977ae70138c9befd8fa4bb66b6145e1986561Mark Andrewstest: $(NO_TESTS)
b81977ae70138c9befd8fa4bb66b6145e1986561Mark Andrews
43769594c0e42e9822ef71daee8bbf35252d9300Evan HuntBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
43769594c0e42e9822ef71daee8bbf35252d9300Evan Hunt
9ecedaea58defeadaf54dfc1211270653e0657ceMark Andrewsinclude ../../make-rules/depend.mk
9ecedaea58defeadaf54dfc1211270653e0657ceMark Andrews