Makefile revision 2494
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# The contents of this file are subject to the terms of the
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Common Development and Distribution License (the "License").
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# You may not use this file except in compliance with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel# or http://www.opensolaris.org/os/licensing.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel# and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel# fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel# information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude ../../make-rules/shared-macros.mk
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelCOMPONENT_NAME= openscap
03831d35f7499c87d51205817c93e9a8d42c4baestevelCOMPONENT_VERSION= 1.0.0
03831d35f7499c87d51205817c93e9a8d42c4baestevelCOMPONENT_PROJECT_URL= http://www.open-scap.org
03831d35f7499c87d51205817c93e9a8d42c4baestevelCOMPONENT_DOWNLOAD_URL= https://fedorahosted.org/releases/o/p/openscap
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
03831d35f7499c87d51205817c93e9a8d42c4baestevelCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
03831d35f7499c87d51205817c93e9a8d42c4baestevelCOMPONENT_ARCHIVE_HASH= sha256:47105500b8b3d80cdf07b277bfab59091de5eadb16d97d27ee663bfbee58cb76
03831d35f7499c87d51205817c93e9a8d42c4baestevelCOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
03831d35f7499c87d51205817c93e9a8d42c4baestevelCOMPONENT_BUGDB= utility/openscap
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelCOMPILER = gcc
03831d35f7499c87d51205817c93e9a8d42c4baestevelCFLAGS+= -std=c99
03831d35f7499c87d51205817c93e9a8d42c4baestevelCFLAGS+= -DNDEBUG
03831d35f7499c87d51205817c93e9a8d42c4baestevelCFLAGS+= -DOSCAP_THREAD_SAFE
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude $(WS_TOP)/make-rules/prep.mk
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude $(WS_TOP)/make-rules/configure.mk
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude $(WS_TOP)/make-rules/ips.mk
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelCPPFLAGS += -I/usr/include/openldap
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#Need to do cloney, so that the schema files
#can get packaged.
COMPONENT_PRE_CONFIGURE_ACTION = \
($(CLONEY) $(SOURCE_DIR) $(@D))
# Perl related patch needs configure script recreation.
COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
# Needed to make "gmake test" work.
CPPFLAGS += -I$(SOURCE_DIR)/src/OVAL
CPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes
CPPFLAGS += -I/usr/include/pcre
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
CONFIGURE_OPTIONS += --enable-debug=no
CONFIGURE_OPTIONS += --enable-sce=yes
CONFIGURE_OPTIONS += --enable-perl=yes
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
CONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
CONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
CONFIGURE_OPTIONS += LIBS="-lldap_r -lscf -ldlpi -lsec"
CONFIGURE_OPTIONS += --with-report-branding="/usr/share/lib/xml/style/os-logo.xsl"
DOCS_DIR = $(PROTO_DIR)/usr/share/docs/openscap/html/
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
$(MKDIR) $(DOCS_DIR)
$(CP) $(SOURCE_DIR)/docs/html/* $(DOCS_DIR)
test: $(TEST_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk