CC = @CC@ CPP = @CPP@ srcdir = @srcdir@ VPATH = $(srcdir) LIBOBJECTS = spec.o vspec.o build.o files.o names.o pack.o myftw.o reqprov.o LIBBUILD = libbuild.a LOADLIBES = -lrpm $(LIBEFENCE) AR = ar r RANLIB = ranlib # ----------------------------------------------------------------------- ifeq (.depend,$(wildcard .depend)) TARGET=everything else TARGET=depend everything endif all: $(TARGET) everything: $(LIBBUILD) $(LIBBUILD): $(LIBOBJECTS) $(AR) $@ $(LIBOBJECTS) $(RANLIB) $@ $(PROGS): $(LIBOBJECTS) clean: rm -f *.a *.o *~ $(PROGS) depend: $(CPP) $(CFLAGS) -M *.c > .depend ifeq (.depend,$(wildcard .depend)) include .depend endif