Makefile.am 1.07 KB
Newer Older
1
SUBDIRS = . cgi tests
2

3
AM_CPPFLAGS = -I$(PYTHONINC) -I$(top_srcdir)/src $(BUDDY_CPPFLAGS)
4

5
6
7
EXTRA_DIST = ltihooks.py spot.i buddy.i
python_PYTHON = $(srcdir)/spot.py $(srcdir)/buddy.py
pyexec_LTLIBRARIES = _spot.la _buddy.la
8
9
10
11
12
lib_LTLIBRARIES = libspotswigpy.la

libspotswigpy_la_SOURCES = libpy.c
libspotswigpy_la_CFLAGS = -DSWIG_GLOBAL
libspotswigpy_la_LDFLAGS = -avoid-version
13

14
_spot_la_SOURCES = $(srcdir)/spot_wrap.cxx
15
_spot_la_LDFLAGS = -avoid-version -module
16
_spot_la_LIBADD = $(top_builddir)/src/libspot.la libspotswigpy.la
17

18
$(srcdir)/spot_wrap.cxx: $(srcdir)/spot.i
19
	swig -c -c++ -python -I$(srcdir) -I$(top_srcdir)/src $(srcdir)/spot.i
20

21
$(srcdir)/spot.py: $(srcdir)/spot.i
22
23
	$(MAKE) $(AM_MAKEFLAGS) spot_wrap.cxx

24
_buddy_la_SOURCES = $(srcdir)/buddy_wrap.cxx
25
_buddy_la_LDFLAGS = -avoid-version -module $(BUDDY_LDFLAGS) libspotswigpy.la
26
27

$(srcdir)/buddy_wrap.cxx: $(srcdir)/buddy.i
28
	swig -c -c++ -python $(BUDDY_CPPFLAGS) $(srcdir)/buddy.i
29
30
31
32
33

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


34
MAINTAINERCLEANFILES = $(srcdir)/spot_wrap.cxx $(srcdir)/spot.py