X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=utils%2Fext-core%2FMakefile;h=99bd6d29c78275132c6ae297172bbcbbcae6a904;hb=e6232609a0b08ff7136a479f2e2d7d2be5040b1d;hp=c26523a9577e38b1cf32fec575f1d26f9ccb2861;hpb=c287bea94592fffe63f85831ab651c28d64e4d6e;p=ghc-hetmet.git diff --git a/utils/ext-core/Makefile b/utils/ext-core/Makefile index c26523a..99bd6d2 100644 --- a/utils/ext-core/Makefile +++ b/utils/ext-core/Makefile @@ -1,26 +1,11 @@ -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 +# This makefile is just for running the tests. For everything else, +# use Cabal! (The tests could be run with Cabal too, I'm just too lazy +# to figure out how.) # The following assumes that you've built all the GHC libs with -fext-core... -libtest: all - ./Driver `find ../../libraries -print | grep .hcr$$ | grep -v bootstrapping` +libtest: + ./Driver -n `find ../../libraries -print | grep .hcr$$ | grep -v bootstrapping` # ...or built all the nofib programs with -fext-core. -nofibtest: all +nofibtest: ./Driver `find ../../nofib -print | grep .hcr$$` - -clean: - rm -f Driver *.hi *.o - -reallyclean: clean - rm PrimEnv.hs \ No newline at end of file