stk/Tk/unix/Makefile.in

959 lines
32 KiB
Makefile
Raw Normal View History

1996-09-27 06:29:02 -04:00
#
# This file is a Makefile for Tk. If it has the name "Makefile.in"
# then it is a template for a Makefile; to generate the actual Makefile,
# run "./configure", which is a configuration script generated by the
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
1998-04-10 06:59:06 -04:00
# SCCS: @(#) Makefile.in 1.145 97/08/15 10:53:53
1996-09-27 06:29:02 -04:00
# Current Tk version; used in various names.
include ../../config.make
#----------------------------------------------------------------
# Things you can change to personalize the Makefile for your own
# site (you can make these changes in either Makefile.in or
# Makefile, but changes to Makefile will get lost if you re-run
# the configuration script).
#----------------------------------------------------------------
# Default top-level directories in which to install architecture-
# specific files (exec_prefix) and machine-independent files such
# as scripts (prefix). The values specified here may be overridden
# at configure-time with the --exec-prefix and --prefix options
# to the "configure" script.
prefix = @prefix@
exec_prefix = @exec_prefix@
# The following definition can be set to non-null for special systems
# like AFS with replication. It allows the pathnames used for installation
# to be different than those used for actually reference files at
# run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix
# when installing files.
INSTALL_ROOT =
# Directory from which applications will reference the library of Tcl
# scripts (note: you can set the TK_LIBRARY environment variable at
# run-time to override the compiled-in location):
TK_LIBRARY = $(prefix)/lib/tk$(VERSION)
# Path name to use when installing library scripts:
SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TK_LIBRARY)
1998-04-10 06:59:06 -04:00
# Directory in which to install the .a or .so binary for the Tk library:
1996-09-27 06:29:02 -04:00
LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib
1998-04-10 06:59:06 -04:00
# Path to use at runtime to refer to LIB_INSTALL_DIR:
LIB_RUNTIME_DIR = $(exec_prefix)/lib
1996-09-27 06:29:02 -04:00
# Directory in which to install the program wish:
BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin
# Directory from which the program wish should be referenced by scripts:
BIN_DIR = $(exec_prefix)/bin
# Directory in which to install the include file tk.h:
INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
# Top-level directory for manual entries:
MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man
# Directory in which to install manual entry for wish:
MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1
# Directory in which to install manual entries for Tk's C library
# procedures:
MAN3_INSTALL_DIR = $(MAN_INSTALL_DIR)/man3
# Directory in which to install manual entries for the built-in
# Tcl commands implemented by Tk:
MANN_INSTALL_DIR = $(MAN_INSTALL_DIR)/mann
1998-04-10 06:59:06 -04:00
# The directory containing the Tcl sources and headers appropriate
# for this version of Tk ("srcdir" will be replaced or has already
# been replaced by the configure script):
TCL_GENERIC_DIR = @TCL_SRC_DIR@
# The directory containing the Tcl library archive file appropriate
# for this version of Tk:
TCL_BIN_DIR = @TCL_BIN_DIR@
1996-09-27 06:29:02 -04:00
# A "-I" switch that can be used when compiling to make all of the
# X11 include files accessible (the configure script will try to
# set this value, and will cause it to be an empty string if the
# include files are accessible via /usr/include).
X11_INCLUDES = @XINCLUDES@
# Linker switch(es) to use to link with the X11 library archive (the
# configure script will try to set this value automatically, but you
# can override it).
X11_LIB_SWITCHES = @XLIBSW@
1998-04-10 06:59:06 -04:00
# Libraries to use when linking. This definition is determined by the
# configure script.
LIBS = @TCL_BUILD_LIB_SPEC@ @LIBS@ $(X11_LIB_SWITCHES) @DL_LIBS@ @MATH_LIBS@ -lc
1996-09-27 06:29:02 -04:00
# To change the compiler switches, for example to change from -O
# to -g, change the following line:
CFLAGS = -O
# To turn off the security checks that disallow incoming sends when
# the X server appears to be insecure, reverse the comments on the
# following lines:
SECURITY_FLAGS =
#SECURITY_FLAGS = -DTK_NO_SECURITY
# To disable ANSI-C procedure prototypes reverse the comment characters
# on the following lines:
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.
MEM_DEBUG_FLAGS =
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
# If your X server is X11R4 or earlier, then you may wish to reverse
# the comment characters on the following two lines. This will enable
# extra code to speed up XStringToKeysym. In X11R5 and later releases
# XStringToKeysym is plenty fast, so you needn't define REDO_KEYSYM_LOOKUP.
KEYSYM_FLAGS =
#KEYSYM_FLAGS = -DREDO_KEYSYM_LOOKUP
# Some versions of make, like SGI's, use the following variable to
# determine which shell to use for executing commands:
SHELL = /bin/sh
# Tk used to let the configure script choose which program to use
# for installing, but there are just too many different versions of
# "install" around; better to use the install-sh script that comes
# with the distribution, which is slower but guaranteed to work.
INSTALL = @srcdir@/install-sh -c
1998-04-10 06:59:06 -04:00
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
1996-09-27 06:29:02 -04:00
# The symbols below provide support for dynamic loading and shared
# libraries. The values of the symbols are normally set by the
# configure script. You shouldn't normally need to modify any of
1998-04-10 06:59:06 -04:00
# these definitions by hand.
1996-09-27 06:29:02 -04:00
1998-04-10 06:59:06 -04:00
TK_SHLIB_CFLAGS = @TK_SHLIB_CFLAGS@
1996-09-27 06:29:02 -04:00
1998-04-10 06:59:06 -04:00
TK_LIB_FILE = @TK_LIB_FILE@
#TK_LIB_FILE = libtk.a
1996-09-27 06:29:02 -04:00
1998-04-10 06:59:06 -04:00
# The symbol below provides support for dynamic loading and shared
# libraries. See configure.in for a description of what it means.
# The values of the symbolis normally set by the configure script.
1996-09-27 06:29:02 -04:00
1998-04-10 06:59:06 -04:00
SHLIB_LD = @SHLIB_LD@
1996-09-27 06:29:02 -04:00
1998-04-10 06:59:06 -04:00
# Additional search flags needed to find the various shared libraries
# at run-time. The first symbol is for use when creating a binary
# with cc, and the second is for use when running ld directly.
TK_CC_SEARCH_FLAGS = @TK_CC_SEARCH_FLAGS@
TK_LD_SEARCH_FLAGS = @TK_LD_SEARCH_FLAGS@
1996-09-27 06:29:02 -04:00
#----------------------------------------------------------------
# The information below is modified by the configure script when
# Makefile is generated from Makefile.in. You shouldn't normally
# modify any of this stuff by hand.
#----------------------------------------------------------------
AC_FLAGS = @DEFS@
RANLIB = @RANLIB@
SRC_DIR = @srcdir@/..
TOP_DIR = @srcdir@/..
GENERIC_DIR = $(TOP_DIR)/generic
UNIX_DIR = @srcdir@
BMAP_DIR = $(TOP_DIR)/bitmaps
1998-04-10 06:59:06 -04:00
TOOL_DIR = @TCL_SRC_DIR@/tools
1996-09-27 06:29:02 -04:00
#----------------------------------------------------------------
# The information below should be usable as is. The configure
# script won't modify it and you shouldn't need to modify it
# either.
#----------------------------------------------------------------
CC = @CC@
1998-04-10 06:59:06 -04:00
CC_SWITCHES = ${STKCFLAGS} ${DFLGS} -I../../Src \
${TK_SHLIB_CFLAGS} -I${UNIX_DIR} -I${GENERIC_DIR} \
-I${BMAP_DIR} -I${TCL_GENERIC_DIR} ${X11_INCLUDES} ${AC_FLAGS} ${PROTO_FLAGS} \
${SECURITY_FLAGS} ${MEM_DEBUG_FLAGS} ${KEYSYM_FLAGS}
DEPEND_SWITCHES = ${CFLAGS} -I${UNIX_DIR} -I${GENERIC_DIR} \
-I${BMAP_DIR} \
-I${TCL_GENERIC_DIR} ${X11_INCLUDES} \
${AC_FLAGS} ${PROTO_FLAGS} ${SECURITY_FLAGS} ${MEM_DEBUG_FLAGS} \
${KEYSYM_FLAGS}
1996-09-27 06:29:02 -04:00
WISH_OBJS = tkAppInit.o
TKTEST_OBJS = tkTestInit.o tkTest.o tkSquare.o
WIDGOBJS = tkButton.o tkEntry.o tkFrame.o tkListbox.o \
1998-04-10 06:59:06 -04:00
tkMenu.o tkMenubutton.o tkMenuDraw.o tkMessage.o tkScale.o \
1996-09-27 06:29:02 -04:00
tkScrollbar.o
CANVOBJS = tkCanvas.o tkCanvArc.o tkCanvBmap.o tkCanvImg.o \
tkCanvLine.o tkCanvPoly.o tkCanvPs.o tkCanvText.o \
tkCanvUtil.o tkCanvWind.o tkRectOval.o tkTrig.o
IMAGEOBJS = tkImage.o tkImgBmap.o tkImgGIF.o tkImgPPM.o tkImgPhoto.o
1998-04-10 06:59:06 -04:00
TEXTOBJS = tkText.o tkTextBTree.o tkTextDisp.o tkTextImage.o tkTextIndex.o \
1996-09-27 06:29:02 -04:00
tkTextMark.o tkTextTag.o tkTextWind.o
1998-04-10 06:59:06 -04:00
UNIXOBJS = tkUnix.o tkUnix3d.o tkUnixButton.o tkUnixColor.o tkUnixCursor.o \
tkUnixDraw.o \
tkUnixEmbed.o tkUnixEvent.o tkUnixFocus.o tkUnixFont.o tkUnixInit.o \
tkUnixMenu.o tkUnixMenubu.o tkUnixScale.o tkUnixScrlbr.o \
tkUnixSelect.o tkUnixSend.o tkUnixWm.o tkUnixXId.o
1996-09-27 06:29:02 -04:00
1998-04-10 06:59:06 -04:00
OBJS = tk3d.o tkArgv.o tkAtom.o tkBind.o tkBitmap.o tkClipboard.o tkCmds.o \
1996-09-27 06:29:02 -04:00
tkColor.o tkConfig.o tkCursor.o tkError.o tkEvent.o \
tkFocus.o tkFont.o tkGet.o tkGC.o tkGeometry.o tkGrab.o tkGrid.o \
tkOption.o tkPack.o tkPlace.o \
1998-04-10 06:59:06 -04:00
tkSelect.o tkUtil.o tkVisual.o tkWindow.o \
$(UNIXOBJS) $(WIDGOBJS) $(CANVOBJS) $(IMAGEOBJS) $(TEXTOBJS)
1996-09-27 06:29:02 -04:00
SRCS = \
$(GENERIC_DIR)/tk3d.c $(GENERIC_DIR)/tkArgv.c \
$(GENERIC_DIR)/tkAtom.c $(GENERIC_DIR)/tkBind.c \
$(GENERIC_DIR)/tkBitmap.c $(GENERIC_DIR)/tkClipboard.c \
$(GENERIC_DIR)/tkCmds.c $(GENERIC_DIR)/tkColor.c \
$(GENERIC_DIR)/tkConfig.c $(GENERIC_DIR)/tkCursor.c \
$(GENERIC_DIR)/tkError.c $(GENERIC_DIR)/tkEvent.c \
$(GENERIC_DIR)/tkFocus.c $(GENERIC_DIR)/tkFont.c \
$(GENERIC_DIR)/tkGet.c $(GENERIC_DIR)/tkGC.c \
$(GENERIC_DIR)/tkGeometry.c $(GENERIC_DIR)/tkGrab.c \
$(GENERIC_DIR)/tkGrid.c \
$(GENERIC_DIR)/tkPack.c $(GENERIC_DIR)/tkPlace.c \
1998-04-10 06:59:06 -04:00
$(GENERIC_DIR)/tkSelect.c $(GENERIC_DIR)/tkUtil.c \
1996-09-27 06:29:02 -04:00
$(GENERIC_DIR)/tkVisual.c $(GENERIC_DIR)/tkWindow.c \
$(GENERIC_DIR)/tkButton.c \
$(GENERIC_DIR)/tkEntry.c $(GENERIC_DIR)/tkFrame.c \
$(GENERIC_DIR)/tkListbox.c $(GENERIC_DIR)/tkMenu.c \
1998-04-10 06:59:06 -04:00
$(GENERIC_DIR)/tkMenubutton.c $(GENERIC_DIR)/tkMenuDraw.c \
$(GENERIC_DIR)/tkMessage.c \
1996-09-27 06:29:02 -04:00
$(GENERIC_DIR)/tkScale.c $(GENERIC_DIR)/tkScrollbar.c \
$(GENERIC_DIR)/tkCanvas.c $(GENERIC_DIR)/tkCanvArc.c \
$(GENERIC_DIR)/tkCanvBmap.c $(GENERIC_DIR)/tkCanvImg.c \
$(GENERIC_DIR)/tkCanvLine.c $(GENERIC_DIR)/tkCanvPoly.c \
$(GENERIC_DIR)/tkCanvPs.c $(GENERIC_DIR)/tkCanvText.c \
$(GENERIC_DIR)/tkCanvUtil.c \
$(GENERIC_DIR)/tkCanvWind.c $(GENERIC_DIR)/tkRectOval.c \
$(GENERIC_DIR)/tkTrig.c $(GENERIC_DIR)/tkImage.c \
$(GENERIC_DIR)/tkImgBmap.c $(GENERIC_DIR)/tkImgGIF.c \
$(GENERIC_DIR)/tkImgPPM.c \
$(GENERIC_DIR)/tkImgPhoto.c $(GENERIC_DIR)/tkText.c \
$(GENERIC_DIR)/tkTextBTree.c $(GENERIC_DIR)/tkTextDisp.c \
1998-04-10 06:59:06 -04:00
$(GENERIC_DIR)/tkTextImage.c \
1996-09-27 06:29:02 -04:00
$(GENERIC_DIR)/tkTextIndex.c $(GENERIC_DIR)/tkTextMark.c \
$(GENERIC_DIR)/tkTextTag.c $(GENERIC_DIR)/tkTextWind.c \
$(GENERIC_DIR)/tkSquare.c $(GENERIC_DIR)/tkTest.c \
$(UNIX_DIR)/tkAppInit.c $(UNIX_DIR)/tkUnix.c \
1998-04-10 06:59:06 -04:00
$(UNIX_DIR)/tkUnix3d.c \
$(UNIX_DIR)/tkUnixButton.c $(UNIX_DIR)/tkUnixColor.c \
$(UNIX_DIR)/tkUnixCursor.c \
$(UNIX_DIR)/tkUnixEmbed.c $(UNIX_DIR)/tkUnixEvent.c \
$(UNIX_DIR)/tkUnixFocus.c \
$(UNIX_DIR)/tkUnixFont.c $(UNIX_DIR)/tkUnixInit.c \
$(UNIX_DIR)/tkUnixMenu.c $(UNIX_DIR)/tkUnixMenubu.c \
$(UNIX_DIR)/tkUnixScale.c $(UNIX_DIR)/tkUnixScrlbr.c \
$(UNIX_DIR)/tkUnixSelect.c \
$(UNIX_DIR)/tkUnixSend.c $(UNIX_DIR)/tkUnixWm.c \
1996-09-27 06:29:02 -04:00
$(UNIX_DIR)/tkUnixXId.c
1998-04-10 06:59:06 -04:00
1996-09-27 06:29:02 -04:00
HDRS = bltList.h \
1998-04-10 06:59:06 -04:00
default.h ks_names.h tkPatch.h tk.h tkButton.h tkCanvas.h tkInt.h \
tkPort.h tkScrollbar.h tkText.h
1996-09-27 06:29:02 -04:00
DEMOPROGS = browse hello ixset rmt rolodex square tcolor timer widget
1998-04-10 06:59:06 -04:00
all: @TK_LIB_FILE@
# The following target is configured by autoconf to generate either
# a shared library or non-shared library for Tk.
@TK_LIB_FILE@: ${OBJS}
rm -f @TK_LIB_FILE@
@MAKE_LIB@
$(RANLIB) @TK_LIB_FILE@
# Make target which outputs the list of the .o contained in the Tk lib
# usefull to build a single big shared library containing Tcl/Tk and other
# extensions. used for the Tcl Plugin. -- dl
tkLibObjs:
@echo ${OBJS}
# This targets actually build the objects needed for the lib in the above
# case
objs: ${OBJS}
1996-09-27 06:29:02 -04:00
1998-04-10 06:59:06 -04:00
# Note, in the target below TCL_LIBRARY needs to be set or else
# "make test" won't work in the case where the compilation directory
# isn't the same as the source directory.
1996-09-27 06:29:02 -04:00
test: tktest
1998-04-10 06:59:06 -04:00
LD_LIBRARY_PATH=`pwd`:${TCL_BIN_DIR}:${LD_LIBRARY_PATH}; \
export LD_LIBRARY_PATH; \
TCL_LIBRARY=@TCL_SRC_DIR@/library; export TCL_LIBRARY; \
TK_LIBRARY=$(TOP_DIR)/library; export TK_LIBRARY; \
( echo cd $(TOP_DIR)/tests\; source all\; exit ) \
| ./tktest -geometry +0+0
# Useful target to launch a built tktest with the proper path,...
runtest:
LD_LIBRARY_PATH=`pwd`:${TCL_BIN_DIR}:${LD_LIBRARY_PATH}; \
export LD_LIBRARY_PATH; \
TCL_LIBRARY=@TCL_SRC_DIR@/library; export TCL_LIBRARY; \
TK_LIBRARY=$(TOP_DIR)/library; export TK_LIBRARY; \
./tktest
1998-04-30 07:04:33 -04:00
#install: install-binaries install-libraries install-demos install-man
install: all
install.libs:
-if [ ! -d $(ardir) ] ; then mkdir -p $(ardir); fi
$(CP) libtk.a $(ardir)
$(RANLIB) $(ardir)/libtk.a
-if [ ! -d $(incdir) ] ; then mkdir -p $(incdir); fi
$(CP) ../generic/tk.h ../generic/tkInt.h $(incdir)
1998-04-10 06:59:06 -04:00
# 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).
install-binaries: $(TK_LIB_FILE) wish
1996-09-27 06:29:02 -04:00
@for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \
do \
if [ ! -d $$i ] ; then \
echo "Making directory $$i"; \
mkdir $$i; \
chmod 755 $$i; \
else true; \
fi; \
done;
1998-04-10 06:59:06 -04:00
@echo "Installing $(TK_LIB_FILE)"
@$(INSTALL_DATA) $(TK_LIB_FILE) $(LIB_INSTALL_DIR)/$(TK_LIB_FILE)
@(cd $(LIB_INSTALL_DIR); $(RANLIB) $(TK_LIB_FILE))
@chmod 555 $(LIB_INSTALL_DIR)/$(TK_LIB_FILE)
1996-09-27 06:29:02 -04:00
@echo "Installing wish"
@$(INSTALL_PROGRAM) wish $(BIN_INSTALL_DIR)/wish$(VERSION)
1998-04-10 06:59:06 -04:00
@echo "Installing tkConfig.sh"
@$(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tkConfig.sh
1996-09-27 06:29:02 -04:00
install-libraries:
@for i in $(INSTALL_ROOT)$(prefix)/lib $(INCLUDE_INSTALL_DIR) \
1998-04-10 06:59:06 -04:00
$(SCRIPT_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)/images; \
1996-09-27 06:29:02 -04:00
do \
if [ ! -d $$i ] ; then \
echo "Making directory $$i"; \
mkdir $$i; \
chmod 755 $$i; \
else true; \
fi; \
done;
@echo "Installing tk.h"
1998-04-10 06:59:06 -04:00
@$(INSTALL_DATA) $(GENERIC_DIR)/tk.h $(INCLUDE_INSTALL_DIR)/tk.h
1996-09-27 06:29:02 -04:00
for i in $(SRC_DIR)/library/*.tcl $(SRC_DIR)/library/tclIndex $(SRC_DIR)/library/prolog.ps $(UNIX_DIR)/tkAppInit.c; \
do \
echo "Installing $$i"; \
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \
done;
1998-04-10 06:59:06 -04:00
for i in $(SRC_DIR)/library/images/*; \
do \
if [ -f $$i ] ; then \
echo "Installing $$i"; \
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/images; \
fi; \
done;
1996-09-27 06:29:02 -04:00
install-demos:
@for i in $(INSTALL_ROOT)$(prefix)/lib $(SCRIPT_INSTALL_DIR) \
$(SCRIPT_INSTALL_DIR)/demos \
$(SCRIPT_INSTALL_DIR)/demos/images ; \
do \
if [ ! -d $$i ] ; then \
echo "Making directory $$i"; \
mkdir $$i; \
chmod 755 $$i; \
else true; \
fi; \
done;
@for i in $(SRC_DIR)/library/demos/*; \
do \
if [ -f $$i ] ; then \
echo "Installing $$i"; \
sed -e '3 s|exec wish|exec wish$(VERSION)|' \
$$i > $(SCRIPT_INSTALL_DIR)/demos/`basename $$i`; \
fi; \
done;
@for i in $(DEMOPROGS); \
do \
chmod 755 $(SCRIPT_INSTALL_DIR)/demos/$$i; \
done;
@for i in $(SRC_DIR)/library/demos/images/*; \
do \
if [ -f $$i ] ; then \
echo "Installing $$i"; \
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos/images; \
fi; \
done;
install-man:
@for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR) $(MANN_INSTALL_DIR) ; \
do \
if [ ! -d $$i ] ; then \
echo "Making directory $$i"; \
mkdir $$i; \
chmod 755 $$i; \
else true; \
fi; \
done;
@cd $(SRC_DIR)/doc; for i in *.1; \
do \
echo "Installing doc/$$i"; \
rm -f $(MAN1_INSTALL_DIR)/$$i; \
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
$$i > $(MAN1_INSTALL_DIR)/$$i; \
chmod 444 $(MAN1_INSTALL_DIR)/$$i; \
done;
$(UNIX_DIR)/mkLinks $(MAN1_INSTALL_DIR)
@cd $(SRC_DIR)/doc; for i in *.3; \
do \
echo "Installing doc/$$i"; \
rm -f $(MAN3_INSTALL_DIR)/$$i; \
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
$$i > $(MAN3_INSTALL_DIR)/$$i; \
chmod 444 $(MAN3_INSTALL_DIR)/$$i; \
done;
$(UNIX_DIR)/mkLinks $(MAN3_INSTALL_DIR)
@cd $(SRC_DIR)/doc; for i in *.n; \
do \
echo "Installing doc/$$i"; \
rm -f $(MANN_INSTALL_DIR)/$$i; \
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
$$i > $(MANN_INSTALL_DIR)/$$i; \
chmod 444 $(MANN_INSTALL_DIR)/$$i; \
done;
$(UNIX_DIR)/mkLinks $(MANN_INSTALL_DIR)
Makefile: $(UNIX_DIR)/Makefile.in
$(SHELL) config.status
clean:
rm -f *.a *.o core errs *~ \#* TAGS *.E a.out Makefile config.cache \
config.log config.info config.status
distclean: clean
1998-04-10 06:59:06 -04:00
rm -f Makefile config.status config.cache config.log tkConfig.sh \
SUNWtk.* prototype
1996-09-27 06:29:02 -04:00
depend:
1998-04-10 06:59:06 -04:00
makedepend -- $(DEPEND_SWITCHES) -- $(SRCS)
1996-09-27 06:29:02 -04:00
# Test binaries. The rule for tkTestInit.o is complicated because
# it is is compiled from tkAppInit.c. Can't use the "-o" option
# because this doesn't work on some strange compilers (e.g. UnixWare).
tk3d.o: $(GENERIC_DIR)/tk3d.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tk3d.c
tkAppInit.o: $(UNIX_DIR)/tkAppInit.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkAppInit.c
tkArgv.o: $(GENERIC_DIR)/tkArgv.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkArgv.c
tkAtom.o: $(GENERIC_DIR)/tkAtom.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkAtom.c
tkBind.o: $(GENERIC_DIR)/tkBind.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkBind.c
tkBitmap.o: $(GENERIC_DIR)/tkBitmap.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkBitmap.c
tkClipboard.o: $(GENERIC_DIR)/tkClipboard.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkClipboard.c
tkCmds.o: $(GENERIC_DIR)/tkCmds.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCmds.c
tkColor.o: $(GENERIC_DIR)/tkColor.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkColor.c
tkConfig.o: $(GENERIC_DIR)/tkConfig.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkConfig.c
tkCursor.o: $(GENERIC_DIR)/tkCursor.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCursor.c
tkError.o: $(GENERIC_DIR)/tkError.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkError.c
tkEvent.o: $(GENERIC_DIR)/tkEvent.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkEvent.c
tkFocus.o: $(GENERIC_DIR)/tkFocus.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFocus.c
tkFont.o: $(GENERIC_DIR)/tkFont.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFont.c
tkGet.o: $(GENERIC_DIR)/tkGet.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGet.c
tkGC.o: $(GENERIC_DIR)/tkGC.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGC.c
tkGeometry.o: $(GENERIC_DIR)/tkGeometry.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGeometry.c
tkGrab.o: $(GENERIC_DIR)/tkGrab.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGrab.c
tkGrid.o: $(GENERIC_DIR)/tkGrid.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGrid.c
tkOption.o: $(GENERIC_DIR)/tkOption.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkOption.c
tkPack.o: $(GENERIC_DIR)/tkPack.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkPack.c
tkPlace.o: $(GENERIC_DIR)/tkPlace.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkPlace.c
tkSelect.o: $(GENERIC_DIR)/tkSelect.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkSelect.c
tkUtil.o: $(GENERIC_DIR)/tkUtil.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkUtil.c
tkVisual.o: $(GENERIC_DIR)/tkVisual.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkVisual.c
tkWindow.o: $(GENERIC_DIR)/tkWindow.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkWindow.c
tkButton.o: $(GENERIC_DIR)/tkButton.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkButton.c
tkEntry.o: $(GENERIC_DIR)/tkEntry.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkEntry.c
tkFrame.o: $(GENERIC_DIR)/tkFrame.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFrame.c
tkListbox.o: $(GENERIC_DIR)/tkListbox.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkListbox.c
tkMenu.o: $(GENERIC_DIR)/tkMenu.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMenu.c
tkMenubutton.o: $(GENERIC_DIR)/tkMenubutton.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMenubutton.c
1998-04-10 06:59:06 -04:00
tkMenuDraw.o: $(GENERIC_DIR)/tkMenuDraw.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMenuDraw.c
1996-09-27 06:29:02 -04:00
tkMessage.o: $(GENERIC_DIR)/tkMessage.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMessage.c
tkScale.o: $(GENERIC_DIR)/tkScale.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkScale.c
tkScrollbar.o: $(GENERIC_DIR)/tkScrollbar.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkScrollbar.c
tkSquare.o: $(GENERIC_DIR)/tkSquare.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkSquare.c
tkCanvas.o: $(GENERIC_DIR)/tkCanvas.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvas.c
tkCanvArc.o: $(GENERIC_DIR)/tkCanvArc.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvArc.c
tkCanvBmap.o: $(GENERIC_DIR)/tkCanvBmap.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvBmap.c
tkCanvImg.o: $(GENERIC_DIR)/tkCanvImg.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvImg.c
tkCanvLine.o: $(GENERIC_DIR)/tkCanvLine.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvLine.c
tkCanvPoly.o: $(GENERIC_DIR)/tkCanvPoly.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvPoly.c
tkCanvPs.o: $(GENERIC_DIR)/tkCanvPs.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvPs.c
tkCanvText.o: $(GENERIC_DIR)/tkCanvText.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvText.c
tkCanvUtil.o: $(GENERIC_DIR)/tkCanvUtil.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvUtil.c
tkCanvWind.o: $(GENERIC_DIR)/tkCanvWind.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvWind.c
tkRectOval.o: $(GENERIC_DIR)/tkRectOval.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkRectOval.c
tkTrig.o: $(GENERIC_DIR)/tkTrig.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTrig.c
tkImage.o: $(GENERIC_DIR)/tkImage.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImage.c
tkImgBmap.o: $(GENERIC_DIR)/tkImgBmap.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgBmap.c
tkImgGIF.o: $(GENERIC_DIR)/tkImgGIF.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgGIF.c
tkImgPPM.o: $(GENERIC_DIR)/tkImgPPM.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgPPM.c
tkImgPhoto.o: $(GENERIC_DIR)/tkImgPhoto.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgPhoto.c
tkTest.o: $(GENERIC_DIR)/tkTest.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTest.c
tkText.o: $(GENERIC_DIR)/tkText.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkText.c
tkTextBTree.o: $(GENERIC_DIR)/tkTextBTree.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextBTree.c
tkTextDisp.o: $(GENERIC_DIR)/tkTextDisp.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextDisp.c
1998-04-10 06:59:06 -04:00
tkTextImage.o: $(GENERIC_DIR)/tkTextImage.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextImage.c
1996-09-27 06:29:02 -04:00
tkTextIndex.o: $(GENERIC_DIR)/tkTextIndex.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextIndex.c
tkTextMark.o: $(GENERIC_DIR)/tkTextMark.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextMark.c
tkTextTag.o: $(GENERIC_DIR)/tkTextTag.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextTag.c
tkTextWind.o: $(GENERIC_DIR)/tkTextWind.c
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextWind.c
tkUnix.o: $(UNIX_DIR)/tkUnix.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnix.c
1998-04-10 06:59:06 -04:00
tkUnix3d.o: $(UNIX_DIR)/tkUnix3d.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnix3d.c
tkUnixButton.o: $(UNIX_DIR)/tkUnixButton.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixButton.c
tkUnixColor.o: $(UNIX_DIR)/tkUnixColor.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixColor.c
1996-09-27 06:29:02 -04:00
tkUnixCursor.o: $(UNIX_DIR)/tkUnixCursor.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixCursor.c
tkUnixDraw.o: $(UNIX_DIR)/tkUnixDraw.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixDraw.c
1998-04-10 06:59:06 -04:00
tkUnixEmbed.o: $(UNIX_DIR)/tkUnixEmbed.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixEmbed.c
1996-09-27 06:29:02 -04:00
tkUnixEvent.o: $(UNIX_DIR)/tkUnixEvent.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixEvent.c
1998-04-10 06:59:06 -04:00
tkUnixFocus.o: $(UNIX_DIR)/tkUnixFocus.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixFocus.c
tkUnixFont.o: $(UNIX_DIR)/tkUnixFont.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixFont.c
tkUnixInit.o: $(UNIX_DIR)/tkUnixInit.c $(GENERIC_DIR)/tkInitScript.h tkConfig.sh
$(CC) -c $(CC_SWITCHES) -DTK_LIBRARY=\"${TK_LIBRARY}\" \
$(UNIX_DIR)/tkUnixInit.c
1996-09-27 06:29:02 -04:00
1998-04-10 06:59:06 -04:00
tkUnixMenu.o: $(UNIX_DIR)/tkUnixMenu.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixMenu.c
tkUnixMenubu.o: $(UNIX_DIR)/tkUnixMenubu.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixMenubu.c
tkUnixScale.o: $(UNIX_DIR)/tkUnixScale.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixScale.c
tkUnixScrlbr.o: $(UNIX_DIR)/tkUnixScrlbr.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixScrlbr.c
1996-09-27 06:29:02 -04:00
tkUnixSelect.o: $(UNIX_DIR)/tkUnixSelect.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixSelect.c
1998-04-10 06:59:06 -04:00
tkUnixSend.o: $(UNIX_DIR)/tkUnixSend.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixSend.c
1996-09-27 06:29:02 -04:00
tkUnixWm.o: $(UNIX_DIR)/tkUnixWm.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixWm.c
tkUnixXId.o: $(UNIX_DIR)/tkUnixXId.c
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixXId.c
.c.o:
$(CC) -c $(CC_SWITCHES) $<
#
# Target to check for proper usage of UCHAR macro.
#
checkuchar:
-egrep isalnum\|isalpha\|iscntrl\|isdigit\|islower\|isprint\|ispunct\|isspace\|isupper\|isxdigit\|toupper\|tolower $(SRCS) | grep -v UCHAR
#
# Target to make sure that only symbols with "Tk" prefixes are
# exported.
#
1998-04-10 06:59:06 -04:00
checkexports: $(TK_LIB_FILE)
-nm -p $(TK_LIB_FILE) | awk '$$2 ~ /[TDB]/ { print $$3 }' | sort -n | grep -v '^[Tt]k'
1996-09-27 06:29:02 -04:00
#
# Target to create a proper Tk distribution from information in the
# master source directory. DISTDIR must be defined to indicate where
# to put the distribution. DISTDIR must be an absolute path name.
#
1998-04-10 06:59:06 -04:00
DISTNAME = tk@TK_VERSION@@TK_PATCH_LEVEL@
ZIPNAME = tk@TK_MAJOR_VERSION@@TK_MINOR_VERSION@@TK_PATCH_LEVEL@.zip
DISTDIR = /proj/tcl/dist/$(DISTNAME)
TCLDIR = @TCL_SRC_DIR@
$(UNIX_DIR)/configure: $(UNIX_DIR)/configure.in
autoconf $(UNIX_DIR)/configure.in > $(UNIX_DIR)/configure
1996-09-27 06:29:02 -04:00
1998-04-10 06:59:06 -04:00
dist: $(UNIX_DIR)/configure
1996-09-27 06:29:02 -04:00
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
mkdir $(DISTDIR)/unix
cp -p $(UNIX_DIR)/*.c $(UNIX_DIR)/*.h $(DISTDIR)/unix
1998-04-10 06:59:06 -04:00
cp $(TOP_DIR)/license.terms $(UNIX_DIR)/Makefile.in $(DISTDIR)/unix
1996-09-27 06:29:02 -04:00
chmod 664 $(DISTDIR)/unix/Makefile.in
1998-04-10 06:59:06 -04:00
cp $(UNIX_DIR)/configure $(UNIX_DIR)/configure.in \
$(UNIX_DIR)/tkConfig.sh.in $(TCLDIR)/unix/install-sh \
$(UNIX_DIR)/porting.notes $(UNIX_DIR)/porting.old \
$(UNIX_DIR)/README $(DISTDIR)/unix
1996-09-27 06:29:02 -04:00
chmod 775 $(DISTDIR)/unix/configure $(DISTDIR)/unix/configure.in
chmod +x $(DISTDIR)/unix/install-sh
1998-04-10 06:59:06 -04:00
tclsh $(TCLDIR)/unix/mkLinks.tcl $(TOP_DIR)/doc/*.[13n] \
1996-09-27 06:29:02 -04:00
> $(DISTDIR)/unix/mkLinks
chmod +x $(DISTDIR)/unix/mkLinks
mkdir $(DISTDIR)/bitmaps
1998-04-10 06:59:06 -04:00
@(cd $(TOP_DIR); for i in bitmaps/* ; do \
1996-09-27 06:29:02 -04:00
if [ -f $$i ] ; then \
sed -e 's/static char/static unsigned char/' \
$$i > $(DISTDIR)/$$i; \
fi; \
done;)
mkdir $(DISTDIR)/generic
cp -p $(GENERIC_DIR)/*.c $(GENERIC_DIR)/*.h $(DISTDIR)/generic
cp -p $(GENERIC_DIR)/README $(DISTDIR)/generic
1998-04-10 06:59:06 -04:00
cp -p $(TOP_DIR)/changes $(TOP_DIR)/README $(TOP_DIR)/license.terms \
$(DISTDIR)
1996-09-27 06:29:02 -04:00
rm -f $(DISTDIR)/generic/blt*.[ch]
mkdir $(DISTDIR)/win
1998-04-10 06:59:06 -04:00
cp -p $(TOP_DIR)/win/*.c $(TOP_DIR)/win/*.h $(DISTDIR)/win
cp -p $(TOP_DIR)/win/makefile.* $(DISTDIR)/win
cp -p $(TOP_DIR)/win/README $(DISTDIR)/win
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/win
mkdir $(DISTDIR)/win/rc
cp -p $(TOP_DIR)/win/rc/*.rc $(TOP_DIR)/win/rc/*.cur \
$(TOP_DIR)/win/rc/*.ico $(TOP_DIR)/win/rc/*.bmp \
$(DISTDIR)/win/rc
1996-09-27 06:29:02 -04:00
mkdir $(DISTDIR)/mac
1998-04-10 06:59:06 -04:00
sccs edit -s $(TOP_DIR)/mac/tkMacProjects.sit.hqx
cp -p tkMacProjects.sit.hqx $(DISTDIR)/mac
sccs unedit $(TOP_DIR)/mac/tkMacProjects.sit.hqx
rm -f tkMacProjects.sit.hqx
cp -p $(TOP_DIR)/mac/*.c $(TOP_DIR)/mac/*.h $(TOP_DIR)/mac/*.r \
$(DISTDIR)/mac
cp -p $(TOP_DIR)/mac/README $(DISTDIR)/mac
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/mac
cp -p $(TOP_DIR)/mac/*.pch $(DISTDIR)/mac
cp -p $(TOP_DIR)/mac/*.doc $(DISTDIR)/mac
cp -p $(TOP_DIR)/mac/*.exp $(DISTDIR)/mac
cp -p $(TOP_DIR)/mac/*.tcl $(DISTDIR)/mac
1996-09-27 06:29:02 -04:00
mkdir $(DISTDIR)/compat
1998-04-10 06:59:06 -04:00
cp -p $(TOP_DIR)/license.terms $(TCLDIR)/compat/unistd.h \
$(TCLDIR)/compat/stdlib.h $(TCLDIR)/compat/limits.h \
$(DISTDIR)/compat
1996-09-27 06:29:02 -04:00
mkdir $(DISTDIR)/xlib
1998-04-10 06:59:06 -04:00
cp -p $(TOP_DIR)/xlib/*.h $(TOP_DIR)/xlib/*.c $(DISTDIR)/xlib
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/xlib
1996-09-27 06:29:02 -04:00
mkdir $(DISTDIR)/xlib/X11
1998-04-10 06:59:06 -04:00
cp -p $(TOP_DIR)/xlib/X11/*.h $(DISTDIR)/xlib/X11
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/xlib/X11
1996-09-27 06:29:02 -04:00
mkdir $(DISTDIR)/library
1998-04-10 06:59:06 -04:00
cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/library/*.tcl \
$(TOP_DIR)/library/tclIndex $(TOP_DIR)/library/prolog.ps \
$(DISTDIR)/library
mkdir $(DISTDIR)/library/images
@(cd $(TOP_DIR); for i in library/images/* ; do \
if [ -f $$i ] ; then \
cp $$i $(DISTDIR)/$$i; \
fi; \
done;)
1996-09-27 06:29:02 -04:00
mkdir $(DISTDIR)/library/demos
1998-04-10 06:59:06 -04:00
cp -pr $(TOP_DIR)/library/demos/*.tcl \
$(TOP_DIR)/library/demos/tclIndex \
$(TOP_DIR)/library/demos/browse \
$(TOP_DIR)/library/demos/hello $(TOP_DIR)/library/demos/ixset \
$(TOP_DIR)/library/demos/rmt $(TOP_DIR)/library/demos/rolodex \
$(TOP_DIR)/library/demos/square \
$(TOP_DIR)/library/demos/tcolor \
$(TOP_DIR)/library/demos/timer \
$(TOP_DIR)/library/demos/widget \
$(TOP_DIR)/library/demos/README \
$(TOP_DIR)/license.terms $(DISTDIR)/library/demos
1996-09-27 06:29:02 -04:00
mkdir $(DISTDIR)/library/demos/images
1998-04-10 06:59:06 -04:00
@(cd $(TOP_DIR); for i in library/demos/images/* ; do \
1996-09-27 06:29:02 -04:00
if [ -f $$i ] ; then \
cp $$i $(DISTDIR)/$$i; \
fi; \
done;)
mkdir $(DISTDIR)/doc
1998-04-10 06:59:06 -04:00
cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/doc/*.[13n] \
$(TCLDIR)/doc/man.macros $(DISTDIR)/doc
1996-09-27 06:29:02 -04:00
cp /home/ouster/papers/tk4.0/tk4.0.ps $(DISTDIR)/doc
mkdir $(DISTDIR)/tests
1998-04-10 06:59:06 -04:00
cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/tests/*.test \
$(TOP_DIR)/tests/visual $(TOP_DIR)/tests/*.tcl \
$(TOP_DIR)/tests/README $(TOP_DIR)/tests/all \
$(TOP_DIR)/tests/defs $(TOP_DIR)/tests/option.file* \
$(DISTDIR)/tests
alldist: dist
rm -f /proj/tcl/dist/$(DISTNAME).tar.Z \
/proj/tcl/dist/$(DISTNAME).tar.gz \
/proj/tcl/dist/$(ZIPNAME)
cd /proj/tcl/dist; tar cf $(DISTNAME).tar $(DISTNAME); \
gzip -9 -c $(DISTNAME).tar > $(DISTNAME).tar.gz; \
compress $(DISTNAME).tar; zip -r8 $(ZIPNAME) $(DISTNAME)
#
# Target to create a Macintosh version of the distribution. This will
# do a normal distribution and then massage the output to prepare it
# for moving to the Mac platform. This requires a few scripts and
# programs found only in the Tcl greoup's tool workspace.
#
macdist: dist
rm -f $(DISTDIR)/mac/tkMacProjects.sit.hqx
tclsh $(TOOL_DIR)/man2html.tcl $(DISTDIR)/tmp ../.. tk$(VERSION)
mv $(DISTDIR)/tmp/tk$(VERSION) $(DISTDIR)/html
rm -rf $(DISTDIR)/doc
rm -rf $(DISTDIR)/tmp
tclsh $(TOOL_DIR)/cvtEOL.tcl $(DISTDIR)
#
# Targets to build Solaris package of the distribution for the current
# architecture. To build stream packages for both sun4 and i86pc
# architectures:
#
# On the sun4 machine, execute the following:
# make distclean; ./configure
# make DISTDIR=<distdir> package
#
# Once the build is complete, execute the following on the i86pc
# machine:
# make DISTDIR=<distdir> package-quick
#
# <distdir> is the absolute path to a directory where the build should
# take place. These steps will generate the SUNWtk.sun4 and
# SUNWtk.i86pc stream packages. It is important that the packages be
# built in this fashion in order to ensure that the architecture
# independent files are exactly the same, including timestamps, in
# both packages.
#
package: dist package-config package-common package-binaries package-generate
package-quick: package-config package-binaries package-generate
#
# Configure for the current architecture in the dist directory.
#
package-config:
mkdir -p $(DISTDIR)/unix/`arch`
cd $(DISTDIR)/unix/`arch`; \
../configure --prefix=/opt/SUNWtcl/$(TCLVERSION) \
--exec_prefix=/opt/SUNWtcl/$(TCLVERSION)/`arch` \
--with-tcl=$(DISTDIR)/../tcl$(TCLVERSION)/unix/`arch` \
--enable-shared
mkdir -p $(DISTDIR)/SUNWtcl/$(TCLVERSION)
mkdir -p $(DISTDIR)/SUNWtcl/$(TCLVERSION)/`arch`
#
# Build and install the architecture independent files in the dist directory.
#
package-common:
cd $(DISTDIR)/unix/`arch`;\
$(MAKE); \
$(MAKE) install-libraries install-man \
prefix=$(DISTDIR)/SUNWtcl/$(TCLVERSION) \
exec_prefix=$(DISTDIR)/SUNWtcl/$(TCLVERSION)/`arch`
mkdir -p $(DISTDIR)/SUNWtcl/$(TCLVERSION)/bin
sed -e "s/TCLVERSION/$(TCLVERSION)/g" \
-e "s/TKVERSION/$(VERSION)/g" < $(UNIX_DIR)/wish.sh \
> $(DISTDIR)/SUNWtcl/$(TCLVERSION)/bin/wish$(VERSION)
chmod 755 $(DISTDIR)/SUNWtcl/$(TCLVERSION)/bin/wish$(VERSION)
#
# Build and install the architecture specific files in the dist directory.
#
package-binaries:
cd $(DISTDIR)/unix/`arch`; \
$(MAKE); \
$(MAKE) install-binaries prefix=$(DISTDIR)/SUNWtcl/$(TCLVERSION) \
exec_prefix=$(DISTDIR)/SUNWtcl/$(TCLVERSION)/`arch`
#
# Generate a package from the installed files in the dist directory for the
# current architecture.
#
package-generate:
pkgproto $(DISTDIR)/SUNWtcl/$(TCLVERSION)/bin=bin \
$(DISTDIR)/SUNWtcl/$(TCLVERSION)/include=include \
$(DISTDIR)/SUNWtcl/$(TCLVERSION)/lib=lib \
$(DISTDIR)/SUNWtcl/$(TCLVERSION)/man=man \
$(DISTDIR)/SUNWtcl/$(TCLVERSION)/`arch`=`arch` \
| tclsh $(TCLDIR)/unix/mkProto.tcl $(TCLVERSION) \
$(UNIX_DIR) > prototype
pkgmk -o -d . -f prototype -a `arch`
pkgtrans -s . SUNWtk.`arch` SUNWtk
rm -rf SUNWtk
1996-09-27 06:29:02 -04:00
# DO NOT DELETE THIS LINE -- make depend depends on it.