Makefile revision 618
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
606N/A# Common Development and Distribution License (the "License").
761N/A# You may not use this file except in compliance with the License.
98N/A#
98N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98N/A# or http://www.opensolaris.org/os/licensing.
98N/A# See the License for the specific language governing permissions
98N/A# and limitations under the License.
98N/A#
98N/A# When distributing Covered Code, include this CDDL HEADER in each
98N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
98N/A# If applicable, add the following below this CDDL HEADER, with the
98N/A# fields enclosed by brackets "[]" replaced with your own identifying
98N/A# information: Portions Copyright [yyyy] [name of copyright owner]
98N/A#
98N/A# CDDL HEADER END
98N/A#
98N/A
98N/A#
98N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
98N/A#
98N/A
98N/Ainclude ../../make-rules/shared-macros.mk
98N/A
98N/ACOMPONENT_NAME= bzip2
98N/ACOMPONENT_VERSION= 1.0.6
98N/ACOMPONENT_PROJECT_URL= http://www.bzip.org/
98N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
98N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
761N/ACOMPONENT_ARCHIVE_HASH= sha1:3f89f861209ce81a6bab1fd1998c0ef311712002
98N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
98N/A
98N/Ainclude ../../make-rules/prep.mk
98N/Ainclude ../../make-rules/justmake.mk
98N/Ainclude ../../make-rules/ips.mk
156N/Ainclude ../../make-rules/lint-libraries.mk
493N/A
98N/ALINT_FLAGS += -I.
98N/A
761N/A# we need to enable large file support and build PIC for our shared libraries
98N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
98N/A
761N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
548N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
98N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
98N/ACOMPONENT_INSTALL_ARGS += PREFIX=$(PROTOUSRDIR)
98N/A
98N/ACOMPONENT_PRE_BUILD_ACTION= \
98N/A (cd $(@D) ; \
98N/A cp ../../oldapi.c . )
98N/A
606N/A# common targets
156N/Abuild: $(BUILD_32_and_64)
98N/A
156N/A# override the 64 bit install and have it make a directory for the lint lib
98N/A$(INSTALL_64):
$(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