home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / misc / src / rpm / build / Makefile.in < prev    next >
Makefile  |  1997-09-17  |  713b  |  41 lines

  1. srcdir = @srcdir@
  2. VPATH = $(srcdir)
  3.  
  4. LIBOBJECTS = spec.o vspec.o build.o files.o names.o pack.o myftw.o \
  5.         reqprov.o trigger.o macro.o
  6. LIBBUILD = libbuild.a
  7. LOADLIBES = -lrpm $(LIBEFENCE)
  8.  
  9. # -----------------------------------------------------------------------
  10.  
  11. include $(srcdir)/../Makefile.inc
  12.  
  13. ifeq (.depend,$(wildcard .depend))
  14. TARGET=everything
  15. else
  16. TARGET=depend everything
  17. endif
  18.  
  19. all: $(TARGET)
  20.  
  21. everything: $(LIBBUILD)
  22.  
  23. $(LIBBUILD): $(LIBOBJECTS) 
  24.     $(AR) r $@ $(LIBOBJECTS)
  25.     $(RANLIB) $@
  26.  
  27. $(PROGS): $(LIBOBJECTS)
  28.  
  29. clean:
  30.     rm -f *.a *.o *~ $(PROGS)
  31.  
  32. distclean: clean
  33.     rm -f .depend Makefile
  34.  
  35. depend:
  36.     $(CPP) $(CFLAGS) -M $(srcdir)/*.c > .depend
  37.  
  38. ifeq (.depend,$(wildcard .depend))
  39. include .depend
  40. endif
  41.