components/quagga/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 4339 6501cf9c29f9
child 7687 1093e2a9adbd
permissions -rw-r--r--
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh 22228656 remove redundant declarations and additions from makefiles 22252545 simplify build rules for components from common upstream 22378457 tclConfig.sh compiler settings are too specific 22727315 httping curses gui missing 22750630 procmail ignores userland cflags and may use private strstr function 22758725 wdiff uses diff from PATH instead of /usr/gnu/bin/diff 22926847 cloog Makefile typo when setting ASLR_MODE 22935090 tk config script has wrong linker flags

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
#
BUILD_BITS= 32
include ../../make-rules/shared-macros.mk

COMPONENT_NAME=		quagga
COMPONENT_VERSION=	0.99.19
IPS_COMPONENT_VERSION=	$(COMPONENT_VERSION)
COMPONENT_PROJECT_URL=	http://www.quagga.net/
COMPONENT_ARCHIVE_HASH=	\
    sha256:bc5052d285af6e7aac42984741e74261637c57c4a02032bf05de7a5ea3a1afe0
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
COMPONENT_BUGDB=	service/quagga

TPNO=			9106

PATCH_LEVEL = 0

# without this we bus error on sparc. Until the code in all of Quagga
# does not have any misaligned code we will need the following flag.
studio_ALIGN.sparc.32=  -xmemalign=8i

# These options are carried over from the SFW consolidation. Using -xO4 was
# explicitly commented out, but no reason was documented.

studio_OPT = -xO3

LDFLAGS += -lumem
CFGLOCALSTATEDIR=/system/volatile/quagga
CFGSYSCONFDIR=  $(ETCDIR)/quagga

CFLAGS.studio += -xspace -Xa
CFLAGS.studio += -g -xdebugformat=dwarf -O
CFLAGS.studio += -errtags=yes -xc99=%all
CFLAGS.studio += -erroff=E_TRAILING_COMMA_IN_ENUM
CFLAGS.studio += -erroff=E_STATEMENT_NOT_REACHED
CFLAGS.studio += -erroff=E_EMPTY_TRANSLATION_UNIT

TEST_TARGET= $(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk

CONFIGURE_OPTIONS +=	--enable-opaque-lsa
CONFIGURE_OPTIONS +=	--localstatedir=$(CFGLOCALSTATEDIR)
CONFIGURE_OPTIONS +=	--sysconfdir=$(CFGSYSCONFDIR)
CONFIGURE_OPTIONS +=	--includedir=$(CONFIGURE_INCLUDEDIR)
CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
CONFIGURE_OPTIONS +=	--enable-isisd
CONFIGURE_OPTIONS +=	--enable-trill
CONFIGURE_OPTIONS +=	--disable-watchquagga
CONFIGURE_OPTIONS +=	--enable-ospf6d
CONFIGURE_OPTIONS +=	--enable-ripngd
CONFIGURE_OPTIONS +=	--enable-user=root
CONFIGURE_OPTIONS +=	--enable-group=root
CONFIGURE_OPTIONS +=	--enable-solaris

REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/network