Makefile revision 181
816e576f77e2c46df3e3d97d65822aa8aded7c4bDavid Lawrence# CDDL HEADER START
d075bd326e34600c036c905eea6c80f565ea951fAndreas Gustafsson# The contents of this file are subject to the terms of the
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# Common Development and Distribution License (the "License").
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# You may not use this file except in compliance with the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# See the License for the specific language governing permissions
6f6fbed6eb4d755198a452e557eead49f215d54bAndreas Gustafsson# and limitations under the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# CDDL HEADER END
77527513f94fe78413221a63fd6d383cec32bcafAndreas Gustafsson# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonCOMPONENT_ARCHIVE_HASH= sha1:3f89f861209ce81a6bab1fd1998c0ef311712002
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonCOMPONENT_ARCHIVE_URL= http://www.bzip.org/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafssoninclude ../../make-rules/lint-libraries.mk
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# we need to enable large file support and build PIC for our shared libraries
a1bb4b0e4f71fb2878050905087d279cfa87b786Andreas GustafssonCOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
b976f9c60a09f4a098852d0653ad5df6842557a7Andreas GustafssonCOMPONENT_INSTALL_ARGS += PREFIX=$(PROTOUSRDIR)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson# common targets
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson $(INSTALL) $(BUILD_DIR_32)/libbz2.so.1 $(PROTOUSRLIBDIR)
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson cd $(PROTOUSRLIBDIR); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson $(INSTALL) $(BUILD_DIR_64)/libbz2.so.1 $(PROTOUSRLIBDIR64)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson cd $(PROTOUSRLIBDIR64); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson $(INSTALL) $(BUILD_DIR_64)/llib-lbz2.ln $(PROTOUSRLIBDIR64)
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson# build does this always