-LIBS = -lefence
+LIBS = -lgdbm #-lefence
-LIBOBJECTS = header.o oldrpmdb.o misc.o messages.o rpmerr.o
+LIBOBJECTS = header.o oldrpmdb.o misc.o messages.o rpmerr.o falloc.o \
+ convertdb.o oldrpmfile.o
LIBRPM = librpm.a
WARNINGS = -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
DEBUG = -g
OPTS = -O2
-all: test dump
+all: test dump dumpdb
# -----------------------------------------------------------------------
CFLAGS = $(WARNINGS) $(DEBUG) $(OPTS)
LDFLAGS = $(DEBUG) $(LIBS)
-test: librpm.a
- $(CC) -o $@ test.c librpm.a $(LIBS)
+test: test.c librpm.a
+ $(CC) $(DEBUG) -o $@ test.c librpm.a $(LIBS)
-dump: librpm.a
- $(CC) -o $@ dump.c librpm.a $(LIBS)
+dump: dump.c librpm.a
+ $(CC) $(DEBUG) -o $@ dump.c librpm.a $(LIBS)
+
+dumpdb: dumpdb.c librpm.a
+ $(CC) $(DEBUG) -o $@ dumpdb.c librpm.a $(LIBS)
$(LIBRPM): $(LIBOBJECTS)
$(AR) $@ $(LIBOBJECTS)