summaryrefslogtreecommitdiffstats
path: root/swig/Makefile.am
blob: 1b3b4a23273177b079ff12f01ea157f64626baa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
INCLUDES = -I$(top_srcdir)/include

BUILT_SOURCES = $(srcdir)/plist_wrap.c
SWIG_SOURCES = plist.i 

swigincludedir =$(includedir)/plist/swig
swiginclude_HEADERS = $(SWIG_SOURCES)

pkgpython_PYTHON = PList.py __init__.py
pkgpyexec_LTLIBRARIES = _PList.la
_PList_la_SOURCES = $(srcdir)/plist_wrap.c $(SWIG_SOURCES)
_PList_la_CFLAGS = $(PYTHON_CPPFLAGS) -I$(top_srcdir)/src
_PList_la_LDFLAGS = -module $(PYTHON_LDFLAGS)
_PList_la_LIBADD = ../src/libplist.la

$(srcdir)/plist_wrap.c : $(SWIG_SOURCES)
	$(SWIG) $(SWIG_PYTHON_OPT) $(INCLUDES) -I$(top_srcdir)/src -o $@ $<