Makefile revision 5123
729N/A# The contents of this file are subject to the terms of the 943N/A# Common Development and Distribution License (the "License"). 729N/A# You may not use this file except in compliance with the License. 919N/A# See the License for the specific language governing permissions 919N/A# and limitations under the License. 919N/A# When distributing Covered Code, include this CDDL HEADER in each 919N/A# If applicable, add the following below this CDDL HEADER, with the 919N/A# fields enclosed by brackets "[]" replaced with your own identifying 919N/A# information: Portions Copyright [yyyy] [name of copyright owner] 919N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 729N/A# Omit directory options that cause zlib's CMake-based build to fail. 729N/A# We want to build hardware specific versions of the longest_match() 729N/A# function into our shared library that has been hand optimised to use 855N/A# some machine architecture specific instructions. Currently, we are doing 855N/A# it for the T4 architecture, but later other architectures may be added. 855N/A# This is done by taking advantage of the Solaris 11 linker-editor 855N/A# "Symbol Capabilities" feature. Refer to the section "Creating a Family 855N/A# of Symbol Capabilities Functions", under "Identifying Capability 855N/A# Requirements" in the "Linker and Libraries Guide" 729N/A# Zlib won't build without cloning. We need also to get rid of default 729N/A# Makefile and get our own version of zconf.h to avoid interactions 729N/A# between 32 and 64 bit builds. 729N/A# Also, the x86 architecture does not require alignment for multi-byte 729N/A# loads, so we can define UNALIGNED_OK for x86 729N/A# We need to reset configure options here because zlib is confused with 729N/A# CC and CFLAGS definitions as configure parameters. 729N/A# This LDSHARED definitions is forced to get all required options plus 729N/A# mapfile for result linking. While the one used with configure is just 729N/A# to allow Zlib detect capability of creating shared libraries.