X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=Makefile;h=43d6717d789c21bd280cc17d2972ea32dbb5e0fe;hp=bff58007b580b96179ae5eb03222a607d719517a;hb=0620c2d97d6df986d74dbe13160afb1435096431;hpb=0c94acf3155fe6b26678c1dd162b71eaf102597d diff --git a/Makefile b/Makefile index bff5800..43d6717 100644 --- a/Makefile +++ b/Makefile @@ -198,3 +198,15 @@ bin/HaskellDemo: src/SBP.hs \ cd bin; $(ghc) -i../src/ -c ../src/HaskellDemo.hs $(link) -o HaskellDemo.o cd bin; for A in *.hs; do $(ghc) -c $$A $(link); done cd bin; $(ghc) $(linkopts) $(link) -o HaskellDemo *.o + + +ghcroot = /usr/local/brian/ghc +ghc = $(ghcroot)/compiler/ghc-inplace +ghclibs = $(ghcroot)/rts/HSrts.jar:$(ghcroot)/libraries/base/HSbase.jar:$(ghcroot)/libraries/stm/HSstm.jar + +bin/Main.class: src/Main.lhs src/SBP.lhs + cd src; $(ghc) -fglasgow-exts -cpp -odir ../bin -c -java SBP.lhs + cd src; $(ghc) -fglasgow-exts -cpp -odir ../bin -java Main.lhs + +go: bin/Main.class edu.berkeley.sbp.jar + java -cp bin:$(ghclibs):edu.berkeley.sbp.jar Main \ No newline at end of file