Makefile revision 181
235N/A#
235N/A# CDDL HEADER START
235N/A#
235N/A# The contents of this file are subject to the terms of the
235N/A# Common Development and Distribution License (the "License").
235N/A# You may not use this file except in compliance with the License.
235N/A#
323N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
323N/A# or http://www.opensolaris.org/os/licensing.
323N/A# See the License for the specific language governing permissions
235N/A# and limitations under the License.
235N/A#
235N/A# When distributing Covered Code, include this CDDL HEADER in each
235N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
235N/A# If applicable, add the following below this CDDL HEADER, with the
235N/A# fields enclosed by brackets "[]" replaced with your own identifying
235N/A# information: Portions Copyright [yyyy] [name of copyright owner]
235N/A#
235N/A# CDDL HEADER END
235N/A#
235N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
235N/A#
235N/Ainclude ../../make-rules/shared-macros.mk
235N/A
235N/ACOMPONENT_NAME= ilmbase
235N/ACOMPONENT_VERSION= 1.0.1
235N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
235N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
235N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
235N/ACOMPONENT_ARCHIVE_HASH= sha1:143adc547be83c6df75831ae957eef4b2706c9c0
235N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
235N/A
235N/Ainclude ../../make-rules/prep.mk
235N/Ainclude ../../make-rules/configure.mk
235N/Ainclude ../../make-rules/ips.mk
235N/A
235N/APKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
235N/APKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
235N/A
235N/APATCH_LEVEL = 0
235N/A
235N/A# Prevent RPATH/RUNPATH, even in ./configure. If conftest
235N/A# can't find something in the default search RUNPATH, we'd
235N/A# like to know why.
235N/ACFLAGS += -Xc -xnorunpath
235N/ACFLAGS += $(studio_C99_ENABLE) $(CPP_POSIX) $(CPP_LARGEFILES)
235N/ACPPFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES)
235N/ACXXFLAGS += $(CC_BITS) -mt -library=Crun -library=Cstd -compat=5
235N/ACXXFLAGS += -D_XPG5 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__=1
235N/ACXXFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES)
237N/ALDFLAGS += -lpthread -lc -lm
264N/ALD_OPTIONS += -z ignore
268N/A
270N/ACONFIGURE_ENV += CXX="$(CCC)"
271N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
272N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
273N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
274N/ACONFIGURE_ENV += CXXLINK="$(CCC) $(CXXFLAGS) $(LDFLAGS)"
275N/ACONFIGURE_ENV += CXXCPP="$(CCC) $(CPPFLAGS) $(CXXFLAGS) -E"
276N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
305N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
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