Makefile revision 6302
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_HASH= sha256:9ed6615a8503964290471e98ed363f3975b964a34c2d4610fb815a432aadaf59
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The documentation is in a separate download
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SRC_DOC= $(COMPONENT_NAME)-doc-$(COMPONENT_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_DOC= $(COMPONENT_SRC_DOC).tar.gz
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_HASH_DOC= sha256:3462402165a3ff34ceff23db20382a14bd3727131994f140a004f4872a01c12a
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE_URL_DOC= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE_DOC)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# There are tests, but gmake test is currently broken.
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# It was working in the previous version, but not sure why
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# it breaks now. Leaving it at no tests for now.
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Automake fix, regenerates configure file to get rid of the
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# automake 'probably too old' error. This fixes gmake test
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# needing more than one try to run. This does not fix the
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# fact that gmake test runs no tests.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_PRE_CONFIGURE_ACTION= cd $(SOURCE_DIR); \
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# gmake test will generate different outputs if run multiple
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# times. This gets rid of all the unimportant output
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCOMPONENT_TEST_TRANSFORMS += '-e "/\(CC\).*/d" '
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCOMPONENT_TEST_TRANSFORMS += '-e "/\(make\).*/d" '
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_TEST_TRANSFORMS += '-e "/\(source\).*/d" '
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_TEST_TRANSFORMS += '-e "/\(check\).*/d" '
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_TEST_TRANSFORMS += '-e "/\(usr\).*/d" '
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_TEST_TRANSFORMS += '-e "/\(SOURCE_DIR\).*/d" '
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# This is needed for things to be built correctly.
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# A normal 64-bit build would result in /usr/lib/$(MACH64)/rsyslog but since we
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# have a self-contained eco-system, simplify things for customers and just use
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Rsyslog sources contain __FILE__ macros which contain full path to the workspace
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This may appear in debug output which is not nice. By specifying the source
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# path relative we force the macro to be relative path too.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --srcdir=../../$(COMPONENT_NAME)-$(COMPONENT_VERSION)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/rsyslog
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# libgcrypt is not approved.
2b4d1b54f6ca406b8233d9e6fea9593df6dad035Tinderbox User# There are man pages in the tarball, which will require modification for
2b4d1b54f6ca406b8233d9e6fea9593df6dad035Tinderbox User# content. Also, building them from here requires python-docutils.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --disable-generate-man-pages
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Make the build verbose, show executed commands
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# common targets
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserPROTODOCDIR= $(PROTOUSRSHAREDOCDIR)/$(COMPONENT_NAME)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Docs to install are the tree under docs/build with some exceptions.