packages feed

scc-0.2: Makefile

LibraryFiles=$(addprefix Control/Concurrent/SCC/, Foundation.hs ComponentTypes.hs Components.hs Combinators.hs)
DocumentationFiles=$(LibraryFiles)
CommonOptions=-hidir obj -odir obj

all: test test-prof shsh shsh-prof docs
docs: doc/index.html

test: $(LibraryFiles) Test.hs | obj
	ghc --make Test.hs -O2 -threaded -o test $(CommonOptions)

test-prof: $(LibraryFiles) Test.hs | obj
	ghc --make Test.hs -o test-prof -prof -auto-all $(CommonOptions)

shsh: $(LibraryFiles) Shell.hs | obj
	ghc --make Shell.hs -O2 -threaded -o shsh $(CommonOptions)

shsh-prof: $(LibraryFiles) Shell.hs | obj
	ghc --make Shell.hs -o shsh-prof -prof -auto-all $(CommonOptions)

doc/index.html: $(DocumentationFiles)
	haddock -h -o doc $^

obj:
	mkdir -p $@

clean:
	rm -r obj/* prof/* doc/*