Makefile revision 844
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# CDDL HEADER START
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# The contents of this file are subject to the terms of the
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# Common Development and Distribution License (the "License").
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# You may not use this file except in compliance with the License.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# or http://www.opensolaris.org/os/licensing.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# See the License for the specific language governing permissions
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# and limitations under the License.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# When distributing Covered Code, include this CDDL HEADER in each
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# If applicable, add the following below this CDDL HEADER, with the
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# CDDL HEADER END
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncinclude ../../make-rules/shared-macros.mk
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCOMPONENT_NAME= quagga
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCOMPONENT_VERSION= 0.99.19
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncIPS_COMPONENT_VERSION= $(COMPONENT_VERSION)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCOMPONENT_PROJECT_URL= http://www.quagga.net/
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCOMPONENT_ARCHIVE_HASH= \
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync sha256:bc5052d285af6e7aac42984741e74261637c57c4a02032bf05de7a5ea3a1afe0
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncPATCH_LEVEL = 0
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# without this we bus error on sparc. Until the code in all of Quagga
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# does not have any misaligned code we will need the following flag.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncstudio_ALIGN.sparc.32= -xmemalign=8i
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# These options are carried over from the SFW consolidation. Using -xO4 was
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync# explicitly commented out, but no reason was documented.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncstudio_OPT = -xO3
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncLDFLAGS +=-lumem
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCFGLOCALSTATEDIR=/system/volatile/quagga
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCFGSYSCONFDIR= $(ETCDIR)/quagga
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCFLAGS += -xspace -Xa
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCFLAGS += -g -xdebugformat=dwarf -O
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCFLAGS += -errtags=yes -xc99=%all
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCFLAGS += -erroff=E_TRAILING_COMMA_IN_ENUM
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCFLAGS += -erroff=E_STATEMENT_NOT_REACHED
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCFLAGS += -erroff=E_EMPTY_TRANSLATION_UNIT
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncinclude ../../make-rules/prep.mk
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncinclude ../../make-rules/configure.mk
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncinclude ../../make-rules/ips.mk
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --with-cflags="$(CFLAGS)"
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --enable-opaque-lsa
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --localstatedir=$(CFGLOCALSTATEDIR)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --sysconfdir=$(CFGSYSCONFDIR)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --enable-isisd
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --enable-trill
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --disable-watchquagga
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --enable-ospf6d
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --enable-ripngd
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --enable-user=root
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --enable-group=root
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONFIGURE_OPTIONS += --enable-solaris
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncbuild: $(BUILD_32)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncinstall: $(INSTALL_32)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctest: $(NO_TESTS)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncinclude ../../make-rules/depend.mk
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync