home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / src / file31s.zoo / file3.1 / lib / makefile < prev    next >
Encoding:
Makefile  |  1991-10-18  |  2.5 KB  |  93 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for library files used by GNU fileutils.
  3. # Do not use this makefile directly, but only from `../Makefile'.
  4. # Copyright (C) 1986, 1988-1991 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20.  
  21. srcdir = ./lib
  22.  
  23.  
  24. SOURCES = argmatch.c backupfi.c basename.c dirname.c eaccess.c \
  25. error.c filemode.c fsinfo.c getopt.c getopt1.c \
  26. getversi.c idcache.c isdir.c makepath.c \
  27. modechan.c savedir.c \
  28. stripsla.c xmalloc.c xstrdup.c yesno.c \
  29. getdate.y posixtm.y \
  30. filebloc.c fnmatch.c ftruncate.c mkdir.c mktime.c rename.c stpcpy.c \
  31. strdup.c strstr.c
  32.  
  33. OBJECTS = argmatch.o backupfi.o basename.o dirname.o eaccess.o \
  34. error.o filemode.o fsinfo.o getopt.o getopt1.o \
  35. getversi.o idcache.o isdir.o makepath.o \
  36. modechan.o savedir.o \
  37. stripsla.o xmalloc.o xstrdup.o yesno.o \
  38. getdate.o posixtm.o filebloc.o\
  39.  fsinfo.o fnmatch.o stpcpy.o
  40.  
  41. DISTFILES = Makefile.in backupfi.h getopt.h modechan.h \
  42. fnmatch.h fsinfo.h system.h $(SOURCES)
  43.  
  44. all: libfu.a
  45. .PHONY: all
  46.  
  47. install: all
  48. .PHONY: install
  49.  
  50. tags: $(SOURCES)
  51.     ctags $(SOURCES)
  52.  
  53. TAGS: $(SOURCES)
  54.     etags $(SOURCES)
  55.  
  56. clean:
  57.     rm -f *.a *.o
  58. .PHONY: clean
  59.  
  60. distclean: clean
  61.     rm -f tags TAGS Makefile *.tab.c getdate.c *posixtm.c
  62. .PHONY: distclean
  63.  
  64. realclean: distclean
  65. .PHONY: realclean
  66.  
  67. dist:
  68.     ln $(DISTFILES) ../`cat ../.fname`/lib
  69. .PHONY: dist
  70.  
  71. libfu.a: $(OBJECTS)
  72.     $(AR) cr $@ $(OBJECTS)
  73.     -$(RANLIB) $@
  74.  
  75. getdate.c: getdate.y
  76.     @echo expect 8 shift/reduce conflicts
  77.     -bison -o getdate.c getdate.y || yacc getdate.y
  78.     test ! -f y.tab.c || mv y.tab.c getdate.c
  79.  
  80. # Make the rename atomic, in case sed is interrupted and later rerun.
  81. posixtm.c: posixtm.y
  82.     -bison -o posixtm.tab.c posixtm.y || yacc posixtm.y
  83.     test ! -f y.tab.c || mv y.tab.c posixtm.tab.c
  84.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  85.     mv tposixtm.c posixtm.c
  86.     rm -f posixtm.tab.c
  87.  
  88. backupfi.o getversi.o: backupfi.h
  89. fnmatch.o: fnmatch.h
  90. fsinfo.o: fsinfo.h
  91. getopt1.o: getopt.h
  92. modechan.o: modechan.h
  93.