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