Makefile revision 3032
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#
2321N/A# Copyright (c) 2012, 2014, 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
2410N/ACOMPONENT_VERSION= 1.0.0
1799N/ACOMPONENT_PROJECT_URL= http://www.open-scap.org
1799N/ACOMPONENT_DOWNLOAD_URL= https://fedorahosted.org/releases/o/p/openscap
906N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
906N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2410N/ACOMPONENT_ARCHIVE_HASH= sha256:47105500b8b3d80cdf07b277bfab59091de5eadb16d97d27ee663bfbee58cb76
1799N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
1799N/ACOMPONENT_BUGDB= utility/openscap
906N/A
2899N/ATPNO= 16560
2899N/A
2232N/ACOMPILER = gcc
1389N/ACFLAGS+= -std=c99
1389N/ACFLAGS+= -DNDEBUG
2410N/ACFLAGS+= -DOSCAP_THREAD_SAFE
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
1389N/ACPPFLAGS += -I/usr/include/openldap
906N/A
1799N/A#Need to do cloney, so that the schema files
1799N/A#can get packaged.
1799N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1799N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1799N/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.
1389N/ACPPFLAGS += -I$(SOURCE_DIR)/src/OVAL
1389N/ACPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes
1389N/ACPPFLAGS += -I/usr/include/pcre
906N/A
1389N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
906N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
906N/ACONFIGURE_OPTIONS += --enable-debug=no
1389N/ACONFIGURE_OPTIONS += --enable-sce=yes
1799N/ACONFIGURE_OPTIONS += --enable-perl=yes
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)
3032N/ACONFIGURE_OPTIONS += LIBS="-lldap_r -lscf -ldlpi -lsec -lzonecfg"
2121N/ACONFIGURE_OPTIONS += --with-report-branding="/usr/share/lib/xml/style/os-logo.xsl"
906N/A
2494N/ADOCS_DIR = $(PROTO_DIR)/usr/share/docs/openscap/html/
2494N/A
906N/A# common targets
906N/Abuild: $(BUILD_32)
906N/A
906N/Ainstall: $(INSTALL_32)
2494N/A $(MKDIR) $(DOCS_DIR)
2494N/A $(CP) $(SOURCE_DIR)/docs/html/* $(DOCS_DIR)
906N/A
906N/Atest: $(TEST_32)
906N/A
906N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
906N/A
906N/Ainclude $(WS_TOP)/make-rules/depend.mk