Makefile revision 1389
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# CDDL HEADER START
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You may not use this file except in compliance with the License.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# or http://www.opensolaris.org/os/licensing.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# See the License for the specific language governing permissions
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# and limitations under the License.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# When distributing Covered Code, include this CDDL HEADER in each
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If applicable, add the following below this CDDL HEADER, with the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# fields enclosed by brackets "[]" replaced with your own identifying
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# CDDL HEADER END
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
922312472e2e05ebc64993d465999c5351b83036Automatic Updaterinclude ../../make-rules/shared-macros.mk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_NAME= openscap
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_VERSION= 0.8.1
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_PROJECT_URL= http://www.open-scap.org/
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_ARCHIVE_HASH= sha256:3365a5f4e7535e5f7134fdf386d4bd35d9b98f61d185be67606e946dc62efedc
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark AndrewsCOMPONENT_BUGDB= utility/openscap
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPILER= gcc
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCFLAGS+= -std=c99
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCFLAGS+= -DNDEBUG
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude $(WS_TOP)/make-rules/prep.mk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude $(WS_TOP)/make-rules/configure.mk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude $(WS_TOP)/make-rules/ips.mk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCPPFLAGS += -I/usr/include/openldap
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Perl related patch needs configure script recreation.
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Needed to make "gmake test" work.
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic UpdaterCPPFLAGS += -I$(SOURCE_DIR)/src/OVAL
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCPPFLAGS += -I/usr/include/pcre
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS += --enable-debug=no
28b3569d6248168e6c00caab951521cc8141a49dAutomatic UpdaterCONFIGURE_OPTIONS += --enable-sce=yes
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterCONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterCONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl -lldap_r -lscf"
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# common targets
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontbuild: $(BUILD_32)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updaterinstall: $(INSTALL_32)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Duponttest: $(TEST_32)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis DupontBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updaterinclude $(WS_TOP)/make-rules/depend.mk
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater