Makefile revision 1273
7cb128dc4cae2a03a742f63ba7afee23c78e3af0Phil Carmody#
86763e4c68313df83606e1060fc1795280590677Timo Sirainen# CDDL HEADER START
86763e4c68313df83606e1060fc1795280590677Timo Sirainen#
86763e4c68313df83606e1060fc1795280590677Timo Sirainen# The contents of this file are subject to the terms of the
9281d385594c4f158958977f1ead1d2270ef1a9eFlorian Zeitz# Common Development and Distribution License (the "License").
86763e4c68313df83606e1060fc1795280590677Timo Sirainen# You may not use this file except in compliance with the License.
5fea87f050d4a6a8c8a3b259a25541fc78e5f2cdPhil Carmody#
86763e4c68313df83606e1060fc1795280590677Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen# or http://www.opensolaris.org/os/licensing.
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen# See the License for the specific language governing permissions
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen# and limitations under the License.
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen#
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen# If applicable, add the following below this CDDL HEADER, with the
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen#
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen# CDDL HEADER END
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen#
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen#
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo Sirainen
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo Siraineninclude ../../make-rules/shared-macros.mk
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo Sirainen
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo SirainenCOMPONENT_NAME= sudo
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo SirainenSRC_VERSION= 1.8.4
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo SirainenSRC_PATCH_VERSION= 5
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo SirainenCOMPONENT_VERSION= $(SRC_VERSION).$(SRC_PATCH_VERSION)
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(SRC_VERSION)p$(SRC_PATCH_VERSION)
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo SirainenCOMPONENT_ARCHIVE_HASH= \
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo Sirainen sha256:cf41ea1ada17c0dfbd8480dd9dc800999e0db9f2972ffa8f7a2944751ad32aba
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo SirainenCOMPONENT_ARCHIVE_URL= http://www.sudo.ws/sudo/dist/$(COMPONENT_ARCHIVE)
32ae620015da6ab2ec28e04d3cdcdb4420f1fa6bTimo SirainenCOMPONENT_PROJECT_URL= http://www.sudo.ws/
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo SirainenCOMPONENT_BUGDB= utility/sudo
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo Sirainen
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo Siraineninclude $(WS_TOP)/make-rules/prep.mk
86763e4c68313df83606e1060fc1795280590677Timo Siraineninclude $(WS_TOP)/make-rules/configure.mk
86763e4c68313df83606e1060fc1795280590677Timo Siraineninclude $(WS_TOP)/make-rules/ips.mk
9281d385594c4f158958977f1ead1d2270ef1a9eFlorian Zeitz
9281d385594c4f158958977f1ead1d2270ef1a9eFlorian ZeitzCONFIGURE_ENV += "CC=$(CC)"
9281d385594c4f158958977f1ead1d2270ef1a9eFlorian ZeitzCONFIGURE_ENV += "CFLAGS=$(CFLAGS)"
9281d385594c4f158958977f1ead1d2270ef1a9eFlorian ZeitzCONFIGURE_ENV += "CXX=$(CXX)"
86763e4c68313df83606e1060fc1795280590677Timo SirainenCONFIGURE_ENV += "MAKE=$(GMAKE)"
86763e4c68313df83606e1060fc1795280590677Timo Sirainen
86763e4c68313df83606e1060fc1795280590677Timo SirainenCONFIGURE_OPTIONS += --with-ldap
5fea87f050d4a6a8c8a3b259a25541fc78e5f2cdPhil CarmodyCONFIGURE_OPTIONS += --with-project
86763e4c68313df83606e1060fc1795280590677Timo SirainenCONFIGURE_OPTIONS += --with-timedir=/system/volatile/sudo
5fea87f050d4a6a8c8a3b259a25541fc78e5f2cdPhil CarmodyCONFIGURE_OPTIONS += --with-pam --with-pam-login
5fea87f050d4a6a8c8a3b259a25541fc78e5f2cdPhil CarmodyCONFIGURE_OPTIONS += --with-tty-tickets
5fea87f050d4a6a8c8a3b259a25541fc78e5f2cdPhil CarmodyCONFIGURE_OPTIONS += --without-insults
5fea87f050d4a6a8c8a3b259a25541fc78e5f2cdPhil CarmodyCONFIGURE_OPTIONS += --without-lecture
5fea87f050d4a6a8c8a3b259a25541fc78e5f2cdPhil CarmodyCONFIGURE_OPTIONS += --with-ignore-dot
5fea87f050d4a6a8c8a3b259a25541fc78e5f2cdPhil CarmodyCONFIGURE_OPTIONS += --with-bsm-audit
5fea87f050d4a6a8c8a3b259a25541fc78e5f2cdPhil CarmodyCONFIGURE_OPTIONS += --libexecdir=/usr/lib/sudo
86763e4c68313df83606e1060fc1795280590677Timo SirainenCONFIGURE_OPTIONS += "sudo_cv_var_nroff_opt_Tascii=no"
86763e4c68313df83606e1060fc1795280590677Timo Sirainen
86763e4c68313df83606e1060fc1795280590677Timo SirainenCOMPONENT_BUILD_ENV += CC=$(CC) CXX=$(CXX)
86763e4c68313df83606e1060fc1795280590677Timo SirainenCOMPONENT_BUILD_ENV += "CFLAGS=$(CFLAGS)"
86763e4c68313df83606e1060fc1795280590677Timo Sirainen
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil CarmodyCOMPONENT_INSTALL_TARGETS = install
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmody
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmody# common targets
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmody
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmodybuild: $(BUILD_32)
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmody
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmodyinstall: $(INSTALL_32)
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmody
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmodytest: $(NO_TESTS)
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmody
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil CarmodyBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmody
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmodyinclude $(WS_TOP)/make-rules/depend.mk
7c1b72e1a0b35aa27d4f74e9dd49fc3156eb4fa9Phil Carmody