home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / utility / misc / fileutil.lha / fileutils-3.3 / lib / Makefile.in < prev    next >
Encoding:
Makefile  |  1992-08-02  |  2.8 KB  |  102 lines

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