Makefile revision 147
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore#
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# CDDL HEADER START
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore#
21f450f4fd5fd60f951de44878aae015ed0342e3Adam Moore# The contents of this file are subject to the terms of the
cb4f4f79feb7498d1f3406b88fb62209e5f5a444Adam Moore# Common Development and Distribution License (the "License").
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# You may not use this file except in compliance with the License.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore#
0a9c6f9f30a66e52ec4ea4ed93504580b3a5669aAdam Moore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# or http://www.opensolaris.org/os/licensing.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# See the License for the specific language governing permissions
4f2de35716c5df46152747980516af484d0ab208Adam Moore# and limitations under the License.
03f9aefec605c500b64625110a955e65b900b100Adam Moore#
03f9aefec605c500b64625110a955e65b900b100Adam Moore# When distributing Covered Code, include this CDDL HEADER in each
03f9aefec605c500b64625110a955e65b900b100Adam Moore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03f9aefec605c500b64625110a955e65b900b100Adam Moore# If applicable, add the following below this CDDL HEADER, with the
03f9aefec605c500b64625110a955e65b900b100Adam Moore# fields enclosed by brackets "[]" replaced with your own identifying
03f9aefec605c500b64625110a955e65b900b100Adam Moore# information: Portions Copyright [yyyy] [name of copyright owner]
03f9aefec605c500b64625110a955e65b900b100Adam Moore#
03f9aefec605c500b64625110a955e65b900b100Adam Moore# CDDL HEADER END
03f9aefec605c500b64625110a955e65b900b100Adam Moore#
03f9aefec605c500b64625110a955e65b900b100Adam Moore# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
03f9aefec605c500b64625110a955e65b900b100Adam Moore#
03f9aefec605c500b64625110a955e65b900b100Adam Mooreinclude ../../make-rules/shared-macros.mk
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
02fc09f797e83e80199c96adc4751c230dccc973Adam MooreCOMPONENT_NAME= ilmbase
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCOMPONENT_VERSION= 1.0.1
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCOMPONENT_PROJECT_URL= http://www.openexr.com/
5f8408be995d28c8f351f37fd05e7c8633fdea40Adam MooreCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5f8408be995d28c8f351f37fd05e7c8633fdea40Adam MooreCOMPONENT_ARCHIVE_HASH= sha1:143adc547be83c6df75831ae957eef4b2706c9c0
5f8408be995d28c8f351f37fd05e7c8633fdea40Adam MooreCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam Mooreinclude ../../make-rules/prep.mk
80d2034f65b9348e5fd36291f03b0819181efb89Adam Mooreinclude ../../make-rules/configure.mk
b46f3d670b654847b0ce60afdba1b461c492a5c9Adam Mooreinclude ../../make-rules/ips.mk
0dca577a07715960da42d47787eecc25b285182fAdam Moore
b46f3d670b654847b0ce60afdba1b461c492a5c9Adam MoorePKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
cb4f4f79feb7498d1f3406b88fb62209e5f5a444Adam MoorePKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore
9c42541e375e7bb70c53012b3012d70f1a380254Adam MoorePATCH_LEVEL = 0
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore
0771d781138a507b3e657573703f511291640bf3Adam Moore# Prevent RPATH/RUNPATH, even in ./configure. If conftest
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore# can't find something in the default search RUNPATH, we'd
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore# like to know why.
03f9aefec605c500b64625110a955e65b900b100Adam MooreCFLAGS += -Xc -xnorunpath
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCFLAGS += $(studio_C99_ENABLE) $(CPP_POSIX) $(CPP_LARGEFILES)
8aa0880cd494c951e0f4aa7d82d8bdac7692c7d0Adam MooreCPPFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES)
8aa0880cd494c951e0f4aa7d82d8bdac7692c7d0Adam MooreCXXFLAGS += $(CC_BITS) -mt -library=Crun -library=Cstd -compat=5
8aa0880cd494c951e0f4aa7d82d8bdac7692c7d0Adam MooreCXXFLAGS += -D_XPG5 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__=1
abdfe7cf11d34f89f17b26e4779bf6079d22a910Adam MooreCXXFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES)
b238e52ac22e07b0798ae7b0f63f3fe0e8f9bf95Adam MooreLDFLAGS += -lpthread -lc -lm
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreLD_OPTIONS += -z ignore
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_ENV += CXX="$(CCC)"
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_ENV += CXXLINK="$(CCC) $(CXXFLAGS) $(LDFLAGS)"
fb49666327c2cb6ea5a7d2dea5160b649bc07c51Adam MooreCONFIGURE_ENV += CXXCPP="$(CCC) $(CPPFLAGS) $(CXXFLAGS) -E"
2690c090ce850e485d15cf691f59e8aaeb3b4bb1Adam MooreCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
482388c306e346930994afd7e59b3af43c00aac6Adam MooreCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
21f450f4fd5fd60f951de44878aae015ed0342e3Adam MooreCONFIGURE_OPTIONS += --disable-static
482388c306e346930994afd7e59b3af43c00aac6Adam MooreCONFIGURE_OPTIONS += --enable-threading
e281a15571f07a6b4da34d2ffd674dbeb5dfd612Luke SmithCONFIGURE_OPTIONS += --enable-posix-sem
e281a15571f07a6b4da34d2ffd674dbeb5dfd612Luke SmithCONFIGURE_OPTIONS += --with-pic
e281a15571f07a6b4da34d2ffd674dbeb5dfd612Luke Smith
e281a15571f07a6b4da34d2ffd674dbeb5dfd612Luke SmithPKG_PROTO_DIRS += $(COMPONENT_SRC)
e281a15571f07a6b4da34d2ffd674dbeb5dfd612Luke Smith
e281a15571f07a6b4da34d2ffd674dbeb5dfd612Luke Smithbuild: $(BUILD_32_and_64)
e281a15571f07a6b4da34d2ffd674dbeb5dfd612Luke Smith
80d2034f65b9348e5fd36291f03b0819181efb89Adam Mooreinclude ../../make-rules/shared-targets.mk
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam Mooreinstall: $(INSTALL_32_and_64)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore $(MKDIR) $(PROTOUSRSHAREMAN3DIR) ; \
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore $(INSTALL) -m 0644 Solaris/libilmbase.3lib $(PROTOUSRSHAREMAN3DIR)/
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam Mooretest: $(BUILD_32_and_64)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore @cd $(BUILD_DIR_32); $(GMAKE) check
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore @cd $(BUILD_DIR_64); $(GMAKE) check
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam Mooreinclude ../../make-rules/depend.mk
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore