summaryrefslogtreecommitdiff
path: root/makefile
blob: e9f7a723d44cde1acd16dd7117bbf1aa5ffeede2 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

OUTPUTDIR = bin
SOURCEDIR = src

EXECUTABLES  =  ${OUTPUTDIR}/test \
                ${OUTPUTDIR}/fractran \
                ${OUTPUTDIR}/thue \
                ${OUTPUTDIR}/unlambda \
                ${OUTPUTDIR}/brainfuck \
                ${OUTPUTDIR}/grasp

SWITCHES = -XDeriveDataTypeable



all: testprog fractranprog thueprog unlambdaprog brainfuckprog graspprog


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

distclean:
	rm ${EXECUTABLES}



testprog:
	cd ${SOURCEDIR}; \
	ghc ${SWITCHES} --make test.hs -o ../${OUTPUTDIR}/test

fractranprog:
	cd ${SOURCEDIR}; \
	ghc ${SWITCHES} --make fractran.hs -o ../${OUTPUTDIR}/fractran

thueprog:
	cd ${SOURCEDIR}; \
	ghc ${SWITCHES} --make thue.hs -o ../${OUTPUTDIR}/thue

unlambdaprog:
	cd ${SOURCEDIR}; \
	ghc ${SWITCHES} --make unlambda.hs -o ../${OUTPUTDIR}/unlambda

brainfuckprog:
	cd ${SOURCEDIR}; \
	ghc ${SWITCHES} --make brainfuck.hs -o ../${OUTPUTDIR}/brainfuck

graspprog:
	cd ${SOURCEDIR}; \
	ghc ${SWITCHES} --make grasp.hs -o ../${OUTPUTDIR}/grasp