# $Id: Makefile,v 1.28 1998/10/20 13:41:32 cthulhu Exp $
# Main Makefile for the Abacus
#
# Authors: Arlindo Oliveira (aml@inesc.pt)
# Copyright 1995 INESC
#

TARGET = tcl_interf/nxlc
DIRS = display calc io graphics include runlib lib canvas tcl_interf
TARDIRS = $(DIRS) RCS regressive doc canvas-tcl8.0.0 canvas-tcl8.0.3
TARFILES = Makefile  $(TARDIRS) VERSIONS awk_file abacus doc INSTALL COPYING \
	Makefile.options

all: $(TARGET)

$(TARGET) : binary
	for i in $(DIRS); do $(MAKE)  -C $$i ; done

binary: 

tar : clean version
	tar cvf abacus.tar $(TARFILES)  
	rm -f abacus.tar.gz
	gzip -9 abacus.tar
	sh -c 'mv abacus.tar.gz abacus-`cat version`.tar.gz; exit 0'

clean : version
	for i in $(DIRS); do $(MAKE) clean -C $$i; done
	rm -f *~ gmon.out tests/* regressive/*.bck

dep : version
	for i in $(DIRS); do $(MAKE) dep -C $$i; done
	rm -f *~


version : VERSIONS
	awk -f awk_file VERSIONS | head -1 > version

#
# $Log: Makefile,v $
# Revision 1.28  1998/10/20 13:41:32  cthulhu
# Makefiles now support centralized preferences via Makefile.options file.
#
# Revision 1.27  1998/10/20 10:52:05  cthulhu
# Added all target.
#
# Revision 1.26  1998/10/20 00:40:18  cthulhu
# Added GPL license to source tree (yay!)
#
# Revision 1.25  1998/10/11 21:01:02  cthulhu
# Added INSTALL file to make tar.
#
# Revision 1.24  1998/09/30 22:26:24  cthulhu
# Another DIRS bug...
#
# Revision 1.23  1998/09/30 22:13:50  cthulhu
# Fixed bug in DIRS variable.
#
# Revision 1.22  1998/09/30 21:40:56  cthulhu
# Makefile cleanup, update for new dual canvas stuff.
#
# Revision 1.21  1998/09/30 20:44:09  cthulhu
# Changed canvas in DIRS to canvas-tcl8.0.3.
#
# Revision 1.20  1998/08/06 21:15:11  aml
# Cleaned up tar operation.
#
# Revision 1.19  1998/08/06 21:12:35  aml
# Removed double reference to runlib
#
# Revision 1.18  1998/08/06 21:02:36  aml
# Released alpha version of Abacus.
#
# Revision 1.17  1998/05/08 19:24:40  cthulhu
# *** empty log message ***
#
# Revision 1.16  1996/09/16 18:41:25  aml
# Some performance problems addressed by reducing tag use.
# Several performance problems remain when heavy use is made
# of borders and shading in large spreadsheets.
#
# Revision 1.15  1996/09/02  10:50:59  aml
# Cell fonts created, loaded and saved.
# Row height created.
#
# Revision 1.14  1996/08/26 17:22:11  aml
# Function round fixed.
# Many other functions added, from power to mod.
#
# Revision 1.13  1996/08/23 16:13:24  aml
# Top window resizing now works well.
# Range selection now uses a filled rectangle with overall good results.
# Intermediate version, does not work well.
#
# Revision 1.12  1996/07/29  09:02:00  aml
# Fixed a few small problems with variable sized columns caused by
# messing around with the canvas widget.
#
# Revision 1.11  1996/07/18 10:19:11  aml
# Created formats for cells.
# Load cell now makes copy of old file.
#
# Revision 1.10  1996/04/27  11:12:23  aml
# Inserted check and delete button.
# Font selection widget created.
# Fixed bug canvas_information destructor.
#
# Revision 1.9  1996/04/21 13:25:48  aml
# Sped up scroll functions, caching keys presses.
# First cut at handling overflowing cells.
# Overflow into ajoining filled cells not solved.
#
# Revision 1.8  1996/04/19 10:42:55  aml
# First cut at speeding up canvas critical functions.
# CanvasWidgetCommand is now called directly from draw_sheet.
# Fixed bug in reading values from datafiles. Also works
# for Suns now.
# Created canvas directory, replacing builtin command canvas.
#
# Revision 1.7  1996/01/07  09:07:14  aml
# Sheet::save and Sheet::load created.
# Program can now write and read wk1 files.
# Slight changes made to relative references. Bit 14 is now always 0.
#
# Revision 1.6  1996/01/04  20:27:04  aml
# Range references parsed and reverse parsed.
#
# Revision 1.5  1996/01/02  16:21:56  aml
# Formula compilation, evaluation and decompilation now work.
# Cells can be of type label, numerical formula or numbers.
#
# Revision 1.4  1995/12/30  16:40:06  aml
# First cut of formula compilation.
#
# Revision 1.3  1995/12/28  19:20:20  aml
# Created skeleton to merge calculation engine
#
# Revision 1.2  1995/12/27  23:23:09  aml
# Fixed top level Makefile
#
# Revision 1.1  1995/12/27  23:19:02  aml
# Initial revision
#
# Revision 1.5  1995/12/14  12:11:39  aml
# Redid organization
#
# Revision 1.4  1995/12/13  14:37:38  aml
# Included include
#
# Revision 1.3  1995/12/13  14:31:40  aml
# V 0.4
#
# Revision 1.2  1995/11/08  22:41:24  aml
# Put RCS in the DIRS list.
#
# Revision 1.1  1995/11/08  22:30:32  aml
# Initial revision
#
# 
