summaryrefslogtreecommitdiffstats
path: root/macosx/Makefile
diff options
context:
space:
mode:
authordas <das@noemail.net>2003-10-01 14:35:38 (GMT)
committerdas <das@noemail.net>2003-10-01 14:35:38 (GMT)
commit84af5e311cb35cb1d6d5dddac8ec44ef4ba3ed09 (patch)
tree26fbc3e2f34810aa91136cceec74a6eebde0afd3 /macosx/Makefile
parent2ac3486bcebb92d302f1a9095b991f552d4ff632 (diff)
downloadtk-84af5e311cb35cb1d6d5dddac8ec44ef4ba3ed09.zip
tk-84af5e311cb35cb1d6d5dddac8ec44ef4ba3ed09.tar.gz
tk-84af5e311cb35cb1d6d5dddac8ec44ef4ba3ed09.tar.bz2
* macosx/Wish.pbproj/project.pbxproj:
* macosx/Makefile: fixed redo prebinding bug when DESTDIR="". Added support for all applicable customizable makefile variables from tcl/macosx/Makefile. * macosx/README: * macosx/Wish.pbproj/project.pbxproj: ensure that the versioned wishX.X script works correctly when Tk.framework with multiple versions is present by referring to a copy of 'Wish Shell.app' located in Tk.framework/Versions/X.X/Resources. FossilOrigin-Name: 235e26fc899e8eb45d68f5f2b22d449b4b67db09
Diffstat (limited to 'macosx/Makefile')
-rw-r--r--macosx/Makefile59
1 files changed, 39 insertions, 20 deletions
diff --git a/macosx/Makefile b/macosx/Makefile
index e4f029a..9aa832f 100644
--- a/macosx/Makefile
+++ b/macosx/Makefile
@@ -1,38 +1,57 @@
################################################################################
#
-# Simple makefile for building on Mac OS X with the
-# Project Builder command line tool 'pbxbuild'
+# Makefile to build AquaTk on Mac OS X packaged as a Framework
+# uses Project Builder command line tool 'pbxbuild'
#
-# RCS: @(#) $Id: Makefile,v 1.7.2.3 2003/09/25 05:37:48 das Exp $
+# RCS: @(#) $Id: Makefile,v 1.7.2.4 2003/10/01 14:35:39 das Exp $
#
################################################################################
-INSTALL_ROOT ?=
+#-------------------------------------------------------------------------------
+# customizable settings
-BUILD_DIR ?= ${CURDIR}/../../build
-SYMROOT ?= ${BUILD_DIR}/${PROJECT}
+DESTDIR ?=
+INSTALL_ROOT ?= ${DESTDIR}
+
+BUILD_DIR ?= ${CURDIR}/../../build
+SYMROOT ?= ${BUILD_DIR}/${PROJECT}
+OBJROOT ?= ${SYMROOT}
+
+EXTRA_MAKE_ARGS ?=
+
+INSTALL_PATH ?= /Library/Frameworks
+APPLICATION_INSTALL_PATH ?= /Applications/Utilities
+
+PREFIX ?= /usr
+BINDIR ?= ${PREFIX}/bin
TCL_FRAMEWORK_DIR ?= ${BUILD_DIR}/tcl
-TCLSH_DIR ?= ${TCL_FRAMEWORK_DIR}
+TCLSH_DIR ?= ${TCL_FRAMEWORK_DIR}
+
+#-------------------------------------------------------------------------------
+
+PROJECT = tk
+TARGET = Wish
-PROJECT = tk
-TARGET = Wish
+DEVBUILDSTYLE = Development
+DEPBUILDSTYLE = Deployment
-DEVBUILDSTYLE = Development
-DEPBUILDSTYLE = Deployment
+PBXBUILD = /usr/bin/pbxbuild
-PBXBUILD = /usr/bin/pbxbuild
+MAKE_VARS := SYMROOT OBJROOT BINDIR APPLICATION_INSTALL_PATH \
+ TCL_FRAMEWORK_DIR TCLSH_DIR
+MAKE_ARGS_V = $(foreach v,${MAKE_VARS},$v=${$v})
-BUILD = ${PBXBUILD} SYMROOT="${SYMROOT}" -target "${TARGET}" \
- TCL_FRAMEWORK_DIR="${TCL_FRAMEWORK_DIR}" \
- TCLSH_DIR="${TCLSH_DIR}" ${MAKEOVERRIDES}
+BUILD = ${PBXBUILD} -target "${TARGET}" ${MAKE_ARGS_V} \
+ DYLIB_INSTALL_PATH="${INSTALL_PATH}" \
+ ${EXTRA_MAKE_ARGS} ${MAKEOVERRIDES}
-DEVBUILD = ${BUILD} -buildstyle "${DEVBUILDSTYLE}"
-DEPBUILD = ${BUILD} -buildstyle "${DEPBUILDSTYLE}"
+DEVBUILD = ${BUILD} -buildstyle "${DEVBUILDSTYLE}"
+DEPBUILD = ${BUILD} -buildstyle "${DEPBUILDSTYLE}"
-INSTALLOPTS = INSTALL_ROOT="${INSTALL_ROOT}"
+INSTALLOPTS = INSTALL_ROOT="${INSTALL_ROOT}"
-EMBEDDEDOPTS = EMBEDDED_BUILD=1
+EMBEDDEDOPTS = EMBEDDED_BUILD=1
################################################################################
@@ -81,7 +100,7 @@ clean-deploy:
################################################################################
cleanup-embedded:
- @-cd ${INSTALL_ROOT}; \
+ @-cd ${INSTALL_ROOT}/; \
chmod -RH u+w Library/Frameworks/Tcl.framework; \
rm -rf Library/Frameworks/Tcl.framework; \
chmod -RH u+w Library/Frameworks/Tk.framework; \