Makefile revision 844
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson#
2f4ffd7f5594c0464f2a872aee5ef102f6f7b10fMark Andrews# CDDL HEADER START
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# The contents of this file are subject to the terms of the
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson# Common Development and Distribution License (the "License").
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson# You may not use this file except in compliance with the License.
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
3aca8e5bf3740bbcc3bb13dde242d7cc369abb27Mark Andrews#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson#
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington#
a5c077e40c784cf9e25c95a1ab94db2faab04ae9Brian Wellington# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
886b96ebfd555cfeaf37ae46fc08421a41c61392Andreas Gustafsson#
cc0a5f714231709409b9e1b85f0f97ae50854451Mark Andrews
6028d1ce0380d0ba7f6c6ecd1ad20b31ddd1becbDavid Lawrenceinclude ../../make-rules/shared-macros.mk
364a82f7c25b62967678027043425201a5e5171aBob Halley
6017f424ee3c02d7f22132c77576ea38542fa949Andreas GustafssonCOMPONENT_NAME= pconsole
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceCOMPONENT_VERSION= 1.0
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian WellingtonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9c566a852f31c3a5d0b9d6eaf11463114339c01dAndreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian WellingtonCOMPONENT_PROJECT_URL= http://www.heiho.net/pconsole/
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian WellingtonCOMPONENT_ARCHIVE_HASH= \
5afa531442369eed0e93a8af14422b30f400bd89Mark Andrews sha256:94520bf65f726df9d7e686bb486e9a2828c29d09a20b9522f1da4f7d66700bb2
476386968b1f287a695f73c48862e961011af99bMark AndrewsCOMPONENT_ARCHIVE_URL= http://www.heiho.net/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson
9259fed3d8ac5d1efa9b5a647969e40c9c934484Andreas Gustafssoninclude ../../make-rules/prep.mk
3aca8e5bf3740bbcc3bb13dde242d7cc369abb27Mark Andrewsinclude ../../make-rules/configure.mk
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellingtoninclude ../../make-rules/ips.mk
9c566a852f31c3a5d0b9d6eaf11463114339c01dAndreas Gustafsson
9c566a852f31c3a5d0b9d6eaf11463114339c01dAndreas Gustafsson# Required to configure correctly.
62700b67eb8abb7d13f9c3c1bc4b60a1477d35d8Mark AndrewsCOMPONENT_PRE_CONFIGURE_ACTION = \
9259fed3d8ac5d1efa9b5a647969e40c9c934484Andreas Gustafsson ($(CLONEY) $(SOURCE_DIR) $(@D))
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson
1adb2e87a20a480e640385609c9652dac04c7dffAndreas Gustafsson# -I argument needed to find the generated config.h file.
1adb2e87a20a480e640385609c9652dac04c7dffAndreas GustafssonCONFIGURE_ENV += "CC=$(CC) -I."
1adb2e87a20a480e640385609c9652dac04c7dffAndreas Gustafsson
1adb2e87a20a480e640385609c9652dac04c7dffAndreas Gustafsson# If the configure options are not explicitly set, then configure fails with:
1adb2e87a20a480e640385609c9652dac04c7dffAndreas Gustafsson# configure: warning: CC=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc: invalid host type
1adb2e87a20a480e640385609c9652dac04c7dffAndreas Gustafsson# configure: warning: CXX=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/CC: invalid host type
1adb2e87a20a480e640385609c9652dac04c7dffAndreas Gustafsson# configure: error: can only configure for one host and one target at a time
1adb2e87a20a480e640385609c9652dac04c7dffAndreas GustafssonCONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
1adb2e87a20a480e640385609c9652dac04c7dffAndreas Gustafsson
1adb2e87a20a480e640385609c9652dac04c7dffAndreas Gustafsson# DESTDIR doesn't work correctly, so we specify some of the paths directly.
6017f424ee3c02d7f22132c77576ea38542fa949Andreas GustafssonCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson# common targets
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafssonbuild: $(BUILD_32)
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington
ad5bc22a819190839bdcc4d102d023782dc23660Mark Andrewsinstall: $(INSTALL_32)
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafssontest: $(NO_TESTS)
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson
6017f424ee3c02d7f22132c77576ea38542fa949Andreas GustafssonBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellingtoninclude ../../make-rules/depend.mk
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington