Makefile revision 844
120N/A#
120N/A# CDDL HEADER START
120N/A#
120N/A# The contents of this file are subject to the terms of the
120N/A# Common Development and Distribution License (the "License").
120N/A# You may not use this file except in compliance with the License.
120N/A#
120N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
120N/A# or http://www.opensolaris.org/os/licensing.
120N/A# See the License for the specific language governing permissions
120N/A# and limitations under the License.
120N/A#
120N/A# When distributing Covered Code, include this CDDL HEADER in each
120N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
120N/A# If applicable, add the following below this CDDL HEADER, with the
120N/A# fields enclosed by brackets "[]" replaced with your own identifying
120N/A# information: Portions Copyright [yyyy] [name of copyright owner]
120N/A#
120N/A# CDDL HEADER END
120N/A#
120N/A
120N/A#
3996N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
120N/A#
120N/A
120N/Ainclude ../../make-rules/shared-macros.mk
120N/A
120N/ACOMPONENT_NAME= bzip2
120N/ACOMPONENT_VERSION= 1.0.6
618N/ACOMPONENT_PROJECT_URL= http://www.bzip.org/
120N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
120N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
120N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1273N/A
120N/Ainclude ../../make-rules/prep.mk
3661N/Ainclude ../../make-rules/justmake.mk
3661N/Ainclude ../../make-rules/ips.mk
3996N/Ainclude ../../make-rules/lint-libraries.mk
3996N/A
3996N/ALINT_FLAGS += -I.
120N/A
486N/A# we need to enable large file support and build PIC for our shared libraries
486N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
120N/A
120N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
120N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
120N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
181N/ACOMPONENT_INSTALL_ARGS += PREFIX=$(PROTOUSRDIR)
120N/A
120N/ACOMPONENT_PRE_BUILD_ACTION= \
181N/A (cd $(@D) ; \
120N/A cp ../../oldapi.c . )
181N/A
181N/A# common targets
181N/Abuild: $(BUILD_32_and_64)
120N/A
120N/A# override the 64 bit install and have it make a directory for the lint lib
3996N/A$(INSTALL_64):
3996N/A $(MKDIR) $(PROTOUSRLIBDIR64)
touch $@
install: build $(INSTALL_32_and_64)
$(INSTALL) $(BUILD_DIR_32)/libbz2.so.1 $(PROTOUSRLIBDIR)
cd $(PROTOUSRLIBDIR); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so
$(INSTALL) $(BUILD_DIR_64)/libbz2.so.1 $(PROTOUSRLIBDIR64)
cd $(PROTOUSRLIBDIR64); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so
$(INSTALL) $(BUILD_DIR_64)/llib-lbz2.ln $(PROTOUSRLIBDIR64)
# build does this always
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk