summaryrefslogtreecommitdiff
path: root/tk/unix/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'tk/unix/Makefile.in')
-rw-r--r--tk/unix/Makefile.in35
1 files changed, 19 insertions, 16 deletions
diff --git a/tk/unix/Makefile.in b/tk/unix/Makefile.in
index ac5ad95234e..20e9789c2b5 100644
--- a/tk/unix/Makefile.in
+++ b/tk/unix/Makefile.in
@@ -144,9 +144,10 @@ PROTO_FLAGS =
#PROTO_FLAGS = -DNO_PROTOTYPE
# To enable memory debugging reverse the comment characters on the following
-# lines. Warning: if you enable memory debugging, you must do it
-# *everywhere*, including all the code that calls Tcl, and you must use
-# ckalloc and ckfree everywhere instead of malloc and free.
+# lines. or call configure with --enable-symbols=mem
+# Warning: if you enable memory debugging, you must do it *everywhere*,
+# including all the code that calls Tcl, and you must use ckalloc and
+# ckfree everywhere instead of malloc and free.
MEM_DEBUG_FLAGS =
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
@@ -172,6 +173,9 @@ SHELL = /bin/sh
# "install" around; better to use the install-sh script that comes
# with the distribution, which is slower but guaranteed to work.
+INSTALL_STRIP_PROGRAM = -s
+INSTALL_STRIP_LIBRARY = -S -S
+
INSTALL = @srcdir@/install-sh -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_LIBRARY = ${INSTALL}
@@ -493,6 +497,11 @@ gdb: wish
install: all install-binaries install-libraries install-demos install-doc
+install-strip:
+ $(MAKE) install \
+ INSTALL_PROGRAM="$(INSTALL_PROGRAM) ${INSTALL_STRIP_PROGRAM}" \
+ INSTALL_LIBRARY="$(INSTALL_LIBRARY) ${INSTALL_STRIP_LIBRARY}"
+
# Note: before running ranlib below, must cd to target directory because
# some ranlibs write to current directory, and this might not always be
# possible (e.g. if installing as root).
@@ -1123,7 +1132,7 @@ dist: $(UNIX_DIR)/configure mklinks
mkdir $(DISTDIR)/macosx
cp -p $(TOP_DIR)/macosx/Makefile $(TOP_DIR)/macosx/Wish.icns \
$(TOP_DIR)/macosx/*.c $(TOP_DIR)/macosx/*.h \
- $(TOP_DIR)/macosx/*.r $(DISTDIR)/macosx
+ $(TOP_DIR)/macosx/*.r $(TOP_DIR)/macosx/*.tcl $(DISTDIR)/macosx
mkdir $(DISTDIR)/macosx/Wish.pbproj
cp -p $(TOP_DIR)/macosx/Wish.pbproj/*.pbx* \
$(DISTDIR)/macosx/Wish.pbproj
@@ -1185,12 +1194,9 @@ dist: $(UNIX_DIR)/configure mklinks
#
alldist: dist
- rm -f $(DISTROOT)/$(DISTNAME).tar.Z \
- $(DISTROOT)/$(DISTNAME).tar.gz \
- $(DISTROOT)/$(ZIPNAME)
- cd $(DISTROOT); tar cf $(DISTNAME).tar $(DISTNAME); \
- gzip -9 -c $(DISTNAME).tar > $(DISTNAME).tar.gz; \
- compress $(DISTNAME).tar; zip -qr8 $(ZIPNAME) $(DISTNAME)
+ rm -f $(DISTROOT)/$(DISTNAME)-src.tar.gz $(DISTROOT)/$(ZIPNAME)
+ cd $(DISTROOT); tar cf $(DISTNAME)-src.tar $(DISTNAME); \
+ gzip -9 $(DISTNAME)-src.tar; zip -qr8 $(ZIPNAME) $(DISTNAME)
#
# The target below is similar to "alldist" except it works for patch
@@ -1201,14 +1207,11 @@ alldist: dist
#
allpatch: dist
- rm -f $(DISTROOT)/$(DISTNAME).tar.Z \
- $(DISTROOT)/$(DISTNAME).tar.gz \
- $(DISTROOT)/$(ZIPNAME)
+ rm -f $(DISTROOT)/$(DISTNAME)-src.tar.gz $(DISTROOT)/$(ZIPNAME)
mv $(DISTROOT)/tk${VERSION} $(DISTROOT)/old
mv $(DISTROOT)/$(DISTNAME) $(DISTROOT)/tk${VERSION}
- cd $(DISTROOT); tar cf $(DISTNAME).tar tk${VERSION}; \
- gzip -9 -c $(DISTNAME).tar > $(DISTNAME).tar.gz; \
- compress $(DISTNAME).tar; zip -r8 $(ZIPNAME) tk${VERSION}
+ cd $(DISTROOT); tar cf $(DISTNAME)-src.tar tk${VERSION}; \
+ gzip -9 $(DISTNAME)-src.tar; zip -r8 $(ZIPNAME) tk${VERSION}
mv $(DISTROOT)/tk${VERSION} $(DISTROOT)/$(DISTNAME)
mv $(DISTROOT)/old $(DISTROOT)/tk${VERSION}