initial import of f0 code
[fleet.git] / Makefile
index 0b6239b..8d18f5d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -143,4 +143,15 @@ dist:
        @echo
 
 
+# you'll probably want to change this line
+ghc  = /usr/local/brian/ghc/compiler/ghc-inplace
+
+ghc += -fglasgow-exts -fallow-undecidable-instances -fallow-overlapping-instances -cpp 
+ghc += -i$(shell pwd)/build/hi/ -hidir $(shell pwd)/build/hi/ -odir $(shell pwd)/build/class/
+
+f0: fleet.jar
+       mkdir -p build/hi build/class
+       cd lib;                        $(ghc) -c -java SBP.lhs
+       cd src/edu/berkeley/fleet/f0/; $(ghc) -fglasgow-exts -cpp $(hflags)    -java Main.lhs
+       $(java) -cp build/class:lib/HSbase.jar:lib/HSrts.jar:lib/HSstm.jar:fleet.jar Main