Makefile revision 2899
278N/A#
278N/A# CDDL HEADER START
278N/A#
278N/A# The contents of this file are subject to the terms of the
278N/A# Common Development and Distribution License (the "License").
278N/A# You may not use this file except in compliance with the License.
278N/A#
278N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
278N/A# or http://www.opensolaris.org/os/licensing.
278N/A# See the License for the specific language governing permissions
278N/A# and limitations under the License.
278N/A#
278N/A# When distributing Covered Code, include this CDDL HEADER in each
278N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
278N/A# If applicable, add the following below this CDDL HEADER, with the
278N/A# fields enclosed by brackets "[]" replaced with your own identifying
278N/A# information: Portions Copyright [yyyy] [name of copyright owner]
278N/A#
278N/A# CDDL HEADER END
278N/A
5680N/A#
278N/A# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/A
5680N/Ainclude ../../make-rules/shared-macros.mk
278N/A
278N/ACOMPONENT_NAME= openscap
278N/ACOMPONENT_VERSION= 1.0.0
4786N/ACOMPONENT_PROJECT_URL= http://www.open-scap.org
618N/ACOMPONENT_DOWNLOAD_URL= https://fedorahosted.org/releases/o/p/openscap
844N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4786N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4786N/ACOMPONENT_ARCHIVE_HASH= sha256:47105500b8b3d80cdf07b277bfab59091de5eadb16d97d27ee663bfbee58cb76
1258N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
278N/ACOMPONENT_BUGDB= utility/openscap
4786N/A
2899N/ATPNO= 16560
5680N/A
5680N/ACOMPILER = gcc
5680N/ACFLAGS+= -std=c99
5680N/ACFLAGS+= -DNDEBUG
278N/ACFLAGS+= -DOSCAP_THREAD_SAFE
4786N/A
4786N/Ainclude $(WS_TOP)/make-rules/prep.mk
5721N/Ainclude $(WS_TOP)/make-rules/configure.mk
4786N/Ainclude $(WS_TOP)/make-rules/ips.mk
278N/A
278N/ACPPFLAGS += -I/usr/include/openldap
278N/A
278N/A#Need to do cloney, so that the schema files
278N/A#can get packaged.
278N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
278N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
278N/A
278N/A# Perl related patch needs configure script recreation.
278N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
278N/A
278N/A# Needed to make "gmake test" work.
278N/ACPPFLAGS += -I$(SOURCE_DIR)/src/OVAL
278N/ACPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes
278N/ACPPFLAGS += -I/usr/include/pcre
278N/A
278N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
278N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
278N/ACONFIGURE_OPTIONS += --enable-debug=no
4786N/ACONFIGURE_OPTIONS += --enable-sce=yes
278N/ACONFIGURE_OPTIONS += --enable-perl=yes
1845N/ACONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
5680N/ACONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
5680N/ACONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
5680N/ACONFIGURE_OPTIONS += LIBS="-lldap_r -lscf -ldlpi -lsec"
1845N/ACONFIGURE_OPTIONS += --with-report-branding="/usr/share/lib/xml/style/os-logo.xsl"
278N/A
4786N/ADOCS_DIR = $(PROTO_DIR)/usr/share/docs/openscap/html/
4786N/A
4786N/A# common targets
4786N/Abuild: $(BUILD_32)
4786N/A
4786N/Ainstall: $(INSTALL_32)
4786N/A $(MKDIR) $(DOCS_DIR)
4786N/A $(CP) $(SOURCE_DIR)/docs/html/* $(DOCS_DIR)
4786N/A
4786N/Atest: $(TEST_32)
4786N/A
4786N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
4786N/A
4786N/Ainclude $(WS_TOP)/make-rules/depend.mk
4786N/A