2002-03-25 20:16:26 +00:00
# Makefile for rpm library.
AUTOMAKE_OPTIONS = 1.4 foreign
PYVER = @WITH_PYTHON_VERSION@
2002-08-03 16:35:14 +00:00
INCLUDES = -I. \
2002-03-25 20:16:26 +00:00
-I$( top_srcdir) /lib \
-I$( top_srcdir) /rpmdb \
-I$( top_srcdir) /rpmio \
-I/usr/include/python${ PYVER } \
@INCPATH@
2002-08-03 16:35:14 +00:00
noinst_HEADERS = db-py.h hash.h header-py.c header-py.h upgrade.h
2002-03-25 20:16:26 +00:00
mylibs = \
2003-11-24 20:44:29 +00:00
$( top_builddir) /lib/librpm.la
2002-03-25 20:16:26 +00:00
LDADD =
2005-11-30 16:57:18 +00:00
pythondir = $( libdir) /python${ PYVER } /site-packages
2002-08-03 16:35:14 +00:00
python_PROGRAMS = rpmmodule.so
2002-03-25 20:16:26 +00:00
2002-08-03 16:35:14 +00:00
noinst_PROGRAMS = poptmodule.so
rpmmodule_so_SOURCES =
2005-11-30 16:57:18 +00:00
rpmmodule_so_CFLAGS = -fPIC -DPIC
2006-01-14 22:48:02 +00:00
rpmmodule_so_LDFLAGS = $( mylibs) $( LIBS) -lpython${ PYVER } -shared -Wl,-soname,rpmmodule.so
2002-08-03 16:35:14 +00:00
2002-03-25 20:16:26 +00:00
poptmodule_so_SOURCES = poptmodule.c
2005-11-30 16:57:18 +00:00
poptmodule_so_CFLAGS = -fPIC -DPIC
2002-03-25 20:16:26 +00:00
poptmodule_so_LDFLAGS = $( mylibs) $( LIBS) -shared -Wl,-soname,poptmodule.so
noinst_LTLIBRARIES = librpmmodule.la
librpmmodule_la_SOURCES = rpmmodule.c hash.c upgrade.c header-py.c db-py.c
rpmmodule.so : $( librpmmodule_la_OBJECTS )
$( LINK) -o $@ $( librpmmodule_la_OBJECTS) $( rpmmodule_so_LDFLAGS)
poptmodule.so : $( poptmodule_so_OBJECTS )
$( LINK) -o $@ $( poptmodule_so_OBJECTS) $( poptmodule_so_LDFLAGS)
.PHONY : lclint
lclint :
lclint $( DEFS) $( INCLUDES) $( librpmmodule_la_SOURCES)