summaryrefslogtreecommitdiffstats
path: root/macosx/Makefile
diff options
context:
space:
mode:
authordas <das>2003-10-01 14:35:39 (GMT)
committerdas <das>2003-10-01 14:35:39 (GMT)
commit9d4eef9915ff4fe5f2f9c209c5b100769515897f (patch)
tree26fbc3e2f34810aa91136cceec74a6eebde0afd3 /macosx/Makefile
parentb3ec66c29e8fb666e39d76bd1a169d365361a985 (diff)
downloadtk-9d4eef9915ff4fe5f2f9c209c5b100769515897f.zip
tk-9d4eef9915ff4fe5f2f9c209c5b100769515897f.tar.gz
tk-9d4eef9915ff4fe5f2f9c209c5b100769515897f.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.
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; \