summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/makefile b/makefile
index 9b0cfea..0eb8b14 100644
--- a/makefile
+++ b/makefile
@@ -3,6 +3,8 @@ OUTPUTDIR = bin
EXECUTABLES = ${OUTPUTDIR}/test ${OUTPUTDIR}/fractran ${OUTPUTDIR}/thue ${OUTPUTDIR}/unlambda
+SWITCHES = -XDeriveDataTypeable
+
all: testprog fractranprog thueprog unlambdaprog
@@ -18,14 +20,14 @@ distclean:
testprog:
- ghc -XDeriveDataTypeable --make test.hs -o ${OUTPUTDIR}/test
+ ghc ${SWITCHES} --make test.hs -o ${OUTPUTDIR}/test
fractranprog:
- ghc --make fractran.hs -o ${OUTPUTDIR}/fractran
+ ghc ${SWITCHES} --make fractran.hs -o ${OUTPUTDIR}/fractran
thueprog:
- ghc --make thue.hs -o ${OUTPUTDIR}/thue
+ ghc ${SWITCHES} --make thue.hs -o ${OUTPUTDIR}/thue
unlambdaprog:
- ghc -XDeriveDataTypeable --make unlambda.hs -o ${OUTPUTDIR}/unlambda
+ ghc ${SWITCHES} --make unlambda.hs -o ${OUTPUTDIR}/unlambda