X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=Makefile;h=51fde734c2ffec4b0ac70179d91e73e4f819bced;hp=43d6717d789c21bd280cc17d2972ea32dbb5e0fe;hb=3510e3528c0eada0483b4facd0875be25c6bbda5;hpb=fe637b465179cf2a217bbfc76d12bc41551b4ac4 diff --git a/Makefile b/Makefile index 43d6717..51fde73 100644 --- a/Makefile +++ b/Makefile @@ -25,9 +25,8 @@ regress: make test profile: edu.berkeley.sbp.jar - $(java) -agentlib:yjpagent \ - -cp $< edu.berkeley.sbp.misc.RegressionTests \ - -profile \ + $(java) -cp $< edu.berkeley.sbp.misc.RegressionTests \ + -profile -agentlib:yjpagent \ tests/meta.g \ tests/testcase.g \ tests/regression.tc @@ -201,12 +200,13 @@ bin/HaskellDemo: src/SBP.hs \ ghcroot = /usr/local/brian/ghc -ghc = $(ghcroot)/compiler/ghc-inplace +ghc = $(ghcroot)/compiler/ghc-inplace -fallow-undecidable-instances -fallow-overlapping-instances 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 +#profile=-agentlib:yjpagent go: bin/Main.class edu.berkeley.sbp.jar - java -cp bin:$(ghclibs):edu.berkeley.sbp.jar Main \ No newline at end of file + java $(profile) -cp bin:$(ghclibs):edu.berkeley.sbp.jar Main \ No newline at end of file