Makefile revision 3996
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox User# CDDL HEADER START
d2bdd5b314d3ee2250c740fe5fff8b91ab3731b2Tinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# The contents of this file are subject to the terms of the
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Common Development and Distribution License (the "License").
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# You may not use this file except in compliance with the License.
d2bdd5b314d3ee2250c740fe5fff8b91ab3731b2Tinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# or http://www.opensolaris.org/os/licensing.
d2bdd5b314d3ee2250c740fe5fff8b91ab3731b2Tinderbox User# See the License for the specific language governing permissions
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# and limitations under the License.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
d2bdd5b314d3ee2250c740fe5fff8b91ab3731b2Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# CDDL HEADER END
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsinclude ../../make-rules/shared-macros.mk
dec590a3deb8e87380a8bd3a77d535dba3729bf6Tinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsCOMPONENT_NAME= pconsole
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_VERSION= 1.0
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCOMPONENT_PROJECT_URL= http://www.heiho.net/pconsole/
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE_HASH= \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User sha256:94520bf65f726df9d7e686bb486e9a2828c29d09a20b9522f1da4f7d66700bb2
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE_URL= http://www.heiho.net/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_BUGDB= utility/pconsole
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserTPNO= 9270
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox Userinclude $(WS_MAKE_RULES)/prep.mk
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox Userinclude $(WS_MAKE_RULES)/configure.mk
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox Userinclude $(WS_MAKE_RULES)/ips.mk
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Required to configure correctly.
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserCOMPONENT_PRE_CONFIGURE_ACTION = \
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User ($(CLONEY) $(SOURCE_DIR) $(@D))
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# -I argument needed to find the generated config.h file.
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserCONFIGURE_ENV += "CC=$(CC) -I."
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# If the configure options are not explicitly set, then configure fails with:
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# configure: warning: CC=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc: invalid host type
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# configure: warning: CXX=/ws/onnv-tools/SUNWspro/sunstudio12.1/bin/CC: invalid host type
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# configure: error: can only configure for one host and one target at a time
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# DESTDIR doesn't work correctly, so we specify some of the paths directly.
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# common targets
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox Userbuild: $(BUILD_32)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox Userinstall: $(INSTALL_32)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Usertest: $(NO_TESTS)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserREQUIRED_PACKAGES += shell/bash
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserREQUIRED_PACKAGES += shell/ksh93
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsREQUIRED_PACKAGES += system/library
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User