X-Git-Url: https://ruin.nu/git/?p=proglang.git;a=blobdiff_plain;f=Makefile;h=b6815c2f1a4339c40837cb76e73659ee345d3bf5;hp=fe345b456c3c7f00c512d080884fbaf66a810a24;hb=HEAD;hpb=93b042040034d199c925248a2dd1c321773ab6d0 diff --git a/Makefile b/Makefile index fe345b4..b6815c2 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,31 @@ -all: - happy -gca -idebug Parsyntax.y - alex -g Lexsyntax.x +all: CompInt + +doc: Docsyntax.dvi + +Docsyntax.dvi: Docsyntax.tex latex Docsyntax.tex; dvips Docsyntax.dvi -o Docsyntax.ps + +Testsyntax: Testsyntax.hs Parsyntax.hs Lexsyntax.hs Abssyntax.hs ghc --make Testsyntax.hs -o Testsyntax + +Typechecker: Typechecker.hs Typecheck.hs Parsyntax.hs Lexsyntax.hs Abssyntax.hs ghc -fglasgow-exts --make Typechecker.hs -o Typechecker + +Interpreter: Interpreter.hs Interpret.hs Typecheck.hs Parsyntax.hs Lexsyntax.hs Abssyntax.hs + ghc -fglasgow-exts --make Interpreter.hs -o Interpreter + +Compiler: Compiler.hs Compile.hs Typecheck.hs Parsyntax.hs Lexsyntax.hs Abssyntax.hs + ghc -fglasgow-exts --make Compiler.hs -o Compiler + +CompInt: CompInt.hs Compile.hs Interpret.hs Typecheck.hs Parsyntax.hs Lexsyntax.hs Abssyntax.hs + ghc -fglasgow-exts --make CompInt.hs -o CompInt + +Parsyntax.hs: Parsyntax.y + happy -gca -idebug Parsyntax.y + +Lexsyntax.hs: Lexsyntax.x + alex -g Lexsyntax.x + clean: -rm -f *.log *.aux *.hi *.o *.dvi -rm -f Docsyntax.ps