Added parse error on empty program.
[jars.git] / Makefile
index 3a8ff85..e6aca14 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-all : koth run-mars
+all : koth run-mars debug-mars
 
 %.so : %.scm
        csc -s $< -J
@@ -6,8 +6,20 @@ all : koth run-mars
 run-mars : run-mars.scm mars.so parser.so visualizer.so
        csc run-mars.scm
 
+debug-mars : debug-mars.scm mars.so parser.so
+       csc debug-mars.scm
+
 koth : koth.scm mars.so parser.so
        csc koth.scm
 
 clean :
-       rm koth run-mars *.so
+       rm -f koth run-mars *.so *.link *.import.scm *.o
+
+koth_linux:
+       csc_linux -c mars.scm -unit mars -J
+       csc_linux -c parser.scm -unit parser -J
+       csc_linux koth.scm -link mars,parser
+
+# csc_linux -c mars.scm -unit mars -uses matchable -J
+# csc_linux -c parser.scm -unit parser -uses srfi-13 -J
+# csc_linux -static -L -static koth.scm -link mars,parser,matchable,srfi-13