X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Fext-core%2FMakefile;h=ec228e734dc058da70066d539077c3a5ef35e4d0;hb=60a826b1d835042e15c3d825f6a1baf310a8bb1b;hp=e3023875cec6522d7636f552fb6fd3093413ef32;hpb=6e93da5e0a775b2bfb9c9f2bd31a36cc828521cb;p=ghc-hetmet.git diff --git a/utils/ext-core/Makefile b/utils/ext-core/Makefile index e302387..ec228e7 100644 --- a/utils/ext-core/Makefile +++ b/utils/ext-core/Makefile @@ -1,5 +1,26 @@ -all: Check.hs Core.hs Driver.hs Env.hs Interp.hs ParsecParser.hs ParseGlue.hs Prep.hs Prims.hs Printer.hs - ghc --make -fglasgow-exts -o Driver Driver.hs +all: extcorelibs Check.hs Core.hs Driver.hs Env.hs Interp.hs ParsecParser.hs ParseGlue.hs Prep.hs PrimCoercions.hs Prims.hs Printer.hs + ghc -O2 --make -fglasgow-exts -o Driver Driver.hs + +extcorelibs: + $(MAKE) -C lib/GHC_ExtCore + +# Run this when the primops.txt file changes +prims: ../../compiler/prelude/primops.txt + ../genprimopcode/genprimopcode --make-ext-core-source < ../../compiler/prelude/primops.txt > PrimEnv.hs #Parser.hs: Parser.y -# happy -ad -ihappy.debug -o Parser.hs Parser.y \ No newline at end of file +# happy -ad -ihappy.debug -o Parser.hs Parser.y + +# The following assumes that you've built all the GHC libs with -fext-core... +libtest: all + ./Driver -n `find ../../libraries -print | grep .hcr$$ | grep -v bootstrapping` + +# ...or built all the nofib programs with -fext-core. +nofibtest: all + ./Driver `find ../../nofib -print | grep .hcr$$` + +clean: + rm -f Driver *.hi *.o + +reallyclean: clean + rm PrimEnv.hs \ No newline at end of file