Makefile revision 1265
cd348e325366620fe047edcc849e3c9424828599Peter Bray#
cd348e325366620fe047edcc849e3c9424828599Peter Bray# CDDL HEADER START
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco#
cd348e325366620fe047edcc849e3c9424828599Peter Bray# The contents of this file are subject to the terms of the
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Common Development and Distribution License (the "License").
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You may not use this file except in compliance with the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# or http://www.opensolaris.org/os/licensing.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# See the License for the specific language governing permissions
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# and limitations under the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# When distributing Covered Code, include this CDDL HEADER in each
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# If applicable, add the following below this CDDL HEADER, with the
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# fields enclosed by brackets "[]" replaced with your own identifying
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# information: Portions Copyright [yyyy] [name of copyright owner]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# CDDL HEADER END
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayinclude ../../make-rules/shared-macros.mk
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_NAME= openscap
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_VERSION= 0.8.1
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_PROJECT_URL= http://www.open-scap.org/
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos KoscoCOMPONENT_ARCHIVE_HASH= sha256:3365a5f4e7535e5f7134fdf386d4bd35d9b98f61d185be67606e946dc62efedc
cd348e325366620fe047edcc849e3c9424828599Peter BrayCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
cd348e325366620fe047edcc849e3c9424828599Peter BrayCOMPONENT_BUGDB= utility/openscap
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter BrayCOMPILER= gcc
cd348e325366620fe047edcc849e3c9424828599Peter BrayCFLAGS+= -std=c99 -DNDEBUG
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Brayinclude $(WS_TOP)/make-rules/prep.mk
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Koscoinclude $(WS_TOP)/make-rules/configure.mk
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayinclude $(WS_TOP)/make-rules/ips.mk
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCPPFLAGS += "-I/usr/include/openldap"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Perl related patch needs configure script recreation.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Needed to make "gmake test" work.
cd348e325366620fe047edcc849e3c9424828599Peter BrayCPPFLAGS += "-I$(SOURCE_DIR)/src/OVAL"
cd348e325366620fe047edcc849e3c9424828599Peter BrayCPPFLAGS += "-I$(SOURCE_DIR)/src/OVAL/probes"
cd348e325366620fe047edcc849e3c9424828599Peter BrayCPPFLAGS += "-I/usr/include/pcre"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos KoscoCONFIGURE_OPTIONS += --enable-debug=no
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos KoscoCONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl -lldap_r"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# common targets
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braybuild: $(BUILD_32)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayinstall: $(INSTALL_32)
cd348e325366620fe047edcc849e3c9424828599Peter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Braytest: $(TEST_32)
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter BrayBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Brayinclude $(WS_TOP)/make-rules/depend.mk
cd348e325366620fe047edcc849e3c9424828599Peter Bray