summaryrefslogtreecommitdiff
path: root/python/Makefile.am
blob: dcd41547ad5c372b8c22fb48adc2bf3a66c6dd93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Makefile for rpm library.

EXTRA_DIST = rpmdebug-py.c rpm/__init__.py

if PYTHON
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/rpm
AM_CPPFLAGS += -I$(top_srcdir)/python
AM_CPPFLAGS += @WITH_LIBELF_INCLUDE@
AM_CPPFLAGS += @WITH_NSS_INCLUDE@
AM_CPPFLAGS += @WITH_POPT_INCLUDE@
AM_CPPFLAGS += -I$(top_srcdir)/misc
AM_CPPFLAGS += -I@WITH_PYTHON_INCLUDE@

pkgpyexec_LTLIBRARIES = _rpmmodule.la
pkgpyexec_SCRIPTS = rpm/__init__.py

_rpmmodule_la_LDFLAGS = -module -avoid-version
_rpmmodule_la_LIBADD = \
	$(top_builddir)/build/librpmbuild.la \
	$(top_builddir)/lib/librpm.la \
	$(top_builddir)/rpmdb/librpmdb.la \
	$(top_builddir)/rpmio/librpmio.la \
	@WITH_NSS_LIB@ \
	@WITH_POPT_LIB@ \
	@WITH_LIBELF_LIB@ \
	@WITH_PYTHON_LIB@

_rpmmodule_la_SOURCES = rpmmodule.c system.h \
	header-py.c header-py.h \
	rpmal-py.c rpmal-py.h \
	rpmds-py.c rpmds-py.h \
	rpmdb-py.c rpmdb-py.h \
	rpmfd-py.c rpmfd-py.h \
	rpmfts-py.c rpmfts-py.h \
	rpmfi-py.c rpmfi-py.h \
	rpmmi-py.c rpmmi-py.h \
	rpmps-py.c rpmps-py.h \
	rpmrc-py.c rpmrc-py.h \
	rpmte-py.c rpmte-py.h \
	rpmts-py.c rpmts-py.h \
	spec-py.c spec-py.h
endif