rpm-build/python/Makefile.am
Dmitry V. Levin 4134fc39ac Fix automake warnings
Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
build/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
lib/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
python/Makefile.am:7: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
rpmdb/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
rpmio/Makefile.am:9: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
tools/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
2014-02-15 22:19:47 +00:00

34 lines
797 B
Makefile

# Makefile for rpm library.
AUTOMAKE_OPTIONS = 1.4 foreign
PYVER= @WITH_PYTHON_VERSION@
AM_CPPFLAGS = -I. \
-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
mylibs= $(top_builddir)/rpmio/librpmio.la \
$(top_builddir)/rpmdb/librpmdb.la \
$(top_builddir)/lib/librpm.la
LDADD =
pythondir = $(libdir)/python${PYVER}/site-packages
python_LTLIBRARIES = rpmmodule.la
rpmmodule_la_LDFLAGS = -module -avoid-version
rpmmodule_la_LIBADD = $(mylibs) $(LIBS) -lpython${PYVER}
rpmmodule_la_DEPENDENCIES = $(mylibs)
rpmmodule_la_SOURCES = rpmmodule.c hash.c upgrade.c header-py.c db-py.c
.PHONY: lclint
lclint:
lclint $(DEFS) $(AM_CPPFLAGS) $(rpmmodule_la_SOURCES)