home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / tar-1.11.8-src.tgz / tar.out / fsf / tar / lib / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  3KB  |  121 lines

  1. # Makefile for GNU tar library.
  2. # Copyright (C) 1994 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. PACKAGE = @PACKAGE@
  19. VERSION = @VERSION@
  20.  
  21. SHELL = /bin/sh
  22. srcdir = @srcdir@
  23. subdir = lib
  24. VPATH = @srcdir@
  25.  
  26. AR = ar
  27. CC = @CC@
  28. CFLAGS = @CFLAGS@
  29. CPPFLAGS = @CPPFLAGS@
  30. DEFS = @DEFS@
  31. RANLIB = @RANLIB@
  32. YACC = @YACC@
  33.  
  34. prefix = @prefix@
  35. datadir = $(prefix)/share
  36. localedir = $(datadir)/locale
  37.  
  38. COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
  39.  
  40. .SUFFIXES:
  41. .SUFFIXES: .c .o
  42. .c.o:
  43.     $(COMPILE) $<
  44.  
  45. INCLUDES = -I.. -I$(srcdir)
  46.  
  47. HEADERS = fnmatch.h getopt.h getpagesize.h insremque.h pathmax.h \
  48. regex.h rx.h safe-stat.h
  49. SOURCES = alloca.c fileblocks.c fnmatch.c ftruncate.c gmalloc.c insremque.c \
  50. memset.c mkdir.c rename.c regex.c rmdir.c rx.c strstr.c \
  51. error.c getdate.y getopt.c getopt1.c stpcpy.c xgetcwd.c xmalloc.c xstrdup.c
  52. OBJECTS = @ALLOCA@ @LIBOBJS@ \
  53. error.o getdate.o getopt.o getopt1.o stpcpy.o xgetcwd.o xmalloc.o xstrdup.o
  54.  
  55. DISTFILES = Makefile.in $(HEADERS) $(SOURCES) \
  56. getdate.c
  57.  
  58. all: libtar.a
  59.  
  60. getdate.c: getdate.y
  61.     @echo Expect 10 shift/reduce conflicts...
  62.     $(YACC) $(YFLAGS) $(srcdir)/getdate.y && \
  63.       mv -f y.tab.c getdate.c
  64.  
  65. libtar.a: $(OBJECTS)
  66.     rm -f libtar.a
  67.     $(AR) cru libtar.a $(OBJECTS)
  68.     $(RANLIB) libtar.a
  69.  
  70. $(OBJECTS): ../config.h
  71.  
  72. # Waiting for the unified libintl.[ch] pair...
  73. #libintl.o: libintl.c libintl.h
  74. #    $(COMPILE) -DLOCALEDIR=\"$(localedir)\" $(srcdir)/libintl.c
  75.  
  76. install: all
  77.  
  78. uninstall:
  79.  
  80. id: ID
  81.  
  82. ID: $(HEADERS) $(SOURCES)
  83.     here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $$here/config.h \
  84.       $(HEADERS) $(SOURCES)
  85.  
  86. tags: TAGS
  87.  
  88. TAGS: $(HEADERS) $(SOURCES)
  89.     here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $$here/config.h \
  90.       $(HEADERS) $(SOURCES)
  91.  
  92. mostlyclean:
  93.     rm -f *.o
  94.     rm -f yacc.* y.*
  95.  
  96. clean: mostlyclean
  97.     rm -f libtar.a
  98.  
  99. distclean: clean
  100.     rm -f ID TAGS
  101.     rm -f Makefile
  102.  
  103. maintainer-clean: distclean
  104.     @echo "This command is intended only for maintainers to use;"
  105.     @echo "rebuilding the deleted files may require special tools."
  106.     rm -f getdate.c
  107.  
  108. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  109. dist: $(DISTFILES)
  110.     for file in $(DISTFILES); do \
  111.       ln $(srcdir)/$$file $(distdir) 2> /dev/null \
  112.         || cp -p $(srcdir)/$$file $(distdir); \
  113.     done
  114.  
  115. Makefile: Makefile.in ../config.status
  116.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  117.  
  118. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  119. # Otherwise a system limit (for SysV at least) may be exceeded.
  120. .NOEXPORT:
  121.