home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / dist / gnu / fileutils / build / lib / makefile
Encoding:
Makefile  |  1993-12-13  |  3.6 KB  |  126 lines

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