Makefile revision 2473
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
16dd44c265271a75647fb0bb41109bb7c585a526Daniel Beauregard# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
93c20f2609342fd05f6625f16dfcb9348e7977f2Sukumar Swaminathaninclude ../../make-rules/shared-macros.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
93c20f2609342fd05f6625f16dfcb9348e7977f2Sukumar SwaminathanCOMPONENT_NAME= openscap
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_VERSION= 1.0.0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PROJECT_URL= http://www.open-scap.org
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_DOWNLOAD_URL= https://fedorahosted.org/releases/o/p/openscap
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_HASH= sha256:47105500b8b3d80cdf07b277bfab59091de5eadb16d97d27ee663bfbee58cb76
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_BUGDB= utility/openscap
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPILER= gcc3
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCFLAGS+= -std=c99
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCFLAGS+= -DNDEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCFLAGS+= -DOSCAP_THREAD_SAFE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(WS_TOP)/make-rules/prep.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(WS_TOP)/make-rules/configure.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(WS_TOP)/make-rules/ips.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCPPFLAGS += -I/usr/include/openldap
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#Need to do cloney, so that the schema files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#can get packaged.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PRE_CONFIGURE_ACTION = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ($(CLONEY) $(SOURCE_DIR) $(@D))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Perl related patch needs configure script recreation.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Needed to make "gmake test" work.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCPPFLAGS += -I$(SOURCE_DIR)/src/OVAL
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes
93c20f2609342fd05f6625f16dfcb9348e7977f2Sukumar SwaminathanCPPFLAGS += -I/usr/include/pcre
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --enable-debug=no
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --enable-sce=yes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --enable-perl=yes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl -lldap_r -lscf -ldlpi -lsec"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --with-report-branding="/usr/share/lib/xml/style/os-logo.xsl"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# common targets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortebuild: $(BUILD_32)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall: $(INSTALL_32)
5dfd244acc8f144280c5bc8f69ed941185fc3cccDaniel Beauregard
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetest: $(TEST_32)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(WS_TOP)/make-rules/depend.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte