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