blob: 442b582ae34c3245f39a6f1214b8aea018b38852 (
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
51
52
53
54
55
56
57
58
59
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
|