Makefile revision 844
8a718a0c547e256edabd2c91f77ed668d1dfc7f8Evan Hunt#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
29756974c585f616bb6e8233218cc385df9aeddbTinderbox User# You may not use this file except in compliance with the License.
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt#
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt# or http://www.opensolaris.org/os/licensing.
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt# See the License for the specific language governing permissions
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt# and limitations under the License.
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt#
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Hunt# When distributing Covered Code, include this CDDL HEADER in each
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Hunt# If applicable, add the following below this CDDL HEADER, with the
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt#
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt# CDDL HEADER END
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt#
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt#
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt# Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt#
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt
591389c7d44e5ca20c357627dd179772cfefaaccEvan Huntinclude ../../make-rules/shared-macros.mk
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt
591389c7d44e5ca20c357627dd179772cfefaaccEvan HuntCOMPONENT_NAME= quagga
591389c7d44e5ca20c357627dd179772cfefaaccEvan HuntCOMPONENT_VERSION= 0.99.19
591389c7d44e5ca20c357627dd179772cfefaaccEvan HuntIPS_COMPONENT_VERSION= $(COMPONENT_VERSION)
591389c7d44e5ca20c357627dd179772cfefaaccEvan HuntCOMPONENT_PROJECT_URL= http://www.quagga.net/
591389c7d44e5ca20c357627dd179772cfefaaccEvan HuntCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH= \
sha256:bc5052d285af6e7aac42984741e74261637c57c4a02032bf05de7a5ea3a1afe0
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
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 += -xspace -Xa
CFLAGS += -g -xdebugformat=dwarf -O
CFLAGS += -errtags=yes -xc99=%all
CFLAGS += -erroff=E_TRAILING_COMMA_IN_ENUM
CFLAGS += -erroff=E_STATEMENT_NOT_REACHED
CFLAGS += -erroff=E_EMPTY_TRANSLATION_UNIT
include ../../make-rules/prep.mk
include ../../make-rules/configure.mk
include ../../make-rules/ips.mk
CONFIGURE_OPTIONS += --with-cflags="$(CFLAGS)"
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
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(NO_TESTS)
include ../../make-rules/depend.mk