summaryrefslogtreecommitdiff
path: root/tiger-compiler/tcsh/python/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/tcsh/python/Makefile.am')
-rw-r--r--tiger-compiler/tcsh/python/Makefile.am60
1 files changed, 60 insertions, 0 deletions
diff --git a/tiger-compiler/tcsh/python/Makefile.am b/tiger-compiler/tcsh/python/Makefile.am
new file mode 100644
index 0000000..442b582
--- /dev/null
+++ b/tiger-compiler/tcsh/python/Makefile.am
@@ -0,0 +1,60 @@
+## ------------------------ ##
+## Included sub makefiles. ##
+## ------------------------ ##
+
+include $(top_srcdir)/tcsh/run.mk
+
+pyexec_LTLIBRARIES =
+
+# Build a Swig wrapper for each module.
+$(srcdir)/swig.mk: $(top_srcdir)/tcsh/generate-swig-mk
+ $(AM_V_GEN)top_srcdir="$(top_srcdir)" $< python $@.tmp
+ $(AM_V_at)mv -f $@.tmp $@
+ $(AM_V_at)chmod -w $@
+include $(srcdir)/swig.mk
+
+AM_CPPFLAGS = \
+ -I$(top_srcdir)/lib -I$(top_srcdir)/src -I$(top_builddir)/src \
+ -I$(top_srcdir)/tcsh/src \
+ $(BOOST_CPPFLAGS) \
+ -I$(PYTHONINC)
+AM_SWIGFLAGS = -c++ -python -py3 -I$(top_srcdir)/lib -I$(top_srcdir)/src
+
+# Tiger Compiler module loader.
+python_PYTHON = tc.py
+# Tiger interpreter.
+python_PYTHON += ti.py
+
+
+
+## --------- ##
+## Testing. ##
+## --------- ##
+
+EXTRA_DIST = $(TESTS)
+EXTRA_DIST += $(srcdir)/tests/ipynbtest.py
+
+TESTS_ENVIRONMENT = \
+ top_srcdir="$(top_srcdir)" top_builddir="$(top_builddir)"
+# Ensure `run' is rebuilt before the tests are run.
+$(TESTS): $(srcdir)/run.stamp
+# The dependency is on `run.in' and not `run', since `run' is
+# regenerated at distribution time, and voids the time stamps (which
+# we don't want!).
+EXTRA_DIST += $(srcdir)/run.stamp
+$(srcdir)/run.stamp: $(RUN_IN)
+ $(AM_V_GEN)rm -f $@ $@.tmp
+ $(AM_V_at)touch $@.tmp
+ $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) $(RUN)
+ $(AM_V_at)mv -f $@.tmp $@
+
+TESTS =
+TESTS += tcsh-llvm.test
+
+LOG_COMPILER = $(srcdir)/../run
+TESTS += tests/tc.ipynb tests/ti.ipynb tests/misc.ipynb tests/common.ipynb \
+ tests/parse.ipynb tests/object.ipynb
+TESTS += tests/ast.ipynb
+TESTS += tests/bind.ipynb tests/escapes.ipynb
+TESTS += tests/type.ipynb tests/astclone.ipynb tests/desugar.ipynb
+TESTS += tests/combine.ipynb