home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / fileutils-3.9-src.lha / src / amiga / fileutils-3.9 / lib / Makefile.in < prev    next >
Encoding:
Makefile  |  1994-02-22  |  3.4 KB  |  125 lines

  1. # Makefile for library files used by GNU fileutils.
  2. # Copyright (C) 1990, 1991, 1992, 1993 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. SHELL = /bin/sh
  19.  
  20. srcdir = @srcdir@
  21. VPATH = @srcdir@
  22.  
  23. CC = @CC@
  24. AR = ar
  25. RANLIB = @RANLIB@
  26. DEFS = -DCONFIG_BROKETS @DEFS@
  27. CFLAGS = @CFLAGS@
  28. YACC = @YACC@
  29.  
  30. prefix = /gnu
  31. exec_prefix = $(prefix)
  32. libdir = $(exec_prefix)/lib
  33.  
  34. SOURCES = getdate.y posixtm.y \
  35. argmatch.c backupfile.c basename.c dirname.c eaccess.c \
  36. error.c filemode.c fsusage.c getopt.c getopt1.c \
  37. getversion.c idcache.c isdir.c makepath.c \
  38. modechange.c mountlist.c savedir.c \
  39. stripslash.c xgetcwd.c xmalloc.c xstrdup.c userspec.c yesno.c \
  40. fileblocks.c fnmatch.c ftruncate.c mkdir.c mktime.c rename.c stpcpy.c \
  41. strdup.c strstr.c alloca.c
  42.  
  43. OBJECTS = getdate.o posixtm.o \
  44. argmatch.o backupfile.o basename.o dirname.o eaccess.o \
  45. error.o filemode.o getopt.o getopt1.o \
  46. getversion.o idcache.o isdir.o makepath.o \
  47. modechange.o savedir.o \
  48. stripslash.o xgetcwd.o xmalloc.o xstrdup.o userspec.o yesno.o \
  49. @LIBOBJS@ @ALLOCA@
  50.  
  51. DISTFILES = Makefile.in backupfile.h getopt.h modechange.h \
  52. fnmatch.h fsusage.h mountlist.h pathmax.h system.h $(SOURCES)
  53.  
  54. all: libfu.a
  55.  
  56. .c.o:
  57.     $(CC) -c $(CPPFLAGS) $(DEFS) -I.. -I$(srcdir) $(CFLAGS) $<
  58.  
  59. install: all
  60.  
  61. uninstall:
  62.  
  63. TAGS: $(SOURCES)
  64.     etags $(SOURCES)
  65.  
  66. check:
  67.  
  68. clean:
  69.     rm -f *.a *.o
  70.  
  71. mostlyclean: clean
  72.  
  73. distclean: clean
  74.     rm -f Makefile *.tab.c getdate.c *posixtm.c
  75.  
  76. realclean: distclean
  77.     rm -f TAGS
  78.  
  79. dist: $(DISTFILES)
  80.     for file in $(DISTFILES); do \
  81.       ln $$file ../`cat ../.fname`/lib \
  82.         || cp -p $$file ../`cat ../.fname`/lib; \
  83.     done
  84.  
  85. libfu.a: $(OBJECTS)
  86.     rm -f $@
  87.     $(AR) cr $@ $(OBJECTS)
  88.     -$(RANLIB) $@
  89.  
  90. # Since this directory contains two parsers, we have to be careful to avoid
  91. # running two $(YACC)s during parallel makes.  See below.
  92. getdate.c: getdate.y
  93.     @echo expect 9 shift/reduce conflicts
  94.     $(YACC) $(srcdir)/getdate.y
  95.     mv y.tab.c getdate.c
  96.  
  97. # Make the rename atomic, in case sed is interrupted and later rerun.
  98. # The artificial dependency on getdate.c keeps the two parsers from being
  99. # built in parallel.  Enforcing this little bit of sequentiality lets
  100. # everyone (even those without bison) still run mostly parallel builds.
  101. posixtm.c: posixtm.y getdate.c
  102.     $(YACC) $(srcdir)/posixtm.y
  103.     mv y.tab.c posixtm.tab.c
  104.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  105.     mv tposixtm.c posixtm.c
  106.     rm -f posixtm.tab.c
  107.  
  108. rename.o: rename.c
  109.     $(CC) -c $(CPPFLAGS) -DMVDIR="\"$(libdir)/mvdir\"" $(DEFS) \
  110.         -I.. -I$(srcdir) $(CFLAGS) $(srcdir)/rename.c
  111.  
  112. $(OBJECTS): ../config.h
  113.  
  114. backupfile.o getversion.o: backupfile.h
  115. fnmatch.o: fnmatch.h
  116. fsusage.o: fsusage.h
  117. getopt1.o: getopt.h
  118. modechange.o: modechange.h
  119. mountlist.o: mountlist.h
  120. xgetcwd.o: pathmax.h
  121.  
  122. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  123. # Otherwise a system limit (for SysV at least) may be exceeded.
  124. .NOEXPORT:
  125.