rpm-build/python/Makefile.am

34 lines
797 B
Makefile
Raw Normal View History

2002-03-25 23:16:26 +03:00
# Makefile for rpm library.
AUTOMAKE_OPTIONS = 1.4 foreign
PYVER= @WITH_PYTHON_VERSION@
AM_CPPFLAGS = -I. \
2002-03-25 23:16:26 +03:00
-I$(top_srcdir)/lib \
-I$(top_srcdir)/rpmdb \
-I$(top_srcdir)/rpmio \
-I/usr/include/python${PYVER} \
@INCPATH@
noinst_HEADERS = db-py.h hash.h header-py.c header-py.h upgrade.h
2002-03-25 23:16:26 +03:00
mylibs= $(top_builddir)/rpmio/librpmio.la \
$(top_builddir)/rpmdb/librpmdb.la \
2003-11-24 23:44:29 +03:00
$(top_builddir)/lib/librpm.la
2002-03-25 23:16:26 +03:00
LDADD =
2005-11-30 19:57:18 +03:00
pythondir = $(libdir)/python${PYVER}/site-packages
python_LTLIBRARIES = rpmmodule.la
2002-03-25 23:16:26 +03:00
rpmmodule_la_LDFLAGS = -module -avoid-version
rpmmodule_la_LIBADD = $(mylibs) $(LIBS) -lpython${PYVER}
2012-04-13 20:54:02 +04:00
rpmmodule_la_DEPENDENCIES = $(mylibs)
rpmmodule_la_SOURCES = rpmmodule.c hash.c upgrade.c header-py.c db-py.c
2002-03-25 23:16:26 +03:00
.PHONY: lclint
lclint:
lclint $(DEFS) $(AM_CPPFLAGS) $(rpmmodule_la_SOURCES)