Makefile revision 2232
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
c78c39caab4cf8b5daefc9c65878f7f5ed3eb7a0Tinderbox User#
f536382c59dd492a14667b753816d920f9981f1cTinderbox User# The contents of this file are subject to the terms of the
ab496cc3df1648e9ad992a87c35c2c0870fdc69dTinderbox User# Common Development and Distribution License (the "License").
7c1468ed500356839a4a222517364e6ce18cb1a2Tinderbox User# You may not use this file except in compliance with the License.
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
287a6a8f9040dc43560cd69cddf83bfc0f53b76fTinderbox User# or http://www.opensolaris.org/os/licensing.
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# See the License for the specific language governing permissions
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# and limitations under the License.
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User#
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# If applicable, add the following below this CDDL HEADER, with the
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox Userinclude ../../make-rules/shared-macros.mk
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_NAME= openscap
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_VERSION= 0.9.7
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_PROJECT_URL= http://www.open-scap.org
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_DOWNLOAD_URL= https://fedorahosted.org/releases/o/p/openscap
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_HASH= sha256:0d9ae804026d69e60d44e27cf489e65dd1c2865895cde2cb174ff90fd7868a6a
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_BUGDB= utility/openscap
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPILER = gcc
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Parfait doesn't work with the GNU 4.7 compilers yet.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsifeq ($(strip $(PARFAIT_BUILD)),yes)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPILER = gcc3
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsendif
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox UserCFLAGS+= -std=c99
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark AndrewsCFLAGS+= -DNDEBUG
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox Userinclude $(WS_TOP)/make-rules/prep.mk
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox Userinclude $(WS_TOP)/make-rules/configure.mk
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Huntinclude $(WS_TOP)/make-rules/ips.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox UserCPPFLAGS += -I/usr/include/openldap
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt#Need to do cloney, so that the schema files
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User#can get packaged.
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox UserCOMPONENT_PRE_CONFIGURE_ACTION = \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt ($(CLONEY) $(SOURCE_DIR) $(@D))
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Perl related patch needs configure script recreation.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Needed to make "gmake test" work.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCPPFLAGS += -I$(SOURCE_DIR)/src/OVAL
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCPPFLAGS += -I/usr/include/pcre
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --enable-debug=no
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --enable-sce=yes
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox UserCONFIGURE_OPTIONS += --enable-perl=yes
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCONFIGURE_OPTIONS += LIBS="-lldap_r -lscf -ldlpi -lsec"
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --with-report-branding="/usr/share/lib/xml/style/os-logo.xsl"
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# common targets
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsbuild: $(BUILD_32)
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntinstall: $(INSTALL_32)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
e40c4e4c17d4df338e2a7db0f84d8dbb3858964cTinderbox Usertest: $(TEST_32)
95637507c3d47481fbf0a8a8c750a57f944f677fMark Andrews
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntinclude $(WS_TOP)/make-rules/depend.mk
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt