Makefile revision 5171
5088N/A#
5088N/A# CDDL HEADER START
5088N/A#
5088N/A# The contents of this file are subject to the terms of the
5088N/A# Common Development and Distribution License (the "License").
5088N/A# You may not use this file except in compliance with the License.
5088N/A#
5088N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5088N/A# or http://www.opensolaris.org/os/licensing.
5088N/A# See the License for the specific language governing permissions
5088N/A# and limitations under the License.
5088N/A#
5088N/A# When distributing Covered Code, include this CDDL HEADER in each
5088N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5088N/A# If applicable, add the following below this CDDL HEADER, with the
5088N/A# fields enclosed by brackets "[]" replaced with your own identifying
5088N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5088N/A#
5088N/A# CDDL HEADER END
5088N/A#
5088N/A#
5088N/A
5088N/A#
5088N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
5088N/A#
5088N/A
5090N/A# parfait fails to compile us (22221056)
5090N/Aexport PARFAIT_BUILD=no
5090N/A
5088N/Ainclude ../../make-rules/shared-macros.mk
5088N/A
5088N/ACOMPONENT_NAME= openvswitch
5088N/ACOMPONENT_VERSION= 2.3.1
5088N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5088N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5088N/ACOMPONENT_ARCHIVE_HASH= \
5088N/A sha256:d6d96e45fd9c070cc2696a4a09b4cc4b48dd7fc367c0455725d00f7daa343bf0
5088N/ACOMPONENT_PROJECT_URL= http://openvswitch.org/
5088N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_ARCHIVE)
5088N/ACOMPONENT_BUGDB= service/openvswitch
5088N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION)
5088N/A
5088N/ATPNO= 21407
5088N/A
5088N/Ainclude ../../make-rules/prep.mk
5088N/Ainclude ../../make-rules/configure.mk
5171N/A
5171N/A# Depends on S12-only changes in ON to build.
5171N/Aifeq ($(BUILD_TYPE), evaluation)
5171N/ABUILD_64=
5171N/AINSTALL_64=
5171N/APUBLISH_STAMP=
5171N/Aendif
5171N/A
5088N/Ainclude ../../make-rules/ips.mk
5088N/Ainclude ../../make-rules/lint-libraries.mk
5088N/A
5088N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
5088N/APKG_PROTO_DIRS += $(BUILD_DIR_64)
5088N/A
5088N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
5088N/A
5088N/ACOMPONENT_PRE_CONFIGURE_ACTION += \
5088N/A ($(LN) -fs $(COMPONENT_DIR)/files/include/solaris $(SOURCE_DIR)/include/solaris; \
5088N/A $(LN) -fs $(COMPONENT_DIR)/files/lib/* $(SOURCE_DIR)/lib; \
5088N/A cd $(SOURCE_DIR); $(SOURCE_DIR)/boot.sh)
5088N/A
5088N/ACOMPILER = gcc
5088N/A
5088N/ACONFIGURE_PREFIX = /usr/lib/ovs
5088N/A
5088N/ACONFIGURE_OPTIONS += --mandir=/usr/share/man
5088N/ACONFIGURE_OPTIONS += --localstatedir=/var/run/ovs
5088N/ACONFIGURE_OPTIONS += --bindir=/usr/sbin
5088N/ACONFIGURE_OPTIONS += --sbindir=/usr/lib/ovs
5088N/ACONFIGURE_OPTIONS += --with-logdir=/var/log/ovs
5088N/ACONFIGURE_OPTIONS += --with-rundir=/var/run/ovs/
5088N/ACONFIGURE_OPTIONS += --with-dbdir=/var/lib/ovs/etc
5088N/ACONFIGURE_OPTIONS += --datarootdir=/usr/lib/ovs/share
5088N/A
5088N/A# Enable aslr for this component
5088N/AASLR_MODE = $(ASLR_ENABLE)
5088N/A
5088N/ACOMPONENT_PRE_BUILD_ACTION = \
5088N/A ($(LN) -fs $(COMPONENT_DIR)/files/include/solaris $(SOURCE_DIR)/include/solaris)
5088N/A
5088N/ACOMPONENT_TEST_TRANSFORMS += \
5088N/A '-e "s|^tests/pki/test-req.pem.*||g" ' \
5088N/A '-e "s|^tests/pki/test2-req.pem.*||g" ' \
5088N/A '-e "s|^.*fingerprint.*||g" '
5088N/A
5088N/ACOMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
5088N/A
5088N/A# common targets
5088N/Aconfigure: $(CONFIGURE_64)
5088N/A
5088N/Abuild: $(BUILD_64)
5088N/A
5088N/Ainstall: $(INSTALL_64)
5088N/A
5088N/Atest: $(TEST_64)
5088N/A
5088N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
5088N/A
5088N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5088N/A
5088N/AREQUIRED_PACKAGES += library/security/openssl
5088N/AREQUIRED_PACKAGES += runtime/python-27
5088N/AREQUIRED_PACKAGES += shell/ksh93
5088N/AREQUIRED_PACKAGES += system/core-os
5088N/AREQUIRED_PACKAGES += system/library
5088N/AREQUIRED_PACKAGES += system/library/math
5088N/AREQUIRED_PACKAGES += system/management/rad
5088N/AREQUIRED_PACKAGES += system/management/rad/client/rad-c
5088N/AREQUIRED_PACKAGES += system/management/rad/client/rad-python
5088N/AREQUIRED_PACKAGES += system/network