Improve External Core syntax for newtypes
[ghc-hetmet.git] / utils / ext-core / Makefile
1 all:    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 # Run this when the primops.txt file changes
5 prims:  ../../compiler/prelude/primops.txt
6         ../genprimopcode/genprimopcode --make-ext-core-source < ../../compiler/prelude/primops.txt > PrimEnv.hs
7
8 #Parser.hs: Parser.y
9 #       happy -ad -ihappy.debug -o Parser.hs Parser.y
10
11 # The following assumes that you've built all the GHC libs with -fext-core...
12 libtest: all
13         ./Driver `find ../../libraries -print | grep .hcr$$ | grep -v bootstrapping`
14
15 # ...or built all the nofib programs with -fext-core.
16 nofibtest: all
17         ./Driver `find ../../nofib -print | grep .hcr$$`
18
19 clean:
20         rm -f Driver *.hi *.o
21
22 reallyclean: clean
23         rm PrimEnv.hs