# command to run XEmacs (19.15 or higher)
XEMACS= xemacs

# command to run SICStus Prolog (3.0.6 or higher)
SICSTUS= sicstus

# Make no changes below this line----------------------------------------

.SUFFIXES: .ql .pl
.pl.ql:
	-echo "prolog_flag(character_escapes,_,on),fcompile('$*')." | $(SICSTUS) -f -i

emacs: sicstus-debug.elc noemacs

sicstus-debug.elc:  sicstus-debug.el
	-$(XEMACS) -batch -funcall batch-byte-compile sicstus-debug.el

noemacs:  emacs-interface.ql source-debug.ql

clean:
	-rm -f emacs-interface.ql source-debug.ql sicstus-debug.elc
