Makefile revision 206
cd348e325366620fe047edcc849e3c9424828599Peter Bray#
cd348e325366620fe047edcc849e3c9424828599Peter Bray# CDDL HEADER START
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco#
cd348e325366620fe047edcc849e3c9424828599Peter Bray# The contents of this file are subject to the terms of the
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Common Development and Distribution License (the "License").
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You may not use this file except in compliance with the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# or http://www.opensolaris.org/os/licensing.
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# See the License for the specific language governing permissions
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# and limitations under the License.
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# When distributing Covered Code, include this CDDL HEADER in each
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# If applicable, add the following below this CDDL HEADER, with the
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# fields enclosed by brackets "[]" replaced with your own identifying
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# information: Portions Copyright [yyyy] [name of copyright owner]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# CDDL HEADER END
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayinclude ../../make-rules/shared-macros.mk
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_NAME= ilmbase
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_VERSION= 1.0.1
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_PROJECT_URL= http://www.openexr.com/
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE_HASH= sha1:143adc547be83c6df75831ae957eef4b2706c9c0
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray
3a5046f0538ba9fb3a9429199544a9f4b93d9a4dLubos Koscoinclude ../../make-rules/prep.mk
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos Koscoinclude ../../make-rules/configure.mk
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos Koscoinclude ../../make-rules/ips.mk
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos KoscoPATCH_LEVEL = 0
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco# configure seems to add -nolibs, so we add that back to the C++ runtime and
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco# stdlib
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter BrayCXXFLAGS += $(studio_CXXLIB_CSTD)
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# there seems to be no other way to enable large files support
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter BrayCXXFLAGS += $(CPP_LARGEFILES)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# it seems that --with-pic doesn't get PIC flags to the C++ compiler
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos KoscoCXXFLAGS += $(CC_PIC)
cd348e325366620fe047edcc849e3c9424828599Peter Bray# libtools seems to be forcing -nolibs, so we have to add back libc and libm
cd348e325366620fe047edcc849e3c9424828599Peter BrayLDFLAGS += -lc -lm
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter BrayCONFIGURE_OPTIONS += --disable-static
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCONFIGURE_OPTIONS += --enable-threading
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCONFIGURE_OPTIONS += --enable-posix-sem
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos KoscoCONFIGURE_OPTIONS += --with-pic
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braybuild: $(BUILD_32_and_64)
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco
cd348e325366620fe047edcc849e3c9424828599Peter Brayinstall: $(INSTALL_32_and_64)
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Braytest: $(TEST_32_and_64)
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter BrayBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Brayinclude ../../make-rules/depend.mk
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco