X-Git-Url: http://git.megacz.com/?p=coq-hetmet.git;a=blobdiff_plain;f=examples%2FMakefile;h=4e47c6e2a1f340d1d9984a7d94de4af76fbd1349;hp=b9fa6a78cdcfe9f0d14c0a6171b1ffc28def6d94;hb=ec996e8cb550676d89d187061db7d018af9ec88d;hpb=8064e50e47f40228631f8a96ba28cbfb570c76ff diff --git a/examples/Makefile b/examples/Makefile index b9fa6a7..4e47c6e 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,11 +1,16 @@ -ghc_opt := -fwarn-incomplete-patterns -Werror +# -fwarn-incomplete-patterns + +ghc = ../../../inplace/bin/ghc-stage2 +#ghc = ghc +ghc_opt := -Werror -odir .build -hidir .build open: make demo open .build/test.pdf #sanity += BiGArrow.hs -#sanity += CircuitExample.hs +sanity += IFLDemos.hs +sanity += CircuitExample.hs sanity += CommandSyntaxExample.hs sanity += DotProduct.hs sanity += GArrowTutorial.hs @@ -14,18 +19,31 @@ sanity += ImmutableHeap.hs sanity += IsomorphismForCodeTypes.hs sanity += LambdaCalculusInterpreter.hs sanity += TypeSafeRun.hs -sanity += Unflattening.hs +#sanity += Unflattening.hs + +sanity_opts = -dcore-lint -fforce-recomp -fcoqpass -ddump-coqpass -ddump-to-file +sanity_opts += -fsimpleopt-before-flatten +sanity_opts += -odir .build -hidir .build sanity: - ../../../inplace/bin/ghc-stage2 -dcore-lint -fforce-recomp -fcoqpass -ddump-coqpass -ddump-to-file \ - $(sanity) \ - +RTS -K500M + for A in $(sanity); do echo; echo; $(ghc) $(sanity_opts) $$A +RTS -K500M || exit -1; done + +demo-pretty: + $(ghc) $(ghc_opt) -main-is GArrowPretty GArrowPretty.hs -o GArrowPretty + +demo-v: + $(ghc) $(ghc_opt) -main-is GArrowVerilog GArrowVerilog.hs -o GArrowVerilog + ./GArrowVerilog +demo-verilog: + $(ghc) $(sanity_opts) -c VerilogDemo.hs + $(ghc) $(ghc_opt) -main-is GArrowVerilog GArrowVerilog.hs -o GArrowVerilog + ./GArrowVerilog demo: mkdir -p .build - ../../../inplace/bin/ghc-stage2 $(ghc_opt) -odir .build -hidir .build -c Demo.hs -fforce-recomp - ../../../inplace/bin/ghc-stage2 $(ghc_opt) -odir .build -hidir .build --show-iface .build/Demo.hi - ../../../inplace/bin/ghc-stage2 $(ghc_opt) -odir .build -hidir .build GArrowTikZ.hs Demo.hs DemoMain.hs Unify.hs -o .build/demo + $(ghc) $(ghc_opt) -c Demo.hs -fforce-recomp + $(ghc) $(ghc_opt) --show-iface .build/Demo.hi + $(ghc) $(ghc_opt) GArrowTikZ.hs Demo.hs DemoMain.hs Unify.hs -o .build/demo ./.build/demo > .build/test.tex - cd .build; pdflatex test.tex + cd .build; TEXINPUTS=../tex-bits/:$TEXINPUTS: pdflatex test.tex