Makefile revision 810
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# CDDL HEADER START
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# The contents of this file are subject to the terms of the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Common Development and Distribution License (the "License").
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# You may not use this file except in compliance with the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# See the License for the specific language governing permissions
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# If applicable, add the following below this CDDL HEADER, with the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# CDDL HEADER END
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterCOMPONENT_ARCHIVE_HASH= sha1:60faeaaf250642db5c0ea36cd6dcc9f99c8f3902
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/libpng/zlib/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Zlib won't build without cloning. We need also to get rid of default
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Makefile and get our own version of zlib.h to avoid interactions
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# between 32 and 64 bit builds.
f2f3d0d9b622a1d1f9b282ba8d8fd9e5353efb5ePeter Major# We need to reset configure options here because zlib is confused with
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# CC and CFLAGS definitions as configure parameters.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterCONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS))
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterCONFIGURE_OPTIONS.64 += --libdir=/usr/lib/$(MACH64)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# This LDSHARED definitions is forced to get all required options plus
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# mapfile for result linking. While the one used with configure is just
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# to allow Zlib detect capability of creating shared libraries.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterCOMPONENT_BUILD_ARGS = LDSHARED="$(CC) $(CFLAGS) -G -h libz.so.1 $(LD_OPTIONS_SO) -M ../../mapfile -L."