Makefile revision 5680
571N/A#
571N/A# CDDL HEADER START
571N/A#
571N/A# The contents of this file are subject to the terms of the
943N/A# Common Development and Distribution License (the "License").
571N/A# You may not use this file except in compliance with the License.
571N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
919N/A#
571N/ABUILD_BITS= 64_and_32
571N/Ainclude ../../make-rules/shared-macros.mk
571N/A
571N/ACOMPONENT_NAME= bzip2
571N/ACOMPONENT_VERSION= 1.0.6
970N/ACOMPONENT_PROJECT_URL= http://www.bzip.org/
970N/ACOMPONENT_ARCHIVE_HASH= \
970N/A sha256:a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
970N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
970N/ACOMPONENT_BUGDB= utility/bzip
571N/A
571N/ATPNO= 5547
571N/A
911N/ABUILD_STYLE= justmake
911N/A# build does this always
911N/ASYSTEM_TEST_TARGET= $(SYSTEM_TEST_32_and_64)
911N/Ainclude $(WS_MAKE_RULES)/common.mk
571N/A
571N/ALINT_FLAGS += -I.
571N/A
571N/A# we need to enable large file support and build PIC for our shared libraries
571N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
571N/A
571N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
571N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
571N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
571N/ACOMPONENT_INSTALL_ARGS += PREFIX=$(PROTOUSRDIR)
571N/A
571N/ACOMPONENT_PRE_BUILD_ACTION += \
571N/A (cd $(@D) ; \
571N/A cp ../../oldapi.c . )
970N/A
970N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
970N/ACOMPONENT_TEST_TARGETS = test
970N/Asystem-test: \
970N/A COMPONENT_TEST_MASTER = \
970N/A $(COMPONENT_TEST_RESULTS_DIR)/system-results-all.master
970N/ACOMPONENT_SYSTEM_TEST_TARGETS= system-test
970N/ACOMPONENT_SYSTEM_TEST_DIR = $(SOURCE_DIR)
571N/A
571N/ACOMPONENT_TEST_TRANSFORMS += \
571N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
571N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
571N/A '-e "/^XXX_CC_XXX$$/d" '
571N/A
571N/A# common targets
571N/ACOMPONENT_POST_INSTALL_ACTION.32 += \
571N/A ($(INSTALL) $(BUILD_DIR_32)/libbz2.so.1 $(PROTOUSRLIBDIR); \
cd $(PROTOUSRLIBDIR); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so);
COMPONENT_PRE_INSTALL_ACTION.64 += $(MKDIR) $(PROTOUSRLIBDIR64);
COMPONENT_POST_INSTALL_ACTION.64 += \
($(INSTALL) $(BUILD_DIR_64)/libbz2.so.1 $(PROTOUSRLIBDIR64); \
cd $(PROTOUSRLIBDIR64); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so;);
REQUIRED_PACKAGES += shell/ksh93