Makefile.am 2.33 KB
Newer Older
1
## -*- coding: utf-8 -*-
2 3
## Copyright (C) 2010, 2011, 2013, 2014, 2015 Laboratoire de Recherche
## 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
EXTRA_DIST = spot_impl.i buddy.i
python_PYTHON = $(srcdir)/spot_impl.py $(srcdir)/buddy.py spot.py
pyexec_LTLIBRARIES = _spot_impl.la _buddy.la
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
38

39
MAINTAINERCLEANFILES = \
40
  $(srcdir)/spot_impl_wrap.cxx $(srcdir)/spot_impl.py \
41
  $(srcdir)/buddy_wrap.cxx $(srcdir)/buddy.py
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
42 43 44

## spot

45
_spot_impl_la_SOURCES = $(srcdir)/spot_impl_wrap.cxx
46
_spot_impl_la_LDFLAGS = -avoid-version -module $(SYMBOLIC_LDFLAGS)
47
_spot_impl_la_LIBADD = $(top_builddir)/spot/libspot.la
48

49
$(srcdir)/spot_impl_wrap.cxx: $(srcdir)/spot_impl.i
50
	$(SWIG) $(SWIGFLAGS) -I$(srcdir) -I$(top_srcdir) $(srcdir)/spot_impl.i
51

52 53
$(srcdir)/spot_impl.py: $(srcdir)/spot_impl.i
	$(MAKE) $(AM_MAKEFLAGS) spot_impl_wrap.cxx
54

Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
55 56 57

## buddy

58
_buddy_la_SOURCES = $(srcdir)/buddy_wrap.cxx
59
_buddy_la_LDFLAGS = -avoid-version -module $(BUDDY_LDFLAGS) $(SYMBOLIC_LDFLAGS)
60 61

$(srcdir)/buddy_wrap.cxx: $(srcdir)/buddy.i
62
	$(SWIG) $(SWIGFLAGS) $(BUDDY_CPPFLAGS) $(srcdir)/buddy.i
63 64 65

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