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