Makefile revision 493
561N/A#
561N/A# CDDL HEADER START
561N/A#
561N/A# The contents of this file are subject to the terms of the
561N/A# Common Development and Distribution License (the "License").
561N/A# You may not use this file except in compliance with the License.
561N/A#
561N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
561N/A# or http://www.opensolaris.org/os/licensing.
561N/A# See the License for the specific language governing permissions
561N/A# and limitations under the License.
561N/A#
561N/A# When distributing Covered Code, include this CDDL HEADER in each
561N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
561N/A# If applicable, add the following below this CDDL HEADER, with the
561N/A# fields enclosed by brackets "[]" replaced with your own identifying
561N/A# information: Portions Copyright [yyyy] [name of copyright owner]
561N/A#
561N/A# CDDL HEADER END
561N/A#
561N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
561N/A#
561N/Ainclude ../../make-rules/shared-macros.mk
561N/A
561N/ACOMPONENT_NAME= ilmbase
561N/ACOMPONENT_VERSION= 1.0.1
561N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
561N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
561N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
561N/ACOMPONENT_ARCHIVE_HASH= sha1:143adc547be83c6df75831ae957eef4b2706c9c0
561N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
561N/A
561N/Ainclude ../../make-rules/prep.mk
561N/Ainclude ../../make-rules/configure.mk
561N/Ainclude ../../make-rules/ips.mk
561N/A
561N/APATCH_LEVEL = 0
561N/A
561N/A# configure seems to add -nolibs, so we add that back to the C++ runtime and
561N/A# stdlib
561N/ACXXFLAGS += $(studio_CXXLIB_CSTD)
# there seems to be no other way to enable large files support
CXXFLAGS += $(CPP_LARGEFILES)
# it seems that --with-pic doesn't get PIC flags to the C++ compiler
CXXFLAGS += $(CC_PIC)
# libtools seems to be forcing -nolibs, so we have to add back libc and libm
LDFLAGS += -lc -lm
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --enable-threading
CONFIGURE_OPTIONS += --enable-posix-sem
CONFIGURE_OPTIONS += --with-pic
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk