packages feed

uvector-0.1: tests/Makefile

all: hpc fusion

FLAGS=-fglasgow-exts -O2 -funbox-strict-fields -fdicts-cheap -fno-method-sharing -fmax-simplifier-iterations10 -fcpr-off -DSAFE -cpp -I../include
hpc:
	rm -f run.tix
	ghc ${FLAGS} -no-recomp --make Properties/Test.hs -i.. -fhpc -o run
	time ./run
	hpc markup run --exclude=Properties.Utils --exclude=Properties.Monomorphic.Base --exclude=Properties.Monomorphic.UVector

fusion:
	( cd Fusion   && ghc -O --make Test.hs && ./Test )
	( cd Examples && ghc -O --make Test.hs && ./Test )

clean:
	rm -f *.html
	find . -name '*~'  -exec rm {} \;
	find . -name '*.hi' -exec rm {} \;
	find . -name '*.o'  -exec rm {} \;
	find . -name '*.log'  -exec rm {} \;
	find ../Data -name '*~'  -exec rm {} \;
	find ../Data -name '*.hi' -exec rm {} \;
	find ../Data -name '*.o'  -exec rm {} \;
	rm -f fuse raw run Performance Fusion/Test Examples/Test
	rm -f *.tix
	rm -rf .hpc