Makefile revision 618
0N/A#
579N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A
0N/A#
0N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= zlib
0N/ACOMPONENT_VERSION= 1.2.3
0N/ACOMPONENT_PROJECT_URL= http://www.zlib.net/
0N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0N/ACOMPONENT_ARCHIVE_HASH= sha1:60faeaaf250642db5c0ea36cd6dcc9f99c8f3902
0N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/libpng/zlib/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
0N/A
0N/Ainclude ../../make-rules/prep.mk
695N/Ainclude ../../make-rules/configure.mk
0N/Ainclude ../../make-rules/ips.mk
0N/Ainclude ../../make-rules/lint-libraries.mk
679N/A
0N/A# Zlib won't build without cloning. We need also to get rid of default
695N/A# Makefile and get our own version of zlib.h to avoid interactions
0N/A# between 32 and 64 bit builds.
0N/ACOMPONENT_PRE_CONFIGURE_ACTION = ( \
0N/A $(CLONEY) $(SOURCE_DIR) $(@D); \
0N/A $(RM) $(@D)/Makefile $(@D)/zconf.h; \
0N/A $(CP) $(SOURCE_DIR)/zconf.h $(@D) )
0N/A
0N/ACFLAGS += $(CC_PIC)
0N/A
0N/A# We need to reset configure options here because zlib is confused with
0N/A# CC and CFLAGS definitions as configure parameters.
0N/ACONFIGURE_OPTIONS = --shared
0N/ACONFIGURE_OPTIONS += --prefix=/usr
0N/ACONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS))
0N/ACONFIGURE_OPTIONS.64 += --libdir=/usr/lib/$(MACH64)
0N/A
0N/ACONFIGURE_ENV += CC="$(CC)"
0N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
0N/ACONFIGURE_ENV += LDSHARED="$(CC) $(CFLAGS) -G"
0N/A
0N/A# This LDSHARED definitions is forced to get all required options plus
0N/A# mapfile for result linking. While the one used with configure is just
0N/A# to allow Zlib detect capability of creating shared libraries.
0N/ACOMPONENT_BUILD_ARGS = LDSHARED="$(CC) $(CFLAGS) -G -h libz.so.1 $(LD_OPTIONS_SO) -M ../../mapfile -L."
0N/A
0N/ACOMPONENT_TEST_TARGETS = test
0N/A
0N/Abuild: $(BUILD_32_and_64)
0N/A
0N/Ainstall: $(INSTALL_32_and_64)
0N/A
0N/Atest: $(TEST_32_and_64)
0N/A
0N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
0N/A
0N/Ainclude ../../make-rules/depend.mk
0N/A