Makefile revision 147
278N/A#
278N/A# CDDL HEADER START
1276N/A#
278N/A# The contents of this file are subject to the terms of the
1436N/A# Common Development and Distribution License (the "License").
278N/A# You may not use this file except in compliance with the License.
278N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/Ainclude ../../make-rules/shared-macros.mk
919N/A
278N/ACOMPONENT_NAME= ilmbase
278N/ACOMPONENT_VERSION= 1.0.1
278N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
278N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
493N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
278N/ACOMPONENT_ARCHIVE_HASH= sha1:143adc547be83c6df75831ae957eef4b2706c9c0
278N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
1370N/A
278N/Ainclude ../../make-rules/prep.mk
911N/Ainclude ../../make-rules/configure.mk
1370N/Ainclude ../../make-rules/ips.mk
1370N/A
1370N/APKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
911N/APKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
278N/A
1276N/APATCH_LEVEL = 0
278N/A
278N/A# Prevent RPATH/RUNPATH, even in ./configure. If conftest
278N/A# can't find something in the default search RUNPATH, we'd
278N/A# like to know why.
278N/ACFLAGS += -Xc -xnorunpath
1402N/ACFLAGS += $(studio_C99_ENABLE) $(CPP_POSIX) $(CPP_LARGEFILES)
493N/ACPPFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES)
1402N/ACXXFLAGS += $(CC_BITS) -mt -library=Crun -library=Cstd -compat=5
1402N/ACXXFLAGS += -D_XPG5 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__=1
969N/ACXXFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES)
278N/ALDFLAGS += -lpthread -lc -lm
1436N/ALD_OPTIONS += -z ignore
1436N/A
1436N/ACONFIGURE_ENV += CXX="$(CCC)"
1436N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
970N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
970N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
970N/ACONFIGURE_ENV += CXXLINK="$(CCC) $(CXXFLAGS) $(LDFLAGS)"
970N/ACONFIGURE_ENV += CXXCPP="$(CCC) $(CPPFLAGS) $(CXXFLAGS) -E"
970N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
970N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
970N/A
970N/ACONFIGURE_OPTIONS += --disable-static
970N/ACONFIGURE_OPTIONS += --enable-threading
910N/ACONFIGURE_OPTIONS += --enable-posix-sem
910N/ACONFIGURE_OPTIONS += --with-pic
278N/A
1436N/APKG_PROTO_DIRS += $(COMPONENT_SRC)
1436N/A
1436N/Abuild: $(BUILD_32_and_64)
278N/A
278N/Ainclude ../../make-rules/shared-targets.mk
278N/A
278N/Ainstall: $(INSTALL_32_and_64)
493N/A $(MKDIR) $(PROTOUSRSHAREMAN3DIR) ; \
278N/A $(INSTALL) -m 0644 Solaris/libilmbase.3lib $(PROTOUSRSHAREMAN3DIR)/
1196N/A
1196N/Atest: $(BUILD_32_and_64)
1196N/A @cd $(BUILD_DIR_32); $(GMAKE) check
1196N/A @cd $(BUILD_DIR_64); $(GMAKE) check
278N/A
935N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
278N/A
354N/Ainclude ../../make-rules/depend.mk
493N/A
278N/A