home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / find-3.8-src.lha / src / amiga / find-3.8 / lib / Makefile.in < prev    next >
Makefile  |  1993-03-29  |  2KB  |  75 lines

  1. # Makefile for library files used by GNU find, xargs, and locate.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1990 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 = dirname.c error.c filemode.c getopt.c getopt1.c idcache.c \
  25. listfile.c modechange.c nextelem.c regex.c savedir.c xmalloc.c \
  26. xstrdup.c fnmatch.c fileblocks.c memset.c stpcpy.c strdup.c strftime.c \
  27. strspn.c strstr.c strtol.c alloca.c
  28.  
  29. OBJECTS = dirname.o error.o filemode.o getopt.o getopt1.o idcache.o \
  30. listfile.o modechange.o nextelem.o regex.o savedir.o xmalloc.o \
  31. xstrdup.o fnmatch.o @LIBOBJS@ @ALLOCA@
  32.  
  33. DISTFILES = Makefile.in \
  34. fnmatch.h getopt.h modechange.h modetype.h pathmax.h regex.h wait.h $(SOURCES)
  35.  
  36. all: libfind.a
  37.  
  38. .c.o:
  39.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir) $<
  40.  
  41. install: all
  42.  
  43. uninstall:
  44.  
  45. TAGS: $(SOURCES)
  46.     etags $(SOURCES)
  47.  
  48. clean:
  49.     rm -f *.a *.o
  50.  
  51. mostlyclean: clean
  52.  
  53. distclean: clean
  54.     rm -f Makefile
  55.  
  56. realclean: distclean
  57.     rm -f TAGS
  58.  
  59. dist:
  60.     -ln $(DISTFILES) ../`cat ../.fname`/lib
  61.     test -f ../`cat ../.fname`/lib/fnmatch.c || cp -p fnmatch.[ch] ../`cat ../.fname`/lib
  62.  
  63. libfind.a: $(OBJECTS)
  64.     rm -f $@
  65.     $(AR) cr $@ $(OBJECTS)
  66.     -$(RANLIB) $@
  67.  
  68. fnmatch.o: fnmatch.h
  69. getopt1.o: getopt.h
  70. modechange.o: modechange.h
  71. regex.o: regex.h
  72.  
  73. # Prevent GNU make v3 from overflowing arg limit on SysV.
  74. .NOEXPORT:
  75.