Makefile revision 3477
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott#
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# CDDL HEADER START
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott#
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# The contents of this file are subject to the terms of the
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# Common Development and Distribution License (the "License").
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# You may not use this file except in compliance with the License.
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott#
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# or http://www.opensolaris.org/os/licensing.
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# See the License for the specific language governing permissions
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# and limitations under the License.
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott#
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# When distributing Covered Code, include this CDDL HEADER in each
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# If applicable, add the following below this CDDL HEADER, with the
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# fields enclosed by brackets "[]" replaced with your own identifying
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# information: Portions Copyright [yyyy] [name of copyright owner]
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott#
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# CDDL HEADER END
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott#
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott#
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshottinclude ../../make-rules/shared-macros.mk
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCOMPONENT_NAME= gdbm
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCOMPONENT_VERSION= 1.8.3
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCOMPONENT_PROJECT_URL= http://www.gnu.org/software/gdbm/
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCOMPONENT_ARCHIVE_HASH= \
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott sha256:cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a281dc9
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCOMPONENT_ARCHIVE_URL= ftp://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCOMPONENT_BUGDB= library/libgdbm
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottTPNO= 8440
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshottinclude ../../make-rules/prep.mk
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshottinclude ../../make-rules/configure.mk
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshottinclude ../../make-rules/ips.mk
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCONFIGURE_OPTIONS += --disable-static
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCONFIGURE_OPTIONS += --enable-shared
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCOMPONENT_INSTALL_ENV += INSTALL_ROOT="$(PROTO_DIR)"
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottASLR_MODE = $(ASLR_NOT_APPLICABLE)
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# common targets
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshottconfigure: $(CONFIGURE_32_and_64)
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshottbuild: $(BUILD_32_and_64)
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshottinstall: $(INSTALL_32_and_64)
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# The tests build but they are not run automatically. You have to
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# manually run the tests (testdbm, testgdbm, etc) by hand and verify
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott# the DB operations.
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottCOMPONENT_TEST_TARGETS = progs
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshotttest: $(TEST_32_and_64)
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert WapshottBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshottinclude ../../make-rules/depend.mk
13588d95d6459633b746c603dbadd0e58fdc741dRobert Wapshott