-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
# -----------------------------------------------------------------------
+include $(srcdir)/../Makefile.inc
+
ifeq (.depend,$(wildcard .depend))
TARGET=everything
else
everything: $(LIBBUILD)
$(LIBBUILD): $(LIBOBJECTS)
- $(AR) $@ $(LIBOBJECTS)
+ $(AR) r $@ $(LIBOBJECTS)
$(RANLIB) $@
$(PROGS): $(LIBOBJECTS)
clean:
rm -f *.a *.o *~ $(PROGS)
+distclean:
+ rm -f .depend Makefile
+
depend:
- $(CPP) $(CFLAGS) -M *.c > .depend
+ $(CPP) $(CFLAGS) -M $(srcdir)/*.c > .depend
ifeq (.depend,$(wildcard .depend))
include .depend
-CC = @CC@
-CPP = @CPP@
-
srcdir = @srcdir@
VPATH = $(srcdir)
+include $(srcdir)/../Makefile.inc
+
PROGS = rpmlead rpmheader rpmarchive rpmsignature dump dumpdb
LOADLIBES = @LIBS@ @ZLIB@
clean:
rm -f *.a *.o core *~ $(PROGS)
+distclean: clean
+ rm -f .depend Makefile
+
depend:
- $(CPP) $(CFLAGS) -M *.c > .depend
+ $(CPP) $(CFLAGS) -M $(srcdir)/*.c > .depend
$(PROGS): ../lib/librpm.a