srcdir = @srcdir@
VPATH = @srcdir@
top_srcdir = @top_srcdir@

include ../Makefile.inc

PROGS = rpmlead rpmheader rpmarchive rpmsignature dump dumpdb
LOADLIBES = @LIBS@ @LIBMISC@ @LIBINTL@

TARGET=everything

all: $(TARGET)

everything: $(PROGS)

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

distclean: clean
	rm -f Makefile

depend:
	topdir_path=`( cd $(top_srcdir) && pwd )` ; \
	    $(CPP) $(CFLAGS) -MM $(srcdir)/*.c | \
		sed s+$$topdir_path+$(top_srcdir)+g > .depend

$(PROGS): ../lib/librpm.a

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