Makefile.am 4.07 KB
Newer Older
1
## -*- coding: utf-8 -*-
2
## Copyright (C) 2010, 2011, 2013-2017 Laboratoire de Recherche
3
## et Development de l'Epita (LRDE).
4
## Copyright (C) 2003, 2004  Laboratoire d'Informatique de Paris 6 (LIP6),
5
## département Systèmes Répartis Coopératifs (SRC), Université Pierre
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
6
7
8
9
10
11
## et Marie Curie.
##
## This file is part of Spot, a model checking library.
##
## Spot is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
12
## the Free Software Foundation; either version 3 of the License, or
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
13
14
15
16
17
18
19
20
## (at your option) any later version.
##
## Spot is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
## License for more details.
##
## You should have received a copy of the GNU General Public License
21
## along with this program.  If not, see <http://www.gnu.org/licenses/>.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
22

23
SUBDIRS = . ajax
24

25
26
AUTOMAKE_OPTIONS = subdir-objects

27
AM_CPPFLAGS = -I$(PYTHONINC) -I$(top_builddir) -I$(top_srcdir) \
28
	      $(BUDDY_CPPFLAGS) -DSWIG_TYPE_TABLE=spot
29

30
31
32
33
34
# Disable fastproxy, because IPython 2 bogusly ignores _repr_latex_
# when -fastproxy is used.
#   https://github.com/ipython/ipython/issues/7003
# Once a fixed version of IPython hits Debian stable, we can remove
# this.
35
SWIGFLAGS = -c++ -python -py3 -O -nofastproxy -MD
36

37
EXTRA_DIST = buddy.i spot/impl.i spot/ltsmin.i spot/gen.i
38
39
nobase_python_PYTHON = \
  spot/__init__.py \
40
  spot/aux.py \
41
42
  spot/impl.py \
  spot/ltsmin.py \
43
  spot/gen.py \
44
  buddy.py
45
46
nobase_pyexec_LTLIBRARIES = _buddy.la spot/_impl.la \
  spot/_ltsmin.la spot/_gen.la
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
47

48
MAINTAINERCLEANFILES = \
49
  $(srcdir)/spot/impl_wrap.cxx $(srcdir)/spot/impl.py \
50
  $(srcdir)/spot/ltsmin_wrap.cxx $(srcdir)/spot/ltsmin.py \
51
  $(srcdir)/spot/gen_wrap.cxx $(srcdir)/spot/gen.py \
52
  $(srcdir)/buddy_wrap.cxx $(srcdir)/buddy.py
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
53
54
55

## spot

56
spot__impl_la_SOURCES = spot/impl_wrap.cxx
57
58
spot__impl_la_LDFLAGS = -avoid-version -module $(SYMBOLIC_LDFLAGS)
spot__impl_la_LIBADD = $(top_builddir)/spot/libspot.la
59

60
61
@AMDEP_TRUE@@am__include@ @am__quote@./spot/$(DEPDIR)/impl_wrap.Pcxx@am__quote@

62
${srcdir}/spot/impl_wrap.cxx: spot/impl.i
63
64
	$(SWIG) $(SWIGFLAGS) -I$(srcdir) -I$(top_srcdir) -MF spot/$(DEPDIR)/impl_wrap.TPcxx $(srcdir)/spot/impl.i
	mv spot/$(DEPDIR)/impl_wrap.TPcxx spot/$(DEPDIR)/impl_wrap.Pcxx
65

66
spot/impl.py: spot/impl.i
67
	$(MAKE) $(AM_MAKEFLAGS) spot/impl_wrap.cxx
68

Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
69

70
71
## spot-ltsmin

72
spot__ltsmin_la_SOURCES = spot/ltsmin_wrap.cxx
73
74
75
76
spot__ltsmin_la_LDFLAGS = -avoid-version -module $(SYMBOLIC_LDFLAGS)
spot__ltsmin_la_LIBADD = $(top_builddir)/spot/libspot.la \
                       $(top_builddir)/spot/ltsmin/libspotltsmin.la

77
78
@AMDEP_TRUE@@am__include@ @am__quote@./spot/$(DEPDIR)/ltsmin_wrap.Pcxx@am__quote@

79
${srcdir}/spot/ltsmin_wrap.cxx: spot/ltsmin.i
80
81
	$(SWIG) $(SWIGFLAGS) -I$(srcdir) -I$(top_srcdir) -MF spot/$(DEPDIR)/ltsmin_wrap.TPcxx $(srcdir)/spot/ltsmin.i
	mv spot/$(DEPDIR)/ltsmin_wrap.TPcxx spot/$(DEPDIR)/ltsmin_wrap.Pcxx
82

83
spot/ltsmin.py: spot/ltsmin.i
84
85
86
	$(MAKE) $(AM_MAKEFLAGS) spot/ltsmin_wrap.cxx


87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
## spot-gen

spot__gen_la_SOURCES = spot/gen_wrap.cxx
spot__gen_la_LDFLAGS = -avoid-version -module $(SYMBOLIC_LDFLAGS)
spot__gen_la_LIBADD = $(top_builddir)/spot/libspot.la \
                       $(top_builddir)/spot/gen/libspotgen.la

@AMDEP_TRUE@@am__include@ @am__quote@./spot/$(DEPDIR)/gen_wrap.Pcxx@am__quote@

${srcdir}/spot/gen_wrap.cxx: spot/gen.i
	$(SWIG) $(SWIGFLAGS) -I$(srcdir) -I$(top_srcdir) -MF spot/$(DEPDIR)/gen_wrap.TPcxx $(srcdir)/spot/gen.i
	mv spot/$(DEPDIR)/gen_wrap.TPcxx spot/$(DEPDIR)/gen_wrap.Pcxx

spot/gen.py: spot/gen.i
	$(MAKE) $(AM_MAKEFLAGS) spot/gen_wrap.cxx


Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
104
105
## buddy

106
_buddy_la_SOURCES = buddy_wrap.cxx
107
_buddy_la_LDFLAGS = -avoid-version -module $(BUDDY_LDFLAGS) $(SYMBOLIC_LDFLAGS)
108

109
110
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buddy_wrap.Pcxx@am__quote@

111
${srcdir}/buddy_wrap.cxx: buddy.i
112
113
	$(SWIG) $(SWIGFLAGS) $(BUDDY_CPPFLAGS) -MF $(DEPDIR)/buddy_wrap.TPcxx $(srcdir)/buddy.i
	mv $(DEPDIR)/buddy_wrap.TPcxx $(DEPDIR)/buddy_wrap.Pcxx
114

115
buddy.py: buddy.i
116
	$(MAKE) $(AM_MAKEFLAGS) buddy_wrap.cxx