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