Makefile revision 5023
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# CDDL HEADER START
3b9bbd52c81036217d92193f46b194a1bf0e00bdTinderbox User#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# The contents of this file are subject to the terms of the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# Common Development and Distribution License (the "License").
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You may not use this file except in compliance with the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# or http://www.opensolaris.org/os/licensing.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# See the License for the specific language governing permissions
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# and limitations under the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
15a44745412679c30a6d022733925af70a38b715David Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User#
e85ffb301b294d70ddc1d90234788403666bb944David Lawrence# CDDL HEADER END
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austeininclude ../../../make-rules/shared-macros.mk
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob AusteinCOMPONENT_NAME= expect
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCOMPONENT_VERSION= 5.45
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCOMPONENT_PROJECT_URL= http://expect.nist.gov/
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCOMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
cb3e854e181373807f7f011e5050c1a8013b4841Brian WellingtonCOMPONENT_ARCHIVE_HASH= \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence sha256:b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/expect/files/Expect/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCOMPONENT_BUGDB= utility/expect
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonTPNO= 5552
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafssoninclude $(WS_MAKE_RULES)/prep.mk
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafssoninclude $(WS_MAKE_RULES)/configure.mk
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafssoninclude $(WS_MAKE_RULES)/ips.mk
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
6ca4964362ec37d6afbf614dbb9aaa2f525002f1Mark AndrewsSCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \
c968a9ca37964ae0bdc5d452ad784ec93bd04c57David Lawrence passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect multixterm
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCOMPONENT_PRE_CONFIGURE_ACTION = \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence ($(CLONEY) $(SOURCE_DIR) $(@D))
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCOMPONENT_BUILD_TARGETS = all ${SCRIPTS}
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyLDFLAGS += $(CC_BITS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --enable-shared
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH$(BITS))"
9640c35421ba0bb4af6b6bfbff695d2a0ac560b3Mark AndrewsCONFIGURE_OPTIONS += --with-tclinclude="$(COMPONENT_DIR)/../tcl/build/$(MACH$(BITS))/generic"
7877ad5db24dbad945afc670b2010c70d0d7e2f5Mark Andrews
7877ad5db24dbad945afc670b2010c70d0d7e2f5Mark AndrewsCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyCOMPONENT_TEST_TARGETS = test
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_TEST_TRANSFORMS += \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews '-e "s|$(WS_TOP)|\\$$(WS_TOP)|g"' \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews '-e "s|tcl/build/$(MACH$(BITS))|\\$$(TCLBUILD)|g"'
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsASLR_MODE = $(ASLR_ENABLE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# common targets
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsconfigure: $(CONFIGURE_32_and_64)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsbuild: $(BUILD_32_and_64)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinstall: $(INSTALL_32_and_64)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewstest: $(TEST_32_and_64)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewssystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# special targets due to tcl internals dependencies
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews../tcl/build/%/.built:
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews (cd ../tcl ; $(GMAKE) build)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(CONFIGURE_32): ../tcl/build/$(MACH32)/.built
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(CONFIGURE_64): ../tcl/build/$(MACH64)/.built
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsREQUIRED_PACKAGES += runtime/tcl-8
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsREQUIRED_PACKAGES += shell/ksh93
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark AndrewsREQUIRED_PACKAGES += system/library
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark AndrewsREQUIRED_PACKAGES += system/library/math
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark AndrewsREQUIRED_PACKAGES += system/linker
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews