components/liblogging/Makefile
author Petr Sumbera <petr.sumbera@oracle.com>
Wed, 05 Oct 2016 01:21:05 -0700
branchs11u3-sru
changeset 7090 49c102d793d0
parent 4450 423f06e4bc35
child 5682 94c0ca64c022
permissions -rw-r--r--
24698806 Upgrade Thunderbird to version 45.3.0 24802000 problem in TBIRD/MAILER
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4450
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
     1
#
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
     3
#
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
     7
#
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    12
#
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    18
#
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    20
#
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    21
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    22
#
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    23
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    24
#
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    25
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    27
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		liblogging
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_VERSION=	1.0.4
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.liblogging.org/
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    34
    sha256:aceb5d2aa8bdc771ff66f407f9adf4176b654db63e34a8605795b68be537b81c
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	\
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    36
    http://download.rsyslog.com/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    37
COMPONENT_BUGDB=	service/rsyslog
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    38
TPNO=			20535
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    39
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    41
include $(WS_MAKE_RULES)/configure.mk
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    43
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    44
# Means build only stdlog
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    45
CONFIGURE_OPTIONS +=    --disable-journal
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    46
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    47
# There are built man pages in the tarball, which we shall patch. Making them
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    48
# here would require python-docutils.
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    49
CONFIGURE_OPTIONS +=	--disable-man-pages
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    50
CONFIGURE_OPTIONS +=    --bindir=$(USRBINDIR)
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    51
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    52
# Set -m32 or -m64 correctly for 32 and 64 bit versions.
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    53
CC +=	$(CC_BITS)
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    54
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    55
ASLR_MODE = $(ASLR_ENABLE)
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    56
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    57
# common targets
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    58
build:		$(BUILD_32_and_64)
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    59
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    60
install:	$(INSTALL_32_and_64)
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    61
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    62
test:		$(NO_TESTS)
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    63
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    64
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    65
423f06e4bc35 PSARC/2014/388 rsyslog 8.4.2
James Chang <james.c.chang@Oracle.COM>
parents:
diff changeset
    66
REQUIRED_PACKAGES += system/library