components/berkeleydb/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 29 Aug 2012 11:05:56 -0700
changeset 957 255465c5756f
parent 800 2ad056ed89ec
child 1048 e82fa02a4d16
child 2434 6c9bb5cf5610
permissions -rw-r--r--
Close of build 04.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
460
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     1
#
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     3
#
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     7
#
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    12
#
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    18
#
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    20
#
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    21
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    22
#
751
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 609
diff changeset
    23
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
460
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    24
#
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    25
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    27
751
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 609
diff changeset
    28
PATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 609
diff changeset
    29
460
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    30
COMPONENT_NAME=		db
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    31
COMPONENT_VERSION=	5.1.25
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 460
diff changeset
    32
COMPONENT_PROJECT_URL=	http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html
460
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    33
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 751
diff changeset
    35
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 751
diff changeset
    36
    sha256:72eac5fcae4b51b0f1edc727c0368407f29b42e3f2f50ebc31a282d0d6c0a617
460
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    37
COMPONENT_ARCHIVE_URL=	http://download.oracle.com/berkeley-db/$(COMPONENT_ARCHIVE)
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    38
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/prep.mk
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/configure.mk
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    41
include ../../make-rules/ips.mk
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    42
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    43
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    44
COMPONENT_PRE_CONFIGURE_ACTION = \
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    45
        ($(CLONEY) $(SOURCE_DIR) $(@D))
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    46
COMPONENT_POST_TEST_ACTION = \
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    47
        (cd $(@D); \
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    48
        echo "source test/tcl/test.tcl" > $(@D)/run_bdb.tcl; \
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    49
        echo "$(RUN)" >> $(@D)/run_bdb.tcl; \
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    50
        cd $(@D); \
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    51
        ulimit -n 1024; $(ENV) /usr/bin/tclsh run_bdb.tcl)
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    52
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    53
CONFIGURE_SCRIPT = dist/configure
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    54
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    55
# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    56
CXX +=	$(studio_NORUNPATH)
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    57
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    58
# we need to enable large file support and build PIC for our shared libraries
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    59
CFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    60
CXXFLAGS += $(CPP_LARGEFILES)
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    61
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    62
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    63
CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    64
CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    65
CONFIGURE_ENV += JAVA_HOME="$(JAVA_HOME)"
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    66
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    67
CONFIGURE_OPTIONS += --includedir=/usr/include
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    68
CONFIGURE_OPTIONS += --enable-shared
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    69
CONFIGURE_OPTIONS += --disable-static
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    70
CONFIGURE_OPTIONS += --enable-cxx
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --enable-java
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    72
CONFIGURE_OPTIONS += --enable-sql
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    73
CONFIGURE_OPTIONS += --enable-sql_codegen
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    74
CONFIGURE_OPTIONS += --enable-jdbc
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    75
CONFIGURE_OPTIONS += --enable-tcl
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    76
CONFIGURE_OPTIONS += --with-tcl=/usr/lib
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    77
CONFIGURE_OPTIONS += --enable-dbm
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    78
CONFIGURE_OPTIONS += $(configure_test)
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    79
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    80
COMPONENT_TEST_TARGETS = test
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    81
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    82
$(BUILD_DIR)/%/.tested: configure_test= --enable-test
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    83
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    84
# common targets
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    85
build:		$(BUILD_32_and_64)
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    86
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    87
install:	$(INSTALL_32_and_64)
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    88
		$(CP) berkeleydb.license $(PROTOUSRDIR)/docs/LICENSE
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    89
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    90
test:		$(TEST_32_and_64) 
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    91
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    92
# By default "gmake test" runs standard tests, takes ~6 hrs (default).
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    93
RUN=run_std
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    94
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    95
# Run all tests, takes ~3 days from command line using 
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    96
# "gmake test RUN=run_all"
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    97
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    98
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    99
aded0f0f9594 6961461 Integrate Berkeley DB into Solaris
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
   100
include ../../make-rules/depend.mk