1996-09-27 06:29:02 -04:00
|
|
|
|
#
|
|
|
|
|
# Toplevel Makefile for STk
|
|
|
|
|
#
|
|
|
|
|
#
|
1998-04-10 06:59:06 -04:00
|
|
|
|
# Copyright <20> 1993-1998 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
|
1996-09-27 06:29:02 -04:00
|
|
|
|
#
|
|
|
|
|
# Permission to use, copy, and/or distribute this software and its
|
|
|
|
|
# documentation for any purpose and without fee is hereby granted, provided
|
|
|
|
|
# that both the above copyright notice and this permission notice appear in
|
|
|
|
|
# all copies and derived works. Fees for distribution or use of this
|
|
|
|
|
# software or derived works may only be charged with express written
|
|
|
|
|
# permission of the copyright holder.
|
|
|
|
|
# This software is provided ``as is'' without express or implied warranty.
|
|
|
|
|
#
|
1999-02-02 06:13:40 -05:00
|
|
|
|
# $Id: Makefile.in 1.3.1.11 Mon, 28 Dec 1998 23:12:55 +0100 eg $
|
|
|
|
|
#
|
1996-09-27 06:29:02 -04:00
|
|
|
|
# Author: Erick Gallesio [eg@unice.fr]
|
|
|
|
|
# Creation date: ??-Sep-1993 ??:??
|
1999-02-02 06:13:40 -05:00
|
|
|
|
# Last file update: 28-Dec-1998 23:12
|
1996-09-27 06:29:02 -04:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
CP = /bin/cp
|
|
|
|
|
RANLIB = @RANLIB@
|
1998-09-30 07:11:02 -04:00
|
|
|
|
MACHTYPE = @MACHINE@
|
1996-09-27 06:29:02 -04:00
|
|
|
|
MP = @MP@.a
|
1998-09-30 07:11:02 -04:00
|
|
|
|
FLAVOR = @FLAVOR@
|
1996-09-27 06:29:02 -04:00
|
|
|
|
prefix = @prefix@
|
1998-04-30 07:04:33 -04:00
|
|
|
|
|
1998-09-30 07:11:02 -04:00
|
|
|
|
include VERSION
|
|
|
|
|
include paths
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all: $(FLAVOR)
|
1996-09-27 06:29:02 -04:00
|
|
|
|
|
1998-09-30 07:11:02 -04:00
|
|
|
|
unix: start tcl-dir mp-dir stack-dir tk-dir snow-dir src-dir stklos-dir ext-dir stop
|
|
|
|
|
win: start tcl-dir mp-dir stack-dir tk-dir snow-dir src-dir stklos-dir ext-dir stop
|
1996-09-27 06:29:02 -04:00
|
|
|
|
|
|
|
|
|
start:
|
|
|
|
|
@date > .start-date
|
|
|
|
|
@/bin/rm -f config.make
|
|
|
|
|
@echo "# Common startup for all Makefiles" > config.make
|
1998-09-30 07:11:02 -04:00
|
|
|
|
@echo "# This file is automatically generated" >> config.make
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@echo "VERSION = $(VERSION)" >> config.make
|
|
|
|
|
@echo "FLAVOR = $(FLAVOR)" >> config.make
|
|
|
|
|
@echo "SHELL = $(SHELL)" >> config.make
|
1998-09-30 07:11:02 -04:00
|
|
|
|
@echo "MACHTYPE = $(MACHTYPE)" >> config.make
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@echo "prefix = $(prefix)" >> config.make
|
1998-09-30 07:11:02 -04:00
|
|
|
|
@cat ./paths >> config.make
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@echo "VERS-OPT = -DSTK_VERSION=\\\"$(VERSION)\\\"">> config.make
|
1998-09-30 07:11:02 -04:00
|
|
|
|
@echo "MACHINE = -DMACHINE=\\\"$(MACHTYPE)\\\"" >> config.make
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@echo "CC = @CC@" >> config.make
|
|
|
|
|
@echo "STKCFLAGS = @STKCFLAGS@" >> config.make
|
|
|
|
|
@echo "STKLDFLAGS = @STKLDFLAGS@" >> config.make
|
|
|
|
|
@echo "CP = $(CP)" >> config.make
|
|
|
|
|
@echo "RANLIB = @RANLIB@" >> config.make
|
|
|
|
|
@echo "STRIP = @STRIP@" >> config.make
|
|
|
|
|
@echo "XINCLUDES = @XINCLUDES@" >> config.make
|
|
|
|
|
@echo "XLIBSW = @XLIBSW@" >> config.make
|
|
|
|
|
@echo "MP = @MP@" >> config.make
|
|
|
|
|
@echo "DFLGS = @DFLGS@" >> config.make
|
|
|
|
|
@echo "EOBJ = @EOBJ@" >> config.make
|
|
|
|
|
@echo "ETKOBJ = @ETKOBJ@" >> config.make
|
|
|
|
|
@echo "EXTRA_OBJ = @EXTRA_OBJ@" >> config.make
|
|
|
|
|
@echo "DYNLOAD = @DYNLOAD@" >> config.make
|
|
|
|
|
@echo "SH_CCFLAGS = @SH_CCFLAGS@" >> config.make
|
|
|
|
|
@echo "SH_LDFLAGS = @SH_LDFLAGS@" >> config.make
|
|
|
|
|
@echo "SH_LOADER = @SH_LOADER@" >> config.make
|
|
|
|
|
@echo "SH_SUFFIX = @SH_SUFFIX@" >> config.make
|
|
|
|
|
@echo "LIB_MALLOC = @LIB_MALLOC@" >> config.make
|
|
|
|
|
@echo "LIB_DLD = @LIB_DLD@" >> config.make
|
|
|
|
|
@echo "STK_LIBRARY = $(libdir)" >> config.make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stop:
|
|
|
|
|
@echo "Make started at `cat .start-date`"
|
|
|
|
|
@/bin/rm .start-date
|
|
|
|
|
@echo "Make completed at `date`"
|
|
|
|
|
|
1998-09-30 07:11:02 -04:00
|
|
|
|
tcl-dir:
|
|
|
|
|
@(echo "make Tcl"; cd Tcl; $(MAKE) $(FLAVOR))
|
|
|
|
|
tk-dir:
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@(echo "make Tk"; cd Tk; $(MAKE) libtk.a)
|
1998-09-30 07:11:02 -04:00
|
|
|
|
mp-dir:
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@(echo "make Mp"; cd Mp; $(MAKE) $(MP))
|
1998-09-30 07:11:02 -04:00
|
|
|
|
stack-dir:
|
|
|
|
|
@(echo "make Stack"; cd Stack; $(MAKE))
|
|
|
|
|
src-dir:
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@(echo "make Src"; cd Src; $(MAKE) stk TK="-DUSE_TK")
|
1998-09-30 07:11:02 -04:00
|
|
|
|
snow-dir:
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@(echo "make Snow"; cd Snow; $(MAKE) snow TK="-DNO_TK")
|
1998-09-30 07:11:02 -04:00
|
|
|
|
stklos-dir:
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@(echo "make STklos"; cd STklos; $(MAKE) stklos)
|
1998-09-30 07:11:02 -04:00
|
|
|
|
ext-dir:
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@(echo "Make Extensions"; cd Extensions; $(MAKE) all)
|
|
|
|
|
doc:
|
|
|
|
|
@(echo "Make Documentation"; cd Doc; $(MAKE) all)
|
|
|
|
|
dvi:
|
|
|
|
|
@(echo "Make Documentation(dvi)"; cd Doc; $(MAKE) dvi)
|
|
|
|
|
|
|
|
|
|
demos:
|
1998-04-10 06:59:06 -04:00
|
|
|
|
/bin/sh -c "(cd Demos; ../Src/test-stk -f S-scape README.html)"
|
1996-09-27 06:29:02 -04:00
|
|
|
|
|
1998-06-09 07:07:40 -04:00
|
|
|
|
install: all clean-before
|
1996-09-27 06:29:02 -04:00
|
|
|
|
(cd Tcl; $(MAKE) install)
|
|
|
|
|
(cd Tk; $(MAKE) install)
|
|
|
|
|
(cd Mp; $(MAKE) install)
|
|
|
|
|
(cd Src; $(MAKE) install.stk)
|
|
|
|
|
(cd Snow; $(MAKE) install.snow)
|
|
|
|
|
(cd Lib; $(MAKE) install)
|
|
|
|
|
(cd STklos; $(MAKE) install)
|
|
|
|
|
(cd Extensions; $(MAKE) install)
|
|
|
|
|
(cd Demos; $(MAKE) install)
|
|
|
|
|
(cd Help; $(MAKE) install)
|
1998-04-30 07:04:33 -04:00
|
|
|
|
(cd Doc; $(MAKE) install)
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@echo ""
|
|
|
|
|
@echo "Installation completed."
|
|
|
|
|
|
|
|
|
|
install.libs:
|
1998-04-30 07:04:33 -04:00
|
|
|
|
-if [ ! -d $(confdir) ] ; then mkdir -p $(confdir); fi
|
|
|
|
|
$(CP) config.make $(confdir)
|
1996-09-27 06:29:02 -04:00
|
|
|
|
-if [ ! -d $(incdir) ] ; then mkdir -p $(incdir); fi
|
|
|
|
|
/bin/rm -f $(stkdir)/include
|
|
|
|
|
(cd $(stkdir) ; ln -s $(VERSION)/include ./include)
|
|
|
|
|
(cd Tcl; $(MAKE) install.libs)
|
|
|
|
|
(cd Tk; $(MAKE) install.libs)
|
|
|
|
|
(cd Mp; $(MAKE) install.libs)
|
|
|
|
|
(cd Src; $(MAKE) install.stk.libs)
|
|
|
|
|
(cd Snow; $(MAKE) install.snow.libs)
|
1998-04-30 07:04:33 -04:00
|
|
|
|
chmod 0755 $(confdir) $(ardir) $(confdir)/* $(ardir)/*
|
1996-09-27 06:29:02 -04:00
|
|
|
|
@echo ""
|
|
|
|
|
@echo "Full installation completed."
|
|
|
|
|
|
|
|
|
|
binary-release: install install.man
|
|
|
|
|
(cd $(prefix)/lib; \
|
|
|
|
|
tar cvfz /tmp//STk-$(VERSION)-$(MACHINE).tar.gz stk/$(VERSION)/$(MACHINE))
|
|
|
|
|
@echo "The release is in the file /tmp/STk-$(VERSION)-$(MACHINE).tar.gz"
|
|
|
|
|
@echo "Don't forget to create the file STk-$(VERSION)-$(MACHINE).README"
|
|
|
|
|
@echo "to describe the content of your archive (a template is given in"
|
|
|
|
|
@echo "the file BINARY-DISTRIB"
|
|
|
|
|
|
|
|
|
|
common-release:
|
|
|
|
|
(cd $(prefix)/lib; \
|
|
|
|
|
tar cvfz /tmp/STk-$(VERSION)-common.tar.gz stk/$(VERSION)/Help \
|
|
|
|
|
stk/$(VERSION)/STk \
|
|
|
|
|
stk/$(VERSION)/demos \
|
|
|
|
|
stk/$(VERSION)/images \
|
|
|
|
|
stk/$(VERSION)/images \
|
|
|
|
|
stk/$(VERSION)/man \
|
|
|
|
|
stk/man)
|
|
|
|
|
@echo "Termin<EFBFBD>. Le fichier est dans /tmp/STk-$(VERSION)-common.tar.gz"
|
|
|
|
|
|
|
|
|
|
clean-before:
|
|
|
|
|
@if [ -d $(prefix)/lib/stk ]; \
|
|
|
|
|
then \
|
|
|
|
|
echo "*** WARNING:"; \
|
|
|
|
|
echo "*** A previous version of STk has already been installed in"; \
|
|
|
|
|
echo "*** directory '$(stkdir)'. It is not a problem since"; \
|
|
|
|
|
echo "*** several versions can coexist now in this directory"; \
|
|
|
|
|
echo "*** However, if you are short in place, or if you don't use "; \
|
|
|
|
|
echo "*** a multi architecture file system, cleaning may be a good"; \
|
|
|
|
|
echo "*** thing to do."; \
|
|
|
|
|
echo "*** (Waiting 10s) " ; \
|
|
|
|
|
sleep 10;\
|
|
|
|
|
fi
|
|
|
|
|
@if [ -d $(prefix)/lib/stk/$(VERSION) ]; \
|
|
|
|
|
then \
|
|
|
|
|
echo "*** WARNING:"; \
|
|
|
|
|
echo "*** This STk version ($(VERSION)) has already been installed "; \
|
|
|
|
|
echo "*** on this machine. Should I clean this directory before "; \
|
|
|
|
|
echo "*** starting installation of STk-$(VERSION)? [no] " ; \
|
|
|
|
|
read a; \
|
|
|
|
|
case $$a in \
|
|
|
|
|
y*|Y*) echo "Deleting previous installation"; \
|
|
|
|
|
/bin/rm -rf $(stkdir)/$(VERSION);; \
|
|
|
|
|
*) echo "No cleaning!";; \
|
|
|
|
|
esac; \
|
|
|
|
|
fi
|
1998-06-09 07:07:40 -04:00
|
|
|
|
|
1996-09-27 06:29:02 -04:00
|
|
|
|
install.man:
|
|
|
|
|
(cd Doc; $(MAKE) install.man)
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
(cd Tcl; $(MAKE) clean)
|
|
|
|
|
(cd Tk; $(MAKE) clean)
|
|
|
|
|
(cd Mp; $(MAKE) clean)
|
1998-04-10 06:59:06 -04:00
|
|
|
|
(cd Stack; $(MAKE) clean)
|
1996-09-27 06:29:02 -04:00
|
|
|
|
(cd Src; $(MAKE) clean)
|
|
|
|
|
(cd Snow; $(MAKE) clean)
|
|
|
|
|
(cd STklos; $(MAKE) clean)
|
|
|
|
|
(cd Extensions; $(MAKE) clean)
|
|
|
|
|
(cd Help; $(MAKE) clean)
|
|
|
|
|
(cd Doc; $(MAKE) clean)
|
1998-04-30 07:04:33 -04:00
|
|
|
|
/bin/rm -f core *~ Makefile config.* Src/Makefile
|
1998-04-10 06:59:06 -04:00
|
|
|
|
|
1999-02-02 06:13:40 -05:00
|
|
|
|
cin:
|
1998-04-30 07:04:33 -04:00
|
|
|
|
@(cat VERSION; prcs checkin -n)
|
1998-04-10 06:59:06 -04:00
|
|
|
|
|
1999-02-02 06:13:40 -05:00
|
|
|
|
ci:
|
1998-04-30 07:04:33 -04:00
|
|
|
|
@(cat VERSION; prcs checkin)
|
1998-04-10 06:59:06 -04:00
|
|
|
|
|