head	1.2;
access;
symbols
	rpm-4_4_8-release:1.2
	rpm-4_4_7-release:1.2
	rpm-4_4_6-release:1.2
	rpm-4_4_5-release:1.2
	rpm-4_4_4-release:1.2
	rpm-4_4_3-release:1.2
	jbj_before_tklcpatches:1.2
	rpm-4_4_2-release:1.2
	pjones-sparse-experiment:1.2.0.10
	rpm-4_4_1-release:1.2
	rpm-4_4-release:1.2
	rpm-4_4:1.2.0.8
	rpm-4_3_1-start:1.2
	rpm-4_3:1.2.0.6
	rpm-4_2_1-release:1.2
	rpm-4_1_1-release:1.2
	rpm-4_2-release:1.2
	rpm-4_2:1.2.0.4
	rpm-4_1-release:1.2
	rpm-4_1:1.2.0.2;
locks; strict;
comment	@# @;


1.2
date	2002.02.09.20.08.32;	author jbj;	state Exp;
branches;
next	1.1;

1.1
date	2002.02.09.19.21.34;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Update to rpm-4.0.x API.
@
text
@# Makes the Maxumum RPM example programs
# Scott Bronson, 20 Mar 1999

# NOTE: if you do not have libdb1, change this makefile to use libdb
# (or whatever database library rpm was compiled with).


CFLAGS=	-O2 -Wall -I/usr/include/rpm
VER =	4.0.4

LDADD=	-lrpm-$(VER) -lrpmdb-$(VER) -lrpmio-$(VER) -lpopt -lz

COMPILE = $(CC) $(CFLAGS)
LINK =	$(CC)

all: dumprpm showdb showdb2

dumprpm: dumprpm.o
	$(LINK) -o $@@ $< $(LDADD)

showdb: showdb.o
	$(LINK) -o $@@ $< $(LDADD)

showdb2: showdb2.o
	$(LINK) -o $@@ $< $(LDADD)

clean:
	rm -f *.o *.lo dumprpm showdb showdb2

dumprpm.o: dumprpm.c
	$(COMPILE) -o $@@ -c dumprpm.c

showdb.o: showdb.c
	$(COMPILE) -o $@@ -c showdb.c

showdb2.o: showdb2.c
	$(COMPILE) -o $@@ -c showdb2.c
@


1.1
log
@Capture rpm-3.0.3 examples from "Maximum RPM".
@
text
@d8 8
d18 2
a19 2
dumprpm: dumprpm.c
	gcc -Wall dumprpm.c -lrpm -lintl -lgz -o dumprpm
d21 2
a22 2
showdb: showdb.c
	gcc -Wall showdb.c -lrpm -lintl -ldb1 -lgz -o showdb
d24 2
a25 2
showdb2: showdb2.c
	gcc -Wall showdb2.c -lrpm -lintl -ldb1 -lgz -o showdb2
d28 7
a34 1
	rm -f dumprpm showdb showdb2
d36 2
@

