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