components/rsyslog/Makefile
author John Beck <John.Beck@Oracle.COM>
Thu, 11 Apr 2013 10:55:54 -0700
changeset 1261 9aaa91c63cb9
parent 1095 e720196b46b2
child 1496 f774cfa29f53
permissions -rw-r--r--
16624964 enable 64-bit & ASLR for rsyslog
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
847
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
#
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
#
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
#
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
#
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    18
#
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
#
1095
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    21
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
847
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    22
#
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    25
COMPONENT_NAME=		rsyslog
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    26
COMPONENT_VERSION=	6.2.0
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_PROJECT_URL=	http://rsyslog.com/
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	sha256:f8869a1c25d0dd9ff04468743969ffc9ff89c6f7afa3046f77f91c3982543cc1
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1095
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    32
COMPONENT_BUGDB=	service/rsyslog
847
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    33
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    34
include ../../make-rules/prep.mk
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    35
include ../../make-rules/configure.mk
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    36
include ../../make-rules/ips.mk
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    37
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    38
COMPILER = gcc
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    39
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    40
# This is needed for things to be built correctly.
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    41
CONFIGURE_ENV +=	CFLAGS="$(CFLAGS)"
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    42
1261
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    43
# A normal 64-bit build would result in /usr/lib/$(MACH64)/rsyslog but since we
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    44
# have a self-contained eco-system, simplify things for customers and just use
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    45
# /usr/lib/rsyslog .
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    46
CONFIGURE_LIBDIR.64 =	$(CONFIGURE_LIBDIR.32)
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    47
847
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    48
CONFIGURE_OPTIONS +=    --enable-imsolaris
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    49
CONFIGURE_OPTIONS +=    --enable-mail
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    50
CONFIGURE_OPTIONS +=    --enable-gssapi_krb5
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    51
CONFIGURE_OPTIONS +=    --enable-gnutls
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    52
CONFIGURE_OPTIONS +=    --disable-klog
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    53
CONFIGURE_OPTIONS +=    --sbindir=/usr/lib/rsyslog
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    54
1261
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    55
ASLR_MODE = $(ASLR_ENABLE)
847
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    56
1261
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    57
# common targets
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    58
build:		$(BUILD_64)
847
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    59
1261
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    60
install:	$(INSTALL_64)
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    61
9aaa91c63cb9 16624964 enable 64-bit & ASLR for rsyslog
John Beck <John.Beck@Oracle.COM>
parents: 1095
diff changeset
    62
test:		$(TEST_64)
847
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    63
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    64
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    65
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    66
PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    67
4ae04177ffa1 PSARC 2012/197 rsyslog
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    68
include ../../make-rules/depend.mk