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

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

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 $@ $<