Makefile.am 2.37 KB
Newer Older
1
## -*- coding: utf-8 -*-
2
## Copyright (C) 2010, 2011, 2013, 2014, 2015, 2016 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
AM_CPPFLAGS = -I$(PYTHONINC) -I$(top_builddir) -I$(top_srcdir) \
26
	      $(BUDDY_CPPFLAGS) -DSWIG_TYPE_TABLE=spot
27

28
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.
SWIGFLAGS = -c++ -python -py3 -O -nofastproxy

35
36
37
38
39
40
EXTRA_DIST = spot/impl.i buddy.i
python_PYTHON = \
  $(srcdir)/spot/__init__.py \
  $(srcdir)/spot/impl.py \
  $(srcdir)/buddy.py
pyexec_LTLIBRARIES = spot/_impl.la _buddy.la
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
41

42
MAINTAINERCLEANFILES = \
43
  $(srcdir)/spot/impl_wrap.cxx $(srcdir)/spot/impl.py \
44
  $(srcdir)/buddy_wrap.cxx $(srcdir)/buddy.py
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
45
46
47

## spot

48
49
50
spot__impl_la_SOURCES = $(srcdir)/spot/impl_wrap.cxx
spot__impl_la_LDFLAGS = -avoid-version -module $(SYMBOLIC_LDFLAGS)
spot__impl_la_LIBADD = $(top_builddir)/spot/libspot.la
51

52
53
$(srcdir)/spot/impl_wrap.cxx: $(srcdir)/spot/impl.i
	$(SWIG) $(SWIGFLAGS) -I$(srcdir) -I$(top_srcdir) $(srcdir)/spot/impl.i
54

55
56
$(srcdir)/spot/impl.py: $(srcdir)/spot/impl.i
	$(MAKE) $(AM_MAKEFLAGS) spot/impl_wrap.cxx
57

Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
58
59
60

## buddy

61
_buddy_la_SOURCES = $(srcdir)/buddy_wrap.cxx
62
_buddy_la_LDFLAGS = -avoid-version -module $(BUDDY_LDFLAGS) $(SYMBOLIC_LDFLAGS)
63
64

$(srcdir)/buddy_wrap.cxx: $(srcdir)/buddy.i
65
	$(SWIG) $(SWIGFLAGS) $(BUDDY_CPPFLAGS) $(srcdir)/buddy.i
66
67
68

$(srcdir)/buddy.py: $(srcdir)/buddy.i
	$(MAKE) $(AM_MAKEFLAGS) buddy_wrap.cxx