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