Makefile revision 2232
1450N/A#
1450N/A# CDDL HEADER START
1450N/A#
1450N/A# The contents of this file are subject to the terms of the
1450N/A# Common Development and Distribution License (the "License").
1450N/A# You may not use this file except in compliance with the License.
1450N/A#
1450N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1450N/A# or http://www.opensolaris.org/os/licensing.
1450N/A# See the License for the specific language governing permissions
1450N/A# and limitations under the License.
1450N/A#
1450N/A# When distributing Covered Code, include this CDDL HEADER in each
1450N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1450N/A# If applicable, add the following below this CDDL HEADER, with the
1450N/A# fields enclosed by brackets "[]" replaced with your own identifying
1450N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1450N/A#
1450N/A# CDDL HEADER END
1450N/A
1450N/A#
1450N/A# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
1450N/A#
1450N/A
1450N/Ainclude ../../make-rules/shared-macros.mk
1450N/A
1450N/ACOMPONENT_NAME= openscap
1450N/ACOMPONENT_VERSION= 0.9.7
1450N/ACOMPONENT_PROJECT_URL= http://www.open-scap.org
1450N/ACOMPONENT_DOWNLOAD_URL= https://fedorahosted.org/releases/o/p/openscap
1450N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1450N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1450N/ACOMPONENT_ARCHIVE_HASH= sha256:0d9ae804026d69e60d44e27cf489e65dd1c2865895cde2cb174ff90fd7868a6a
1450N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
1450N/ACOMPONENT_BUGDB= utility/openscap
1450N/A
1450N/ACOMPILER = gcc
1450N/A# Parfait doesn't work with the GNU 4.7 compilers yet.
1450N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
1450N/ACOMPILER = gcc3
1450N/Aendif
1450N/ACFLAGS+= -std=c99
1450N/ACFLAGS+= -DNDEBUG
1450N/A
1450N/Ainclude $(WS_TOP)/make-rules/prep.mk
1450N/Ainclude $(WS_TOP)/make-rules/configure.mk
1450N/Ainclude $(WS_TOP)/make-rules/ips.mk
1450N/A
1450N/ACPPFLAGS += -I/usr/include/openldap
1450N/A
1450N/A#Need to do cloney, so that the schema files
1450N/A#can get packaged.
1450N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1450N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1450N/A
1450N/A# Perl related patch needs configure script recreation.
1450N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
1450N/A
1450N/A# Needed to make "gmake test" work.
1450N/ACPPFLAGS += -I$(SOURCE_DIR)/src/OVAL
1450N/ACPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes
1450N/ACPPFLAGS += -I/usr/include/pcre
1450N/A
1450N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1450N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
1450N/ACONFIGURE_OPTIONS += --enable-debug=no
1450N/ACONFIGURE_OPTIONS += --enable-sce=yes
1450N/ACONFIGURE_OPTIONS += --enable-perl=yes
1450N/ACONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
1450N/ACONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
1450N/ACONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
1450N/ACONFIGURE_OPTIONS += LIBS="-lldap_r -lscf -ldlpi -lsec"
1450N/ACONFIGURE_OPTIONS += --with-report-branding="/usr/share/lib/xml/style/os-logo.xsl"
1450N/A
1450N/A# common targets
1450N/Abuild: $(BUILD_32)
1450N/A
1450N/Ainstall: $(INSTALL_32)
1450N/A
1450N/Atest: $(TEST_32)
1450N/A
1450N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1450N/A
1450N/Ainclude $(WS_TOP)/make-rules/depend.mk
1450N/A