summaryrefslogtreecommitdiff
path: root/python/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'python/Makefile.am')
-rw-r--r--python/Makefile.am28
1 files changed, 7 insertions, 21 deletions
diff --git a/python/Makefile.am b/python/Makefile.am
index 288661b84..867fc3e8f 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -1,7 +1,5 @@
# Makefile for rpm library.
-LINT = splint
-
if PYTHON
pylibdir = @WITH_PYTHON_LIB@
pyincdir = @WITH_PYTHON_INCLUDE@
@@ -25,23 +23,20 @@ noinst_HEADERS = header-py.h \
rpmfi-py.h rpmmi-py.h rpmps-py.h rpmrc-py.h rpmte-py.h rpmts-py.h \
spec-py.h
-mylibs= \
+pyrpmdir = `${__PYTHON} -c 'from distutils.sysconfig import *; print get_python_lib(1, prefix="@prefix@")'`/rpm
+pyrpm_LTLIBRARIES = _rpmmodule.la
+pyrpm_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_BEECRYPT_LIB@
@WITH_POPT_LIB@ \
@WITH_LIBELF_LIB@
-LDADD =
-
-pyrpmdir = `${__PYTHON} -c 'from distutils.sysconfig import *; print get_python_lib(1, prefix="@prefix@")'`/rpm
-pyrpm_LTLIBRARIES = _rpmmodule.la
-pyrpm_SCRIPTS = rpm/__init__.py
-
-_rpmmodule_la_LDFLAGS = $(mylibs) $(LIBS) -module -avoid-version
-_rpmmodule_la_LIBADD = @WITH_BEECRYPT_LIB@
-
_rpmmodule_la_SOURCES = rpmmodule.c header-py.c \
rpmal-py.c rpmds-py.c rpmdb-py.c rpmfd-py.c rpmfts-py.c \
rpmfi-py.c rpmmi-py.c rpmps-py.c rpmrc-py.c rpmte-py.c \
@@ -51,13 +46,4 @@ _rpmmodule_la_SOURCES = rpmmodule.c header-py.c \
# rpmal-py.c rpmds-py.c rpmdb-py.c rpmfd-py.c rpmfi-py.c rpmmi-py.c \
# rpmps-py.c rpmrc-py.c rpmte-py.c rpmts-py.c
# rpmmodule.c header-py.c
-splint_srcs = \
- rpmal-py.c rpmds-py.c rpmdb-py.c rpmfd-py.c rpmfts-py.c \
- rpmfi-py.c rpmmi-py.c rpmps-py.c rpmrc-py.c rpmte-py.c rpmts-py.c \
- spec-py.c
-
-.PHONY: lint
-lint:
- $(LINT) $(DEFS) $(AM_CPPFLAGS) $(splint_srcs)
-
endif