#
# File:    handc/demo/calc/Makefile
#
#          Copyright (C)1995 Donovan Kolbly <donovan@tkg.com>
#          as part of the RScheme project, licensed for free use
#
# Version: 1.2
# Date:    %G% 11:18:39
# Build:   v0.7.2, 97.12.21
#
#


APPFILES=main.scm scanner.scm

calc: $(APPFILES) makex syntax.tab
	rs $(APPFILES) -c calc
	chmod +x calc
	makex calc `which rs`

makex: makex.c
	cc makex.c -o makex

syntax.tab: syntax.grm
	rs +zebu_gen -e '(compile-lalr1-grammar "syntax.grm" "syntax.tab")' -exit

clean::
	rm -f syntax.tab makex calc
