Makefile revision 5271
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# CDDL HEADER START
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# The contents of this file are subject to the terms of the
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Common Development and Distribution License (the "License").
4496171313bed39e96f21bc2f9faf2868e267ae3girish# You may not use this file except in compliance with the License.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4496171313bed39e96f21bc2f9faf2868e267ae3girish# or http://www.opensolaris.org/os/licensing.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# See the License for the specific language governing permissions
4496171313bed39e96f21bc2f9faf2868e267ae3girish# and limitations under the License.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# When distributing Covered Code, include this CDDL HEADER in each
4496171313bed39e96f21bc2f9faf2868e267ae3girish# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# If applicable, add the following below this CDDL HEADER, with the
4496171313bed39e96f21bc2f9faf2868e267ae3girish# fields enclosed by brackets "[]" replaced with your own identifying
4496171313bed39e96f21bc2f9faf2868e267ae3girish# information: Portions Copyright [yyyy] [name of copyright owner]
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# CDDL HEADER END
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
678453a8ed49104d8adad58f3ba591bdc39883e8speer
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPILER = gcc
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishinclude ../../make-rules/shared-macros.mk
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPONENT_NAME= augeas
6f45ec7b0b964c3be967c4880e8867ac1e7763a5mlCOMPONENT_VERSION= 1.3.0
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPONENT_PROJECT_URL= http://www.augeas.net/
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPONENT_ARCHIVE_HASH= \
4496171313bed39e96f21bc2f9faf2868e267ae3girish sha256:80763031af76515a8ea66013ddc3c466742a15d2e907c7c8e2e3b7410262e2af
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPONENT_ARCHIVE_URL= http://download.augeas.net/$(COMPONENT_ARCHIVE)
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPONENT_BUGDB= utility/augeas
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishTPNO= 21660
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishinclude $(WS_MAKE_RULES)/prep.mk
4496171313bed39e96f21bc2f9faf2868e267ae3girishinclude $(WS_MAKE_RULES)/configure.mk
4496171313bed39e96f21bc2f9faf2868e267ae3girishinclude $(WS_MAKE_RULES)/ips.mk
6f45ec7b0b964c3be967c4880e8867ac1e7763a5ml
6f45ec7b0b964c3be967c4880e8867ac1e7763a5mlCONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
6f45ec7b0b964c3be967c4880e8867ac1e7763a5ml
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPONENT_PRE_CONFIGURE_ACTION = \
6f45ec7b0b964c3be967c4880e8867ac1e7763a5ml ($(CLONEY) $(SOURCE_DIR) $(@D))
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishCONFIGURE_PREFIX = /usr
4496171313bed39e96f21bc2f9faf2868e267ae3girishCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
4496171313bed39e96f21bc2f9faf2868e267ae3girishCONFIGURE_OPTIONS += --disable-dependency-tracking
4496171313bed39e96f21bc2f9faf2868e267ae3girishCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPONENT_TEST_ARGS = -k
4496171313bed39e96f21bc2f9faf2868e267ae3girishCOMPONENT_TEST_TRANSFORMS += \
4496171313bed39e96f21bc2f9faf2868e267ae3girish '-n ' \
4496171313bed39e96f21bc2f9faf2868e267ae3girish '-e "/passed/p" ' \
4496171313bed39e96f21bc2f9faf2868e267ae3girish '-e "/failed/p" ' \
4496171313bed39e96f21bc2f9faf2868e267ae3girish '-e "/Checks:/p" ' \
4496171313bed39e96f21bc2f9faf2868e267ae3girish '-e "/Total:/p" ' \
4496171313bed39e96f21bc2f9faf2868e267ae3girish '-e "/Passed/p" ' \
4496171313bed39e96f21bc2f9faf2868e267ae3girish '-e "/Failed/p" ' \
4496171313bed39e96f21bc2f9faf2868e267ae3girish '-e "/Failure expected/p" ' \
4496171313bed39e96f21bc2f9faf2868e267ae3girish '-e "/SKIP/p" ' \
4496171313bed39e96f21bc2f9faf2868e267ae3girish '-e "/PASS/p" ' \
6f45ec7b0b964c3be967c4880e8867ac1e7763a5ml '-e "/FAIL/p" '
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Fixes coredump in gnulib-test/test-localename test
4496171313bed39e96f21bc2f9faf2868e267ae3girishCONFIGURE_OPTIONS += ac_cv_func_newlocale=no
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishASLR_MODE = $(ASLR_ENABLE)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Needed for "gmake test" to work.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# SHELLOPTS is exported via make-rules/shared-macros.mk,
4496171313bed39e96f21bc2f9faf2868e267ae3girish# causing the braceexpand option to be set.
6f45ec7b0b964c3be967c4880e8867ac1e7763a5ml# This option causes "$1: unbound variable" errors during the check-TESTS,
6f45ec7b0b964c3be967c4880e8867ac1e7763a5ml# and the gnulib-tests don't even run at all.
678453a8ed49104d8adad58f3ba591bdc39883e8speer# Note that the below unexports SHELLOPTS, even for targets
4496171313bed39e96f21bc2f9faf2868e267ae3girish# other than "test."
4496171313bed39e96f21bc2f9faf2868e267ae3girishunexport SHELLOPTS
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish# common targets
4496171313bed39e96f21bc2f9faf2868e267ae3girishconfigure: $(CONFIGURE_64)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishbuild: $(BUILD_64)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishinstall: $(INSTALL_64)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishtest: $(TEST_64)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishREQUIRED_PACKAGES += system/library
4496171313bed39e96f21bc2f9faf2868e267ae3girishREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
4496171313bed39e96f21bc2f9faf2868e267ae3girishREQUIRED_PACKAGES += library/libxml2
4496171313bed39e96f21bc2f9faf2868e267ae3girishREQUIRED_PACKAGES += library/readline
4496171313bed39e96f21bc2f9faf2868e267ae3girishREQUIRED_PACKAGES += library/ncurses
4496171313bed39e96f21bc2f9faf2868e267ae3girish