
GHC  = ghc -O2 --make -Wall
ALL = hist clusc filter xcerpt add_single clusterlibs ace2contigs ace2fasta

all: $(ALL)

dist: all
	tar zcvf cluster_tools-linux_x86.tgz README $(ALL)

hist: src/Hist.hs
	$(GHC) src/Hist.hs -o hist

clusc: src/Cluscomp.lhs
	$(GHC) src/Cluscomp.lhs -o clusc

add_single: src/AddSingletons.hs
	$(GHC) src/AddSingletons.hs -o add_single

filter: src/Filter.hs
	$(GHC) src/Filter.hs -o filter

xcerpt: src/Xcerpt.lhs
	$(GHC) src/Xcerpt.lhs -o xcerpt

xplit:  src/Xplit.lhs
	$(GHC) src/Xplit.lhs -o xplit

clusterlibs: src/ClusterLibs.hs
	$(GHC) src/ClusterLibs.hs -o clusterlibs

ace2contigs: src/Ace2Contigs.hs
	$(GHC) src/Ace2Contigs.hs -o ace2contigs

ace2fasta: src/Ace2Fasta.hs
	$(GHC) src/Ace2Fasta.hs -o ace2fasta
