Makefile revision 3661
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# or http://www.opensolaris.org/os/licensing.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/shared-macros.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_NAME= openscap
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_VERSION= 1.0.0
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_PROJECT_URL= http://www.open-scap.org
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_DOWNLOAD_URL= https://fedorahosted.org/releases/o/p/openscap
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE_HASH= sha256:47105500b8b3d80cdf07b277bfab59091de5eadb16d97d27ee663bfbee58cb76
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_BUGDB= utility/openscap
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwTPNO= 16560
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPILER= gcc3
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCFLAGS+= -std=c99
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCFLAGS+= -DNDEBUG
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCFLAGS+= -DOSCAP_THREAD_SAFE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude $(WS_TOP)/make-rules/prep.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude $(WS_TOP)/make-rules/configure.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude $(WS_TOP)/make-rules/ips.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCPPFLAGS += -I/usr/include/openldap
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#Need to do cloney, so that the schema files
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#can get packaged.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_PRE_CONFIGURE_ACTION = \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw ($(CLONEY) $(SOURCE_DIR) $(@D))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Perl related patch needs configure script recreation.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Needed to make "gmake test" work.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCPPFLAGS += -I$(SOURCE_DIR)/src/OVAL
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCPPFLAGS += -I/usr/include/pcre
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += --enable-debug=no
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += --enable-sce=yes
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += --enable-perl=yes
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl -lldap_r -lscf -ldlpi -lsec -lzonecfg"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCONFIGURE_OPTIONS += --with-report-branding="/usr/share/lib/xml/style/os-logo.xsl"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwDOCS_DIR = $(PROTO_DIR)/usr/share/docs/openscap/html/
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# common targets
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwbuild: $(BUILD_32)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinstall: $(INSTALL_32)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(MKDIR) $(DOCS_DIR)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(CP) $(SOURCE_DIR)/docs/html/* $(DOCS_DIR)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwtest: $(TEST_32)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude $(WS_TOP)/make-rules/depend.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw