home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / textutils-1.9-src.lha / src / amiga / textutils-1.9 / lib / Makefile.in < prev    next >
Makefile  |  1993-10-21  |  2KB  |  84 lines

  1. # Makefile for library files used by GNU text utilities.
  2. # Copyright (C) 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. SOURCES = regex.c error.c getopt.c getopt1.c linebuffer.c xmalloc.c \
  31. xwrite.c bcopy.c memchr.c memcmp.c memset.c stpcpy.c \
  32. strtol.c strtoul.c alloca.c
  33.  
  34. # Always link in the fast GNU memchr; it speeds up sort, especially on HP-UX.
  35. OBJECTS = regex.o error.o getopt.o getopt1.o linebuffer.o xmalloc.o \
  36. xwrite.o memchr.o @LIBOBJS@ @ALLOCA@
  37.  
  38. DISTFILES = Makefile.in getopt.h linebuffer.h regex.h $(SOURCES)
  39.  
  40. all: libtu.a
  41.  
  42. .c.o:
  43.     $(CC) -c $(CPPFLAGS) $(DEFS) -I.. -I$(srcdir) $(CFLAGS) $<
  44.  
  45. install: all
  46.  
  47. uninstall:
  48.  
  49. TAGS: $(SOURCES)
  50.     etags $(SOURCES)
  51.  
  52. check:
  53.  
  54. clean:
  55.     rm -f *.a *.o
  56.  
  57. mostlyclean: clean
  58.  
  59. distclean: clean
  60.     rm -f Makefile
  61.  
  62. realclean: distclean
  63.     rm -f TAGS
  64.  
  65. dist:
  66.     for file in $(DISTFILES); do \
  67.       ln $$file ../`cat ../.fname`/lib \
  68.         || cp -p $$file ../`cat ../.fname`/lib; \
  69.     done
  70.  
  71. libtu.a: $(OBJECTS)
  72.     rm -f $@
  73.     $(AR) cr $@ $(OBJECTS)
  74.     -$(RANLIB) $@
  75.  
  76. getopt1.o: getopt.h
  77. regex.o: regex.h
  78.  
  79. $(OBJECTS): ../config.h
  80.  
  81. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  82. # Otherwise a system limit (for SysV at least) may be exceeded.
  83. .NOEXPORT:
  84.