44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# Makefile for rpm library.
|
|
|
|
AUTOMAKE_OPTIONS = 1.4 foreign
|
|
|
|
PYVER= @WITH_PYTHON_VERSION@
|
|
|
|
INCLUDES = -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)/lib/librpm.la
|
|
|
|
LDADD =
|
|
|
|
pythondir = $(prefix)/lib/python${PYVER}/site-packages
|
|
python_PROGRAMS = rpmmodule.so
|
|
|
|
noinst_PROGRAMS = poptmodule.so
|
|
|
|
rpmmodule_so_SOURCES =
|
|
rpmmodule_so_LDFLAGS = $(mylibs) $(LIBS) -shared -Wl,-soname,rpmmodule.so
|
|
|
|
poptmodule_so_SOURCES = poptmodule.c
|
|
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)
|