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.cx < prev    next >
Encoding:
Makefile  |  1991-10-18  |  2.6 KB  |  94 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. SHELL = /bin/sh
  21.  
  22. srcdir = ./lib
  23.  
  24.  
  25. SOURCES = argmatch.c backupfile.c basename.c dirname.c eaccess.c \
  26. error.c filemode.c fsinfo.c getopt.c getopt1.c \
  27. getversion.c idcache.c isdir.c makepath.c \
  28. modechange.c savedir.c \
  29. stripslash.c xmalloc.c xstrdup.c yesno.c \
  30. getdate.y posixtm.y \
  31. fileblocks.c fnmatch.c ftruncate.c mkdir.c mktime.c rename.c stpcpy.c \
  32. strdup.c strstr.c
  33.  
  34. OBJECTS = argmatch.o backupfile.o basename.o dirname.o eaccess.o \
  35. error.o filemode.o fsinfo.o getopt.o getopt1.o \
  36. getversion.o idcache.o isdir.o makepath.o \
  37. modechange.o savedir.o \
  38. stripslash.o xmalloc.o xstrdup.o yesno.o \
  39. getdate.o posixtm.o \
  40.  fsinfo.o fnmatch.o stpcpy.o
  41.  
  42. DISTFILES = Makefile.in backupfile.h getopt.h modechange.h \
  43. fnmatch.h fsinfo.h system.h $(SOURCES)
  44.  
  45. all: libfu.a
  46. .PHONY: all
  47.  
  48. install: all
  49. .PHONY: install
  50.  
  51. tags: $(SOURCES)
  52.     ctags $(SOURCES)
  53.  
  54. TAGS: $(SOURCES)
  55.     etags $(SOURCES)
  56.  
  57. clean:
  58.     rm -f *.a *.o
  59. .PHONY: clean
  60.  
  61. distclean: clean
  62.     rm -f tags TAGS Makefile *.tab.c getdate.c *posixtm.c
  63. .PHONY: distclean
  64.  
  65. realclean: distclean
  66. .PHONY: realclean
  67.  
  68. dist:
  69.     ln $(DISTFILES) ../`cat ../.fname`/lib
  70. .PHONY: dist
  71.  
  72. libfu.a: $(OBJECTS)
  73.     $(AR) cr $@ $(OBJECTS)
  74.     -$(RANLIB) $@
  75.  
  76. getdate.c: getdate.y
  77.     @echo expect 8 shift/reduce conflicts
  78.     -bison -o getdate.c getdate.y || yacc getdate.y
  79.     test ! -f y.tab.c || mv y.tab.c getdate.c
  80.  
  81. # Make the rename atomic, in case sed is interrupted and later rerun.
  82. posixtm.c: posixtm.y
  83.     -bison -o posixtm.tab.c posixtm.y || yacc posixtm.y
  84.     test ! -f y.tab.c || mv y.tab.c posixtm.tab.c
  85.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  86.     mv tposixtm.c posixtm.c
  87.     rm -f posixtm.tab.c
  88.  
  89. backupfile.o getversion.o: backupfile.h
  90. fnmatch.o: fnmatch.h
  91. fsinfo.o: fsinfo.h
  92. getopt1.o: getopt.h
  93. modechange.o: modechange.h
  94.