Makefile revision 822
460N/A#
460N/A# CDDL HEADER START
460N/A#
460N/A# The contents of this file are subject to the terms of the
460N/A# Common Development and Distribution License (the "License").
460N/A# You may not use this file except in compliance with the License.
460N/A#
460N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
460N/A# or http://www.opensolaris.org/os/licensing.
460N/A# See the License for the specific language governing permissions
460N/A# and limitations under the License.
460N/A#
460N/A# When distributing Covered Code, include this CDDL HEADER in each
460N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
460N/A# If applicable, add the following below this CDDL HEADER, with the
460N/A# fields enclosed by brackets "[]" replaced with your own identifying
460N/A# information: Portions Copyright [yyyy] [name of copyright owner]
460N/A#
460N/A# CDDL HEADER END
460N/A#
460N/A
460N/A#
783N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
460N/A#
460N/A
460N/Ainclude ../../make-rules/shared-macros.mk
460N/A
783N/APATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
783N/A
460N/ACOMPONENT_NAME= db
460N/ACOMPONENT_VERSION= 5.1.25
618N/ACOMPONENT_PROJECT_URL= http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html
460N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
460N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
460N/ACOMPONENT_ARCHIVE_HASH= sha1:1a216821957ce910a269bf9916bf49aba0f08b4d
460N/ACOMPONENT_ARCHIVE_URL= http://download.oracle.com/berkeley-db/$(COMPONENT_ARCHIVE)
460N/A
460N/Ainclude ../../make-rules/prep.mk
460N/Ainclude ../../make-rules/configure.mk
460N/Ainclude ../../make-rules/ips.mk
460N/A
460N/A
460N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
460N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
460N/ACOMPONENT_POST_TEST_ACTION = \
460N/A (cd $(@D); \
460N/A echo "source test/tcl/test.tcl" > $(@D)/run_bdb.tcl; \
460N/A echo "$(RUN)" >> $(@D)/run_bdb.tcl; \
460N/A cd $(@D); \
460N/A ulimit -n 1024; $(ENV) /usr/bin/tclsh run_bdb.tcl)
460N/A
460N/ACONFIGURE_SCRIPT = dist/configure
460N/A
460N/A# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
460N/ACXX += $(studio_NORUNPATH)
460N/A
460N/A# we need to enable large file support and build PIC for our shared libraries
460N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
460N/ACXXFLAGS += $(CPP_LARGEFILES)
460N/A
460N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
460N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
460N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
460N/ACONFIGURE_ENV += JAVA_HOME="$(JAVA_HOME)"
460N/A
460N/ACONFIGURE_OPTIONS += --includedir=/usr/include
460N/ACONFIGURE_OPTIONS += --enable-shared
460N/ACONFIGURE_OPTIONS += --disable-static
460N/ACONFIGURE_OPTIONS += --enable-cxx
460N/ACONFIGURE_OPTIONS += --enable-java
460N/ACONFIGURE_OPTIONS += --enable-sql
460N/ACONFIGURE_OPTIONS += --enable-sql_codegen
460N/ACONFIGURE_OPTIONS += --enable-jdbc
460N/ACONFIGURE_OPTIONS += --enable-tcl
460N/ACONFIGURE_OPTIONS += --with-tcl=/usr/lib
460N/ACONFIGURE_OPTIONS += --enable-dbm
460N/ACONFIGURE_OPTIONS += $(configure_test)
460N/A
460N/ACOMPONENT_TEST_TARGETS = test
460N/A
460N/A$(BUILD_DIR)/%/.tested: configure_test= --enable-test
460N/A
460N/A# common targets
460N/Abuild: $(BUILD_32_and_64)
460N/A
460N/Ainstall: $(INSTALL_32_and_64)
460N/A $(CP) berkeleydb.license $(PROTOUSRDIR)/docs/LICENSE
460N/A
460N/Atest: $(TEST_32_and_64)
460N/A
460N/A# By default "gmake test" runs standard tests, takes ~6 hrs (default).
460N/ARUN=run_std
460N/A
460N/A# Run all tests, takes ~3 days from command line using
460N/A# "gmake test RUN=run_all"
460N/A
460N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
460N/A
460N/Ainclude ../../make-rules/depend.mk