#
#
#      Dictionary and Morphological Analyser Prototype
# 
#       Copyright Graeme Ritchie, Alan Black,
#                 Steve Pulman and Graham Russell  1987
# 
#          ---------------------------------------------
#          |    Not to be used for military purposes   |
#          ---------------------------------------------
# 
#      Common Lisp Make
#      
#      Revision: 3.1 
#      Aug 12 1992
#
#
COMPFILES = makesp.o mkwgram.o makelex.o maload.o mafuncs.o
RUNFILES = morphan.o analyse.o autorun.o mconcat.o
SRCFILES = ../src/makesp.l ../src/mkwgram.l ../src/makelex.l \
	   ../src/maload.l ../src/mafuncs.l ../src/morphan.l \
	   ../src/analyse.l ../src/autorun.l ../src/mconcat.l \
	   ../src/macros ../src/dclsconv ../src/entryconv \
	   ../src/kkruletype ../src/lruleconv  \
	   ../src/parserouts ../src/parsesp ../src/readatom \
	   ../src/spdebug.l ../src/spmoveau 
COMSRCFILES = makesp.l mkwgram.l makelex.l \
	      maload.l mafuncs.l morphan.l \
	      analyse.l autorun.l mconcat.l \
	      macros dclsconv entryconv \
	      kkruletype lruleconv parser \
	      parserouts parsesp readatom \
	      spdebug.l spmoveau unify \
	      specrouts catrouts
LFLAGS =
#   The lisp command required to start up a lisp system
LISPCOM = akcl

# UTYPE may be "u" or "t"
UTYPE = u

#  files specific to the unification type
SPECUNI = unify parser specrouts catrouts

code	: setup compile
	touch code

setup:	${SRCFILES} ${SPECUNI}
	cp ${SRCFILES} .
	cat mapcl >maload.l
	cat ../src/maload.l >>maload.l
	cat mapcl >morphan.l
	cat ../src/morphan.l >>morphan.l
	touch setup

unify:	../src/unify.${UTYPE}
	cp ../src/unify.${UTYPE} unify

parser:	../src/parser.${UTYPE}
	cp ../src/parser.${UTYPE} parser

specrouts:	../src/specrouts.${UTYPE}
	cp ../src/specrouts.${UTYPE} specrouts

catrouts:	../src/catrouts.${UTYPE}
	cp ../src/catrouts.${UTYPE} catrouts

compile: ${SRCFILES} keywords
	docompile ${LISPCOM}
	touch compile

#
#    clean - remove rubbish files
#
clean:
		rm -f ${COMSRCFILES} ; rm -f *.o 
		rm -f code setup compile

