Makefile revision 906
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# CDDL HEADER START
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# The contents of this file are subject to the terms of the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Common Development and Distribution License (the "License").
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# You may not use this file except in compliance with the License.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# or http://www.opensolaris.org/os/licensing.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# See the License for the specific language governing permissions
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# and limitations under the License.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# When distributing Covered Code, include this CDDL HEADER in each
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# If applicable, add the following below this CDDL HEADER, with the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# fields enclosed by brackets "[]" replaced with your own identifying
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# information: Portions Copyright [yyyy] [name of copyright owner]
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# CDDL HEADER END
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
32ff2b3c67debc0dc66e07986e072d489ea88322Julian Pullen# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
32ff2b3c67debc0dc66e07986e072d489ea88322Julian Pullen
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinclude ../../make-rules/shared-macros.mk
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_NAME= openscap
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_VERSION= 0.8.1
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_PROJECT_URL= http://www.open-scap.org/
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_ARCHIVE_HASH= sha256:3365a5f4e7535e5f7134fdf386d4bd35d9b98f61d185be67606e946dc62efedc
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPILER= gcc
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCFLAGS+= -std=c99 -DNDEBUG
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinclude $(WS_TOP)/make-rules/prep.mk
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinclude $(WS_TOP)/make-rules/configure.mk
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinclude $(WS_TOP)/make-rules/ips.mk
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCPPFLAGS += "-I/usr/include/openldap"
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Perl related patch needs configure script recreation.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Needed to make "gmake test" work.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCPPFLAGS += "-I$(SOURCE_DIR)/src/OVAL"
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCPPFLAGS += "-I$(SOURCE_DIR)/src/OVAL/probes"
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCPPFLAGS += "-I/usr/include/pcre"
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCONFIGURE_OPTIONS += --enable-debug=no
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl -lldap_r"
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# common targets
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwbuild: $(BUILD_32)
32ff2b3c67debc0dc66e07986e072d489ea88322Julian Pullen
32ff2b3c67debc0dc66e07986e072d489ea88322Julian Pulleninstall: $(INSTALL_32)
32ff2b3c67debc0dc66e07986e072d489ea88322Julian Pullen
32ff2b3c67debc0dc66e07986e072d489ea88322Julian Pullentest: $(TEST_32)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
32ff2b3c67debc0dc66e07986e072d489ea88322Julian PullenBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwinclude $(WS_TOP)/make-rules/depend.mk
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw