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