home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / gnu / make-3.71-src.lha / src / amiga / make-3.71 / glob / Makefile.in < prev   
Makefile  |  1994-04-22  |  2KB  |  60 lines

  1. # Makefile for standalone distribution of libglob.a (fnmatch, glob).
  2.  
  3. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  4. # This file is part of the GNU C Library.
  5.  
  6. # This library is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU Library General Public License
  8. # as published by the Free Software Foundation; either version 2 of
  9. # the License, or (at your option) any later version.
  10.  
  11. # This library 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 GNU
  14. # Library General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU Library General Public
  17. # License along with this library; see the file COPYING.LIB.  If
  18. # not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  19. # Cambridge, MA 02139, USA.
  20.  
  21. # Ultrix 2.2 make doesn't expand the value of VPATH.
  22. VPATH = @srcdir@
  23. # This must repeat the value, because configure will remove `VPATH = .'.
  24. srcdir = @srcdir@
  25.  
  26. CPPFLAGS = @DEFS@
  27.  
  28. # How the invoke ar.
  29. AR = ar
  30. ARFLAGS = rv
  31.  
  32. # How to invoke ranlib.
  33. RANLIB = @RANLIB@
  34.  
  35. .PHONY: all
  36. all: libglob.a
  37.  
  38. libglob.a: glob.o fnmatch.o
  39.     $(AR) $(ARFLAGS) $@ glob.o fnmatch.o
  40.     $(RANLIB) $@
  41.  
  42. # For some reason, Unix make wants the dependencies on the source files.
  43. # Otherwise it refuses to use an implicit rule!
  44. # And, get this: it doesn't work to use $(srcdir)/foo.c!!
  45. glob.o: $(srcdir)/glob.h $(srcdir)/fnmatch.h glob.c
  46. fnmatch.o: $(srcdir)/fnmatch.h fnmatch.c
  47.  
  48. .c.o:
  49.     $(CC) -I. -I$(srcdir) -c $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
  50.  
  51. .PHONY: clean realclean glob-clean glob-realclean
  52. clean glob-clean:
  53.     -rm -f libglob.a *.o core
  54. realclean glob-realclean: clean
  55.     -rm -f TAGS tags Makefile
  56.  
  57. # For inside the C library.
  58. glob.tar glob.tar.Z:
  59.     $(MAKE) -C .. $@
  60.