summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2014-03-18 01:57:23 +1100
committerJed Barber <jjbarber@y7mail.com>2014-03-18 01:57:23 +1100
commit0ca67c7536c8ab158c6271d8d72e9786f0e0652b (patch)
tree33860dd4e6863c6f68db73ce14bf16bd358d4e67 /makefile
parenteecb6118d595caffa169e4ababce30e6b8829088 (diff)
Refactored testcases into separate modules for each language
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