Makefile revision 447
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# CDDL HEADER START
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# The contents of this file are subject to the terms of the
1098fc409a45e7603701dc94635927a673bee0c1Timo Sirainen# Common Development and Distribution License (the "License").
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# You may not use this file except in compliance with the License.
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen#
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# or http://www.opensolaris.org/os/licensing.
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen# See the License for the specific language governing permissions
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# and limitations under the License.
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# CDDL HEADER END
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen#
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen#
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Siraineninclude ../../make-rules/shared-macros.mk
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen
72cbf33ae81fde08384d30c779ff540752d9256cTimo SirainenCOMPONENT_NAME= sudo
72cbf33ae81fde08384d30c779ff540752d9256cTimo SirainenSRC_VERSION= 1.8.1
72cbf33ae81fde08384d30c779ff540752d9256cTimo SirainenSRC_PATCH_VERSION= 2
72cbf33ae81fde08384d30c779ff540752d9256cTimo SirainenCOMPONENT_VERSION= $(SRC_VERSION).$(SRC_PATCH_VERSION)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(SRC_VERSION)p$(SRC_PATCH_VERSION)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
e1f05b193ac1edd3267294e9501e8063aa0f791aTimo SirainenCOMPONENT_ARCHIVE_HASH= sha1:b743b3d7bdb06de68ea24eedfe13530e8fbcae09
e1f05b193ac1edd3267294e9501e8063aa0f791aTimo SirainenCOMPONENT_ARCHIVE_URL= http://www.sudo.ws/sudo/dist/$(COMPONENT_ARCHIVE)
e1f05b193ac1edd3267294e9501e8063aa0f791aTimo SirainenCOMPONENT_PROJECT_URL= http://www.sudo.ws/
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen
72cbf33ae81fde08384d30c779ff540752d9256cTimo Siraineninclude $(WS_TOP)/make-rules/prep.mk
72cbf33ae81fde08384d30c779ff540752d9256cTimo Siraineninclude $(WS_TOP)/make-rules/configure.mk
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Siraineninclude $(WS_TOP)/make-rules/ips.mk
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCONFIGURE_ENV += "CC=$(CC)"
72cbf33ae81fde08384d30c779ff540752d9256cTimo SirainenCONFIGURE_ENV += "CFLAGS=$(CFLAGS)"
72cbf33ae81fde08384d30c779ff540752d9256cTimo SirainenCONFIGURE_ENV += "CXX=$(CXX)"
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCONFIGURE_ENV += "MAKE=$(GMAKE)"
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCONFIGURE_OPTIONS += --with-CC=$(CC)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCONFIGURE_OPTIONS += --with-ldap
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCONFIGURE_OPTIONS += --with-project
4b058f90f9e8a2c6b2eed275de4eb8cc5195a71dTimo SirainenCONFIGURE_OPTIONS += --with-timedir=/var/run/sudo
ee26329cb5cc679b5645e4933d529f86accb976aTimo SirainenCONFIGURE_OPTIONS += --with-pam --with-pam-login
ee26329cb5cc679b5645e4933d529f86accb976aTimo SirainenCONFIGURE_OPTIONS += --with-tty-tickets
ee26329cb5cc679b5645e4933d529f86accb976aTimo SirainenCONFIGURE_OPTIONS += --without-insults
72cbf33ae81fde08384d30c779ff540752d9256cTimo SirainenCONFIGURE_OPTIONS += --without-lecture
992a13add4eea0810e4db0f042a595dddf85536aTimo SirainenCONFIGURE_OPTIONS += --with-ignore-dot
992a13add4eea0810e4db0f042a595dddf85536aTimo SirainenCONFIGURE_OPTIONS += --with-bsm-audit
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenCONFIGURE_OPTIONS += --libexecdir=/usr/lib/sudo
992a13add4eea0810e4db0f042a595dddf85536aTimo Sirainen
72cbf33ae81fde08384d30c779ff540752d9256cTimo SirainenCOMPONENT_BUILD_ENV += CC=$(CC) CXX=$(CXX)
72cbf33ae81fde08384d30c779ff540752d9256cTimo SirainenCOMPONENT_BUILD_ENV += "CFLAGS=$(CFLAGS)"
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCOMPONENT_INSTALL_TARGETS = install
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen# common targets
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainenbuild: $(BUILD_32)
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Siraineninstall: $(INSTALL_32)
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainentest: $(NO_TESTS)
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo SirainenBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Siraineninclude $(WS_TOP)/make-rules/depend.mk
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen