Makefile revision 2899
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# or http://www.opensolaris.org/os/licensing.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/shared-macros.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_NAME= ilmbase
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_VERSION= 1.0.1
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_PROJECT_URL= http://www.openexr.com/
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE_HASH= \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw sha256:4f14fc7b26a37a391ec5f979697148e6774bc36bc052de26e40ffabe401e397d
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_BUGDB= library/openexr
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwTPNO= 5574
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/prep.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/configure.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/ips.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwPATCH_LEVEL = 0
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# there seems to be no other way to enable large files support
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCXXFLAGS += $(CPP_LARGEFILES)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# it seems that --with-pic doesn't get PIC flags to the C++ compiler
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCXXFLAGS += $(CC_PIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# libCstd and libCrun. The last two are needed because with Studio 12.2
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# (and beyond), there is a bug in the CC driver that is not correctly using
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# the '-library=Cstd,Crun' we are passing to it.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwLIBS += -lc -lm -lCstd -lCrun
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_ENV += LIBS="$(LIBS)"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += --disable-static
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += --enable-threading
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += --enable-posix-sem
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += --with-pic
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwASLR_MODE = $(ASLR_NOT_APPLICABLE)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwbuild: $(BUILD_32_and_64)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinstall: $(INSTALL_32_and_64)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwtest: $(TEST_32_and_64)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/depend.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw