YACC=bison
LEX=flex
CC=gcc -g -W
MV=mv

all: ecma.elc

ecma.act ecma.tab.c ecma.tab.h ecma.output: ecma.y
	-$(YACC)  -d -n -v $<

ecma.elc: ecma.tab.c parser.elc parser-ext.elc

%.elc:	%.el
	emacs -batch -q -no-site-file --eval '(setq load-path (cons "." load-path))' -f batch-byte-compile $<

clean:
	$(RM) debug *.elc *.o jl.c ecma.act ecma.tab.c ecma.tab.h ecma.output j.c j *~ core a.out lex.yy.c
