#
#
#   Makefile for A Dictionary and Morphological Analyse
#
#   Designed and Written by:
#      Graeme Ritchie, Alan Black, Steve Pulman and Graham Russell
#
#   This work was supported by:  SERC/Alvey grant GR/C/79114
#
#   $Revision: 3.0 $
#   $Date: 87/08/04 14:32:36 $
#
#   Copyright - Graeme Ritchie, Alan Black,
#               Steve Pulman and Graham Russell  1987
#
#          ---------------------------------------------
#          |    Not to be used for military purposes   |
#          ---------------------------------------------
# 
#   Prolems and Bug Reports to:
#      Alan Black
#      Department of Artificial Intelligence
#      University of Edinburgh
#      80 South Bridge
#      Edinburgh EH1 1HN
#      Scotland UK
#      tel: 031-225-7774 ext.220
#      JANET: awb@uk.ac.edinburgh.aiva
#      ARPA:  awb%uk.ac.edinburgh.aiva@ucl.cs
#      UUCP:  ...!seismo!mcvax!ukc!aiva!awb
#
#   make         builds 42.15 Franz Lisp version (unrestricted unification)
#   make 38      builds 38.75 Franz Lisp version (suitable for VAXs) 
#                                 (unrestricted unification)
#   make 38u     builds 38.75 version - with unrestricted unification
#   make 38t     builds 38.75 version - with term unification
#   make 42u     builds 42.15 version - with unrestricted unification
#   make 42t     builds 42.15 version - with term unification
#   make cl      builds Common Lisp version of system (unrestricted)
#   make clu     builds Common Lisp version with unrestricted unification
#   make clt     builds Common Lisp version with term unification
#   make clean   removes binaries from the subdirectories
#   make install installs the UNIX manual files
#
#   See the user manual for a description of these various options
#
SUBDIR        = src
OBJFILES      = mksp mklex mkgram dci
LISPFILES     = morphan.o analyse.o autorun.o \
		makelex.o makesp.o mkwgram.o \
		maload.o mafuncs.o mconcat.o \
		spdebug.o debug.o
MANFILES      = mksp.l mklex.l mkgram.l dci.l
 
all:            
		echo making Franz Lisp 42.15 Version
		(cd src; make; cp ${OBJFILES} ${LISPFILES} ..)

38:		
		echo making Franz Lisp 38.75 Version
		(cd src; make 38; cp ${OBJFILES} ${LISPFILES} ..)
42u:		
		echo making Franz Lisp 42.15 Version
		(cd src; make 42u; cp ${OBJFILES} ${LISPFILES} ..)
42t:		
		echo making Franz Lisp 42.15 Version
		(cd src; make 42t; cp ${OBJFILES} ${LISPFILES} ..)
38u:		
		echo making Franz Lisp 42.15 Version
		(cd src; make 38u; cp ${OBJFILES} ${LISPFILES} ..)
38t:		
		echo making Franz Lisp 42.15 Version
		(cd src; make 38t; cp ${OBJFILES} ${LISPFILES} ..)
cl:        
		echo making Common Lisp Version
		(cd common; make; cp ${LISPFILES} ..)
clu:        
		echo making Common Lisp Version
		(cd common; make UTYPE=u; cp ${LISPFILES} ..)
clt:        
		echo making Common Lisp Version
		(cd common; make UTYPE=t; cp ${LISPFILES} ..)

install:
		(cd man; mv ${MANFILES} /usr/man/manl)

clean:
		(cd src; make clean)
		(cd common; make clean)

