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