Makefile revision 61
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#
61N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
61N/A#
61N/Ainclude ../../make-rules/shared-macros.mk
61N/A
61N/ACOMPONENT_NAME= bzip2
61N/ACOMPONENT_VERSION= 1.0.6
61N/AIPS_PKG_NAME= compress/bzip2
61N/ACOMPONENT_DESCRIPTION= "The bzip compression utility"
61N/ACOMPONENT_CLASSIFICATION="Applications/System Utilities"
61N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
61N/ACOMPONENT_PROJECT_URL= http://www.bzip.org
61N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
61N/ACOMPONENT_ARCHIVE_HASH= sha1:3f89f861209ce81a6bab1fd1998c0ef311712002
61N/ACOMPONENT_ARCHIVE_URL= http://www.bzip.org/1.0.6/$(COMPONENT_ARCHIVE)
61N/A
61N/Ainclude ../../make-rules/prep.mk
61N/Ainclude ../../make-rules/justmake.mk
61N/Ainclude ../../make-rules/ips.mk
61N/A
61N/ALIBNAME= bz2
61N/ALINTOUT= lint.out
61N/ALINTFLAGS= -nsvx -I. $(BITS32)
61N/ALINTFLAGS64= -nsvx -I. $(BITS64)
61N/A
61N/A
61N/ACFLAGS += -KPIC -D_FILE_OFFSET_BITS=64
61N/ACFLAGS += $(XREGSFLAG)
61N/A
61N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
61N/ACOMPONENT_BUILD_TARGETS += CC="$(CC)"
61N/ACOMPONENT_BUILD_TARGETS += CFLAGS="$(CFLAGS)"
61N/ACOMPONENT_INSTALL_TARGETS += PREFIX=$(PROTOUSRDIR)
61N/A
61N/ACOMPONENT_PRE_BUILD_ACTION= \
61N/A (cd $(@D) ; \
61N/A cp ../../oldapi.c . )
61N/A
61N/ACOMPONENT_POST_BUILD_ACTION= \
61N/A (cd $(@D) ; \
61N/A $(LINT) -o $(LIBNAME) ../../llib-lbz2 > $(LINTOUT) 2>&1)
61N/A
61N/A
61N/A# common targets
61N/Abuild: $(BUILD_32) $(BUILD_64)
61N/A
61N/AMAN1FILES= bunzip2.1 bzcat.1 bzdiff.1 bzgrep.1 \
61N/A bzip2.1 bzip2recover.1 bzmore.1
61N/AMAN3FILES=libbz2.3
61N/A
61N/APROTOMAN1FILES=$(MAN1FILES:%=$(PROTOUSRSHAREMAN1DIR)/%)
61N/APROTOMAN3FILES=$(MAN3FILES:%=$(PROTOUSRSHAREMAN3DIR)/%)
61N/APROTODIRS= $(PROTOUSRSHAREMAN1DIR) $(PROTOUSRSHAREMAN3DIR)
61N/A
61N/A$(PROTOUSRSHAREMAN1DIR) $(PROTOUSRSHAREMAN3DIR):
61N/A $(INS.dir)
61N/A
61N/A$(PROTOUSRSHAREMAN1DIR)/% $(PROTOUSRSHAREMAN3DIR)/%: manpages/%
61N/A $(INS.file)
61N/A
61N/A
61N/Ainstall: build $(INSTALL_32) $(PROTODIRS) $(PROTOMAN3FILES) $(PROTOMAN1FILES)
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 $(INSTALL) llib-lbz2 $(PROTOUSRLIBDIR)
61N/A $(INSTALL) $(BUILD_DIR_32)/llib-lbz2.ln $(PROTOUSRLIBDIR)
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
61N/Atest:
61N/A
61N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
61N/A
61N/Ainclude ../../make-rules/depend.mk