head	1.2;
access;
symbols
	RPM_2_2:1.1.1.3
	RPM_2_1_2:1.1.1.3
	RPM_2_1:1.1.1.3
	RPM_2_0_11:1.1.1.2
	RPM_2_0:1.1.1.1
	RPM:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2003.08.24.11.57.46;	author rse;	state dead;
branches;
next	1.1;

1.1
date	96.03.05.16.16.58;	author rse;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.03.05.16.16.58;	author rse;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	96.06.04.20.26.44;	author rse;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	96.07.10.20.51.19;	author rse;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Resolve: RPM 2.2 -> RPM 2.2.11
@
text
@LIBOBJECTS = header.o oldrpmdb.o misc.o messages.o rpmerr.o falloc.o \
	     var.o md5.o md5sum.o dbindex.o rpmrc.o \
	     rpmdb.o stringbuf.o rpmlead.o package.o uninstall.o \
	     oldheader.o install.o signature.o verify.o
LIBRPM = librpm.a
LOADLIBES = -lrpm -lgdbm -ldb $(LIBEFENCE)
PROGS = 

# -----------------------------------------------------------------------

ifeq (.depend,$(wildcard .depend))
TARGET=allprogs
else
TARGET=depend allprogs
endif

all: $(TARGET)

allprogs: $(LIBRPM) $(PROGS)

$(PROGS): $(LIBRPM)

$(LIBRPM): $(LIBOBJECTS) 
	$(AR) $@@ $(LIBOBJECTS)
	$(RANLIB) $@@

install:
	install -m 755 -o 0 -g 0 -d $(INCDIR)
	install -m 755 -o 0 -g 0 -d $(LIBDIR)
	install -m 644 -o 0 -g 0 rpmlib.h $(INCDIR)
	install -m 644 -o 0 -g 0 dbindex.h $(INCDIR)
	install -m 644 -o 0 -g 0 header.h $(INCDIR)
	install -m 644 -o 0 -g 0 messages.h $(INCDIR)
	install -m 644 -o 0 -g 0 rpmerr.h $(INCDIR)
	install -m 644 -o 0 -g 0 librpm.a $(LIBDIR)

clean:
	rm -f *.a *.o *~ $(PROGS) test.out

squeaky: clean
	rm -f depend

depend:
	$(CPP) $(CFLAGS) -M *.c > .depend

ifeq (.depend,$(wildcard .depend))
include .depend
endif
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Import: RPM 2.0
@
text
@@


1.1.1.2
log
@Import: RPM 2.0.11
@
text
@d4 1
a4 3
	     oldheader.o install.o signature.o verify.o 
SOURCES = $(subst .o,.c,$(LIBOBJECTS)) 
TAGTABLE = tagtable.o
a7 1
AR = ar
d23 2
a24 1
$(LIBRPM): $(LIBRPM)($(LIBOBJECTS) $(TAGTABLE))
a26 9
tagtable.c: rpmlib.h Makefile
	echo '#include "rpmlib.h"' > tagtable.c
	echo '' >> tagtable.c
	echo 'const struct rpmTagTableEntry rpmTagTable[] = {' >> tagtable.c
	awk '/(RPMTAG_[A-Z0-9]*)[ \t]+([0-9]*)/ { printf("\t{ \"%s\", %s },\n", $$2, $$3); }' < rpmlib.h >> tagtable.c
	echo '};' >> tagtable.c
	echo '' >> tagtable.c
	echo 'const int rpmTagTableSize = sizeof(rpmTagTable) / sizeof(struct rpmTagTableEntry);' >> tagtable.c

d38 1
a38 1
	rm -f *.a *.o *~ $(PROGS) test.out tagtable.c
d44 1
a44 1
	$(CPP) $(CFLAGS) -M $(SOURCES) > .depend
@


1.1.1.3
log
@Import: RPM 2.1
@
text
@d2 1
a2 1
	     var.o md5.o md5sum.o dbindex.o rpmrc.o depends.o \
@


