Makefile.am 2 KB
Newer Older
1
2
## Copyright (C) 2010 Laboratoire de Recherche et Development de
## l'Epita (LRDE).
3
## Copyright (C) 2003, 2004  Laboratoire d'Informatique de Paris 6 (LIP6),
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## dpartement Systmes Rpartis Coopratifs (SRC), Universit Pierre
## 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
## the Free Software Foundation; either version 2 of the License, or
## (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
## along with Spot; see the file COPYING.  If not, write to the Free
## Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.

24
SUBDIRS = . cgi-bin tests
25

26
27
AM_CPPFLAGS = -I$(PYTHONINC) -I$(top_srcdir)/src $(BUDDY_CPPFLAGS) \
	      -DSWIG_TYPE_TABLE=spot
28

Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
29
EXTRA_DIST = spot.i buddy.i
30
31
python_PYTHON = $(srcdir)/spot.py $(srcdir)/buddy.py
pyexec_LTLIBRARIES = _spot.la _buddy.la
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
32

33
34
35
MAINTAINERCLEANFILES = \
  $(srcdir)/spot_wrap.cxx $(srcdir)/spot.py \
  $(srcdir)/buddy_wrap.cxx $(srcdir)/buddy.py
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
36
37
38

## spot

39
_spot_la_SOURCES = $(srcdir)/spot_wrap.cxx $(srcdir)/spot_wrap.h
40
_spot_la_LDFLAGS = -avoid-version -module
41
_spot_la_LIBADD = $(top_builddir)/src/libspot.la
42

43
$(srcdir)/spot_wrap.cxx: $(srcdir)/spot.i
44
	$(SWIG) -c++ -python -I$(srcdir) -I$(top_srcdir)/src $(srcdir)/spot.i
45

46
$(srcdir)/spot.py: $(srcdir)/spot.i
47
48
	$(MAKE) $(AM_MAKEFLAGS) spot_wrap.cxx

Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
49
50
51

## buddy

52
_buddy_la_SOURCES = $(srcdir)/buddy_wrap.cxx
53
_buddy_la_LDFLAGS = -avoid-version -module $(BUDDY_LDFLAGS)
54
55

$(srcdir)/buddy_wrap.cxx: $(srcdir)/buddy.i
56
	$(SWIG) -c++ -python $(BUDDY_CPPFLAGS) $(srcdir)/buddy.i
57
58
59

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