home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 1 / FFMCD01.bin / useful / dist / gnu / fileutils / build / lib / makefile < prev    next >
Encoding:
Makefile  |  1993-08-31  |  3.2 KB  |  108 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Hand hacked for the Amiga by Fred Fish, pending getting configure running
  3. # on the Amiga.
  4. # Makefile for library files used by GNU fileutils.
  5. # Do not use this makefile directly, but only from `../Makefile'.
  6. # Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  7.  
  8. # This program is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12.  
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17.  
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22. SHELL = /bin/sh
  23.  
  24. srcdir = .
  25. VPATH = .
  26.  
  27. SOURCES = argmatch.c backupfile.c basename.c dirname.c eaccess.c \
  28. error.c filemode.c fsusage.c getopt.c getopt1.c \
  29. getversion.c idcache.c isdir.c makepath.c \
  30. modechange.c mountlist.c savedir.c \
  31. stripslash.c xgetcwd.c xmalloc.c xstrdup.c userspec.c yesno.c \
  32. getdate.y posixtm.y \
  33. fileblocks.c fnmatch.c ftruncate.c mkdir.c mktime.c rename.c stpcpy.c \
  34. strdup.c strstr.c alloca.c
  35.  
  36. OBJECTS = backupfile.o basename.o dirname.o eaccess.o \
  37. error.o filemode.o getopt.o getopt1.o \
  38. getversion.o argmatch.o idcache.o isdir.o makepath.o \
  39. modechange.o savedir.o \
  40. stripslash.o xgetcwd.o xmalloc.o xstrdup.o userspec.o yesno.o \
  41. getdate.o posixtm.o  mountlist.o fnmatch.o stpcpy.o 
  42.  
  43. DISTFILES = Makefile.in backupfile.h getopt.h modechange.h \
  44. fnmatch.h fsusage.h mountlist.h pathmax.h system.h $(SOURCES)
  45.  
  46. all: libfu.a
  47.  
  48. .c.o:
  49.     $(CC) -c $(DEFS) -I$(srcdir) $(CPPFLAGS) $(CFLAGS) $<
  50.  
  51. install: all
  52.  
  53. uninstall:
  54.  
  55. TAGS: $(SOURCES)
  56.     etags $(SOURCES)
  57.  
  58. clean:
  59.     rm -f *.a *.o
  60.  
  61. mostlyclean: clean
  62.  
  63. distclean: clean
  64.     rm -f Makefile *.tab.c getdate.c *posixtm.c
  65.  
  66. realclean: distclean
  67.     rm -f TAGS
  68.  
  69. dist:
  70.     for file in $(DISTFILES); do \
  71.       ln $$file ../`cat ../.fname`/lib \
  72.         || cp -p $$file ../`cat ../.fname`/lib; \
  73.     done
  74.  
  75. libfu.a: $(OBJECTS)
  76.     rm -f $@
  77.     $(AR) cr $@ $(OBJECTS)
  78.     -$(RANLIB) $@
  79.  
  80. # Since this directory contains two parsers, we have to be careful to avoid
  81. # running two $(YACC)s during parallel makes.  See below.
  82. getdate.c: getdate.y
  83.     #@echo expect 9 shift/reduce conflicts
  84.     $(YACC) $(srcdir)/getdate.y
  85.     mv y.tab.c getdate.c
  86.  
  87. # Make the rename atomic, in case sed is interrupted and later rerun.
  88. # The artificial dependency on getdate.c keeps the two parsers from being
  89. # built in parallel.  Enforcing this little bit of sequentiality lets
  90. # everyone (even those without bison) still run mostly parallel builds.
  91. posixtm.c: posixtm.y getdate.c
  92.     $(YACC) $(srcdir)/posixtm.y
  93.     mv y.tab.c posixtm.tab.c
  94.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  95.     mv tposixtm.c posixtm.c
  96.     rm -f posixtm.tab.c
  97.  
  98. backupfile.o getversion.o: backupfile.h
  99. fnmatch.o: fnmatch.h
  100. fsusage.o: fsusage.h
  101. getopt1.o: getopt.h
  102. modechange.o: modechange.h
  103. mountlist.o: mountlist.h
  104. xgetcwd.o: pathmax.h
  105.  
  106. # Prevent GNU make v3 from overflowing arg limit on SysV.
  107. .NOEXPORT:
  108.