Fix External Core interpreter
[ghc-hetmet.git] / utils / ext-core / Makefile
1 all:    extcorelibs Check.hs Core.hs Driver.hs Env.hs Interp.hs ParsecParser.hs ParseGlue.hs Prep.hs PrimCoercions.hs Prims.hs Printer.hs
2         ghc -O2 --make -fglasgow-exts -o Driver Driver.hs
3
4 extcorelibs:
5         $(MAKE) -C lib/GHC_ExtCore
6
7 # Run this when the primops.txt file changes
8 prims:  ../../compiler/prelude/primops.txt
9         ../genprimopcode/genprimopcode --make-ext-core-source < ../../compiler/prelude/primops.txt > PrimEnv.hs
10
11 #Parser.hs: Parser.y
12 #       happy -ad -ihappy.debug -o Parser.hs Parser.y
13
14 # The following assumes that you've built all the GHC libs with -fext-core...
15 libtest: all
16         ./Driver `find ../../libraries -print | grep .hcr$$ | grep -v bootstrapping`
17
18 # ...or built all the nofib programs with -fext-core.
19 nofibtest: all
20         ./Driver `find ../../nofib -print | grep .hcr$$`
21
22 clean:
23         rm -f Driver *.hi *.o
24
25 reallyclean: clean
26         rm PrimEnv.hs