home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / shellutils-1.9.4-src.lha / src / amiga / shellutils-1.9.4 / lib / Makefile.in < prev    next >
Encoding:
Makefile  |  1994-02-01  |  2.8 KB  |  103 lines

  1. # Makefile for library files used by GNU shell utilities.
  2. # Copyright (C) 1991, 1992, 1993, 1994 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 getdate.y basename.c error.c stripslash.c xmalloc.c \
  31. xstrdup.c full-write.c putenv.c getopt.c getopt1.c getugroups.c \
  32. posixtm.y strftime.c gethostname.c getusershell.c memcmp.c mktime.c stime.c \
  33. strcspn.c strstr.c strtol.c strtoul.c strtod.c alloca.c
  34.  
  35. OBJECTS = regex.o getdate.o basename.o error.o stripslash.o xmalloc.o \
  36. xstrdup.o full-write.o putenv.o getopt.o getopt1.o getugroups.o \
  37. posixtm.o strftime.o @LIBOBJS@ @ALLOCA@
  38.  
  39. DISTFILES = Makefile.in getopt.h regex.h $(SOURCES)
  40.  
  41. all: libshu.a
  42.  
  43. .c.o:
  44.     $(CC) -c $(CPPFLAGS) $(DEFS) -I.. -I$(srcdir) $(CFLAGS) $<
  45.  
  46. install: all
  47.  
  48. uninstall:
  49.  
  50. TAGS: $(SOURCES)
  51.     etags $(SOURCES)
  52.  
  53. check:
  54.  
  55. clean:
  56.     rm -f *.a *.o
  57.  
  58. mostlyclean: clean
  59.  
  60. distclean: clean
  61.     rm -f Makefile *.tab.c getdate.c *posixtm.c
  62.  
  63. realclean: distclean
  64.     rm -f TAGS
  65.  
  66. dist:
  67.     for file in $(DISTFILES); do \
  68.       ln $$file ../`cat ../.fname`/lib \
  69.         || cp -p $$file ../`cat ../.fname`/lib; \
  70.     done
  71.  
  72. libshu.a: $(OBJECTS)
  73.     rm -f $@
  74.     $(AR) cr $@ $(OBJECTS)
  75.     -$(RANLIB) $@
  76.  
  77. # Since this directory contains two parsers, we have to be careful to avoid
  78. # running two $(YACC)s during parallel makes.  See below.
  79. getdate.c: getdate.y
  80.     @echo expect 10 shift/reduce conflicts
  81.     $(YACC) $(srcdir)/getdate.y
  82.     mv y.tab.c getdate.c
  83.  
  84. # Make the rename atomic, in case sed is interrupted and later rerun.
  85. # The artificial dependency on getdate.c keeps the two parsers from being
  86. # built in parallel.  Enforcing this little bit of sequentiality lets
  87. # everyone (even those without bison) still run mostly parallel builds.
  88. posixtm.c: posixtm.y getdate.c
  89.     $(YACC) $(srcdir)/posixtm.y
  90.     mv y.tab.c posixtm.tab.c
  91.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  92.     mv tposixtm.c posixtm.c
  93.     rm -f posixtm.tab.c
  94.  
  95. getopt1.o: getopt.h
  96. regex.o: regex.h
  97.  
  98. $(OBJECTS): ../config.h
  99.  
  100. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  101. # Otherwise a system limit (for SysV at least) may be exceeded.
  102. .NOEXPORT:
  103.