Makefile revision 1179
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# CDDL HEADER START
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# The contents of this file are subject to the terms of the
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Common Development and Distribution License (the "License").
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# You may not use this file except in compliance with the License.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c58f1213e628a545081c70e26c6b67a841cff880vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# or http://www.opensolaris.org/os/licensing.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# See the License for the specific language governing permissions
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# and limitations under the License.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# When distributing Covered Code, include this CDDL HEADER in each
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# If applicable, add the following below this CDDL HEADER, with the
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# CDDL HEADER END
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncinclude ../../make-rules/shared-macros.mk
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncCOMPONENT_NAME= openscap
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncCOMPONENT_VERSION= 0.8.1
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_PROJECT_URL= http://www.open-scap.org/
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_ARCHIVE_HASH= sha256:3365a5f4e7535e5f7134fdf386d4bd35d9b98f61d185be67606e946dc62efedc
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPILER= gcc
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCFLAGS+= -std=c99 -DNDEBUG
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude $(WS_TOP)/make-rules/prep.mk
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude $(WS_TOP)/make-rules/configure.mk
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncinclude $(WS_TOP)/make-rules/ips.mk
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCPPFLAGS += "-I/usr/include/openldap"
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync# Perl related patch needs configure script recreation.
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Needed to make "gmake test" work.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCPPFLAGS += "-I$(SOURCE_DIR)/src/OVAL"
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCPPFLAGS += "-I$(SOURCE_DIR)/src/OVAL/probes"
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCPPFLAGS += "-I/usr/include/pcre"
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS += --enable-debug=no
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncCONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl -lldap_r"
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# common targets
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncbuild: $(BUILD_32)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinstall: $(INSTALL_32)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsynctest: $(TEST_32)
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude $(WS_TOP)/make-rules/depend.mk
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync