home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 1 / FFMCD01.bin / useful / dist / gnu / shellutils / build / lib / makefile
Encoding:
Makefile  |  1993-09-26  |  2.4 KB  |  85 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for library files used by GNU shell utilities.
  3. # Do not use this makefile directly, but only from `../Makefile'.
  4. # Copyright (C) 1991 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. SHELL = /bin/sh
  21.  
  22. srcdir = .
  23. VPATH = .
  24.  
  25. SOURCES = basename.c error.c stripslash.c xmalloc.c xstrdup.c xwrite.c \
  26. putenv.c getopt.c getopt1.c getugroups.c regex.c getdate.y \
  27. posixtm.y strftime.c gethostname.c getusershell.c mktime.c stime.c \
  28. strcspn.c strstr.c strtol.c strtoul.c strtod.c alloca.c
  29.  
  30. OBJECTS = basename.o error.o stripslash.o xmalloc.o xstrdup.o xwrite.o \
  31. putenv.o getopt.o getopt1.o getugroups.o regex.o getdate.o \
  32. posixtm.o strftime.o  gethostname.o getusershell.o 
  33.  
  34. DISTFILES = Makefile.in getopt.h regex.h $(SOURCES)
  35.  
  36. all: libshu.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 *.tab.c getdate.c *posixtm.c
  55.  
  56. realclean: distclean
  57.     rm -f TAGS
  58.  
  59. dist:
  60.     ln $(DISTFILES) ../`cat ../.fname`/lib
  61.  
  62. libshu.a: $(OBJECTS)
  63.     rm -f $@
  64.     $(AR) cr $@ $(OBJECTS)
  65.     -$(RANLIB) $@
  66.  
  67. getdate.c: getdate.y
  68.     @echo expect 9 shift/reduce conflicts
  69.     -bison -o getdate.c $(srcdir)/getdate.y || yacc $(srcdir)/getdate.y
  70.     test ! -f y.tab.c || mv y.tab.c getdate.c
  71.  
  72. # Make the rename atomic, in case sed is interrupted and later rerun.
  73. posixtm.c: posixtm.y
  74.     -bison -o posixtm.tab.c $(srcdir)/posixtm.y || yacc $(srcdir)/posixtm.y
  75.     test ! -f y.tab.c || mv y.tab.c posixtm.tab.c
  76.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  77.     mv tposixtm.c posixtm.c
  78.     rm -f posixtm.tab.c
  79.  
  80. getopt1.o: getopt.h
  81. regex.o: regex.h
  82.  
  83. # Prevent GNU make v3 from overflowing arg limit on SysV.
  84. .NOEXPORT:
  85.