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