1998-10-08 18:40:27 +08:00
|
|
|
# Makefile for rpm library.
|
|
|
|
|
1999-01-20 07:54:30 +08:00
|
|
|
AUTOMAKE_OPTIONS = 1.4 foreign
|
1998-10-08 18:40:27 +08:00
|
|
|
|
1998-10-11 23:19:55 +08:00
|
|
|
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/build @INCPATH@
|
1998-10-08 18:40:27 +08:00
|
|
|
|
|
|
|
rpmincdir = $(includedir)/rpm
|
1998-12-11 04:56:01 +08:00
|
|
|
rpminc_HEADERS = \
|
|
|
|
dbindex.h header.h misc.h rpmio.h rpmlib.h rpmmacro.h stringbuf.h
|
1998-10-08 18:40:27 +08:00
|
|
|
noinst_HEADERS = \
|
1999-01-22 02:42:53 +08:00
|
|
|
cpio.h depends.h falloc.h fprint.h hash.h install.h \
|
|
|
|
lookup.h md5.h oldheader.h oldrpmdb.h rpm_malloc.h \
|
1998-12-11 04:56:01 +08:00
|
|
|
rpmdb.h rpmlead.h signature.h tread.h
|
1998-10-08 18:40:27 +08:00
|
|
|
|
1999-01-23 02:42:31 +08:00
|
|
|
lib_LTLIBRARIES = librpm.la
|
|
|
|
librpm_la_SOURCES = \
|
1998-10-08 18:40:27 +08:00
|
|
|
cpio.c dbindex.c depends.c falloc.c \
|
|
|
|
formats.c fs.c header.c install.c \
|
|
|
|
lookup.c macro.c md5.c md5sum.c \
|
1998-10-27 13:41:02 +08:00
|
|
|
messages.c misc.c oldheader.c package.c query.c \
|
1999-01-20 07:59:28 +08:00
|
|
|
rebuilddb.c rpmdb.c rpmerr.c rpmio.c rpmbzio.c rpmlead.c \
|
1998-10-08 18:40:27 +08:00
|
|
|
rpmrc.c signature.c stringbuf.c tagtable.c \
|
1998-12-27 01:12:50 +08:00
|
|
|
tread.c uninstall.c verify.c transaction.c problems.c hash.c fprint.c
|
1998-10-08 18:40:27 +08:00
|
|
|
|
|
|
|
tagtable.c: rpmlib.h
|
1998-11-19 05:41:05 +08:00
|
|
|
@echo '#include "system.h"' > tagtable.c
|
|
|
|
@echo '#include "rpmlib.h"' >> tagtable.c
|
|
|
|
@echo '' >> tagtable.c
|
|
|
|
@echo 'const struct headerTagTableEntry rpmTagTable[] = {' >> tagtable.c
|
|
|
|
@awk '/(RPMTAG_[A-Z0-9]*)[ \t]+([0-9]*)/ && !/internal/ { printf("\t{ \"%s\", %s },\n", $$2, $$3); }' < $(srcdir)/rpmlib.h >> tagtable.c
|
|
|
|
@echo ' { NULL, 0 }' >> tagtable.c
|
|
|
|
@echo '};' >> tagtable.c
|
|
|
|
@echo '' >> tagtable.c
|
|
|
|
@echo 'const int rpmTagTableSize = sizeof(rpmTagTable) / sizeof(struct headerTagTableEntry) - 1;' >> tagtable.c
|
1998-10-08 18:40:27 +08:00
|
|
|
|
|
|
|
BUILT_SOURCES = tagtable.c
|
1998-11-21 04:18:22 +08:00
|
|
|
|
|
|
|
.PHONY: lclint
|
|
|
|
.PHONY: lclint
|
|
|
|
lclint:
|
1999-01-23 02:42:31 +08:00
|
|
|
lclint ${DEFS} ${INCLUDES} ${librpm_la_SOURCES}
|