summaryrefslogtreecommitdiffstats
path: root/macosx/Makefile
diff options
context:
space:
mode:
authordas <das@noemail.net>2002-09-26 17:07:33 (GMT)
committerdas <das@noemail.net>2002-09-26 17:07:33 (GMT)
commitb3f3cd91758f0c1e7296b560ff4ef7ab3948f9d3 (patch)
tree112cb862271c362e292651bcd940c53f02ab243c /macosx/Makefile
parent54bd6a4f6e2ec40f2e249a6c163a82f790e3be6f (diff)
downloadtk-b3f3cd91758f0c1e7296b560ff4ef7ab3948f9d3.zip
tk-b3f3cd91758f0c1e7296b560ff4ef7ab3948f9d3.tar.gz
tk-b3f3cd91758f0c1e7296b560ff4ef7ab3948f9d3.tar.bz2
* macosx/Makefile: preserve environment value of INSTALL_ROOT.
When embedding only use deployment build. Force relink before embedded build to ensure new linker flags are picked up. * macosx/buildTkConfig.tcl (new): * macosx/Wish.pbproj/project.pbxproj: synthesize tkConfig.sh based on tclConfig.sh in Tcl.framework and tkConfig.sh.in. Add symbolic links to debug lib, stub libs and tkConfig.sh in framework toplevel. Made tkIntXlibDecls.h a public header since Headers/X11/Xlib.h includes it. Install wish8.4 script that runs "Wish Shell.app" and corresponding wish link. Use tcl headers from built Tcl.framework instead of from tcl source directory. * macosx/tkMacOSXPort.h: added missing standard unix includes and defines, similarly to tkUnixPort.h. * macosx/tkMacOSXNotify.c: removed dependency on internal tcl header "tclPort.h" * unix/Makefile.in: * unix/install-sh: copied support for 'install-strip' target over from tcl/unix/{Makefile.in,install-sh} FossilOrigin-Name: 405953cfce4dca4fe79e1db1b496e642b0d2644c
Diffstat (limited to 'macosx/Makefile')
-rw-r--r--macosx/Makefile38
1 files changed, 26 insertions, 12 deletions
diff --git a/macosx/Makefile b/macosx/Makefile
index 920f43e..64e1ca6 100644
--- a/macosx/Makefile
+++ b/macosx/Makefile
@@ -3,13 +3,13 @@
# Simple makefile for building on Mac OS X with the
# Project Builder command line tool 'pbxbuild'
#
-# RCS: @(#) $Id: Makefile,v 1.3 2002/09/10 09:59:16 das Exp $
+# RCS: @(#) $Id: Makefile,v 1.4 2002/09/26 17:07:33 das Exp $
#
################################################################################
-INSTALL_ROOT =
+INSTALL_ROOT ?=
-BUILD_DIR = ../../build
+BUILD_DIR ?= ${CURDIR}/../../build
TARGET = Wish
@@ -33,9 +33,9 @@ all: develop deploy
install: install-develop install-deploy
-embedded: embedded-develop embedded-deploy
+embedded: embedded-deploy
-install-embedded: install-embedded-develop install-embedded-deploy cleanup-embedded
+install-embedded: install-embedded-deploy cleanup-embedded forceRelink forceRelinkTcl
clean: clean-develop clean-deploy
@@ -53,13 +53,13 @@ install-develop:
install-deploy:
${DEPBUILD} install ${INSTALLOPTS}
-embedded-develop:
+embedded-develop: forceRelink
${DEVBUILD} ${EMBEDDEDOPTS}
-embedded-deploy:
+embedded-deploy: forceRelink
${DEPBUILD} ${EMBEDDEDOPTS}
-install-embedded-develop:
+install-embedded-develop:
${DEVBUILD} install ${INSTALLOPTS} ${EMBEDDEDOPTS}
install-embedded-deploy:
@@ -73,14 +73,28 @@ clean-deploy:
################################################################################
+forceRelink:
+ @-cd ${BUILD_DIR}; \
+ rm -rf Tk.framework Wish\ Shell.app libtkstub8.4.a
+
+forceRelinkTcl:
+ @-cd ${BUILD_DIR}; \
+ rm -rf Tcl.framework tclsh8.4 \
+ Development.build/Tcl.build/Tcl Deployment.build/Tcl.build/Tcl
+
cleanup-embedded:
- @( \
- cd ${INSTALL_ROOT}; \
+ @-cd ${INSTALL_ROOT}; \
rm -f Frameworks; \
rm -rf @executable_path; \
rm -rf Library/Frameworks/Tcl.framework; \
rm -rf Library/Frameworks/Tk.framework; \
- if [ -d Library/Frameworks ]; then rmdir -p Library/Frameworks; fi; \
- )
+ rmdir -p Library/Frameworks 2>&-;
+
+################################################################################
+
+.PHONY: all install embedded clean develop deploy install-develop install-deploy \
+embedded-develop embedded-deploy install-embedded-develop install-embedded-deploy \
+clean-develop clean-deploy forceRelinkTcl \
+cleanup-embedded
################################################################################