home *** CD-ROM | disk | FTP | other *** search
/ Dream 45 / Amiga_Dream_45.iso / Atari / Program / Gnu / gmake362.zoo / glob / makefile.st
Makefile  |  1991-12-29  |  1KB  |  43 lines

  1. # Copyright (C) 1991 Free Software Foundation, Inc.
  2. # This file is part of the GNU C Library.
  3.  
  4. # The GNU C Library is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Library General Public License
  6. # as published by the Free Software Foundation; either version 2 of
  7. # the License, or (at your option) any later version.
  8.  
  9. # The GNU C Library 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 GNU
  12. # Library General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU Library General Public
  15. # License along with the GNU C Library; see the file COPYING.LIB.  If
  16. # not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  17. # Cambridge, MA 02139, USA.
  18.  
  19. # Makefile for standalone distribution of libglob.a (fnmatch, glob).
  20. CC = gcc -O
  21.  
  22. .PHONY: all
  23. all: glob.olb
  24.  
  25. glob.olb: glob.o fnmatch.o
  26.     gcc-ar rs $@ glob.o fnmatch.o
  27.  
  28. glob.o: glob.h fnmatch.h
  29. fnmatch.o: fnmatch.h
  30.  
  31. .c.o:
  32.     $(CC) $(CFLAGS) $(CPPFLAGS) -I. -c $< $(OUTPUT_OPTION)
  33.  
  34. .PHONY: clean realclean glob-clean glob-realclean
  35. clean glob-clean:
  36.     -rm -f libglob.a *.o core
  37. realclean glob-realclean: clean
  38.     -rm -f TAGS tags *~
  39.  
  40. # For inside the C library.
  41. glob.tar glob.tar.Z:
  42.     $(MAKE) -C .. $@
  43.