summaryrefslogtreecommitdiff
path: root/makefile
blob: 9b0cfead70b823343edca673f9b5fd06513a029b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

OUTPUTDIR = bin

EXECUTABLES = ${OUTPUTDIR}/test ${OUTPUTDIR}/fractran ${OUTPUTDIR}/thue ${OUTPUTDIR}/unlambda



all: testprog fractranprog thueprog unlambdaprog


clean:
	find . -name '*.hi' -delete
	find . -name '*.o' -delete

distclean:
	rm ${EXECUTABLES}



testprog:
	ghc -XDeriveDataTypeable --make test.hs -o ${OUTPUTDIR}/test

fractranprog:
	ghc --make fractran.hs -o ${OUTPUTDIR}/fractran

thueprog:
	ghc --make thue.hs -o ${OUTPUTDIR}/thue

unlambdaprog:
	ghc -XDeriveDataTypeable --make unlambda.hs -o ${OUTPUTDIR}/unlambda