5ce7e4ce565cf03917080926b64f8a3450c20d79
[platform/upstream/rpm.git] / python / Makefile.am
1 # Makefile for rpm library.
2
3 EXTRA_DIST = rpmdebug-py.c rpm/__init__.py
4
5 if PYTHON
6 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
7 AM_CPPFLAGS += -I$(top_srcdir)/python
8 AM_CPPFLAGS += -I$(top_srcdir)/misc
9 AM_CPPFLAGS += -I@WITH_PYTHON_INCLUDE@
10
11 pkgpyexec_LTLIBRARIES = _rpmmodule.la
12 pkgpyexec_SCRIPTS = rpm/__init__.py
13
14 _rpmmodule_la_LDFLAGS = -module -avoid-version
15 _rpmmodule_la_LIBADD = \
16         $(top_builddir)/build/librpmbuild.la \
17         $(top_builddir)/lib/librpm.la \
18         $(top_builddir)/rpmio/librpmio.la \
19         @WITH_PYTHON_LIB@
20
21 _rpmmodule_la_SOURCES = rpmmodule.c system.h \
22         header-py.c header-py.h \
23         rpmal-py.c rpmal-py.h \
24         rpmds-py.c rpmds-py.h \
25         rpmdb-py.c rpmdb-py.h \
26         rpmfd-py.c rpmfd-py.h \
27         rpmfi-py.c rpmfi-py.h \
28         rpmmi-py.c rpmmi-py.h \
29         rpmps-py.c rpmps-py.h \
30         rpmmacro-py.c rpmmacro-py.h \
31         rpmte-py.c rpmte-py.h \
32         rpmts-py.c rpmts-py.h \
33         spec-py.c spec-py.h
34 endif