1# Makefile for standalone libglob.a (fnmatch, glob). -*-Makefile-*- 2# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3# 2005, 2006 Free Software Foundation, Inc. 4# This file is part of GNU Make. 5# 6# GNU Make is free software; you can redistribute it and/or modify it under the 7# terms of the GNU General Public License as published by the Free Software 8# Foundation; either version 2, or (at your option) any later version. 9# 10# GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY 11# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 12# A PARTICULAR PURPOSE. See the GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License along with 15# GNU Make; see the file COPYING. If not, write to the Free Software 16# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 18# Ultrix 2.2 make doesn't expand the value of VPATH. 19VPATH = /glob/ 20# This must repeat the value, because configure will remove `VPATH = .'. 21srcdir = /glob/ 22 23CC = sc 24RM = delete 25CPPFLAGS = 26CFLAGS = 27 28# Information determined by configure. 29DEFS = Define HAVE_HEADER_STDC Define HAVE_UNISTD_H Define HAVE_STRING_H \ 30 Define HAVE_DIRENT_H 31 32# How to invoke ar. 33AR = join 34ARFLAGS = as 35 36# How to invoke ranlib. 37RANLIB = ; 38 39.PHONY: all 40all: glob.lib 41 42glob.lib : glob.o fnmatch.o 43 $(AR) $(ARFLAGS) $@ glob.o fnmatch.o 44 $(RANLIB) $@ 45 46# For some reason, Unix make wants the dependencies on the source files. 47# Otherwise it refuses to use an implicit rule! 48# And, get this: it doesn't work to use $(srcdir)foo.c!! 49glob.o: $(srcdir)glob.h $(srcdir)fnmatch.h glob.c 50fnmatch.o: $(srcdir)fnmatch.h fnmatch.c 51 52OUTPUT_OPTION = 53.c.o: 54 $(CC) IDir "" \ 55 $(DEFS) $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION) 56 57.PHONY: clean realclean glob-clean glob-realclean distclean 58clean glob-clean: 59 -$(RM) glob.lib "#?.o" core 60distclean glob-realclean: clean 61 -$(RM) TAGS tags Makefile config.status config.h config.log 62realcean: distclean 63 64# For inside the C library. 65glob.tar glob.tar.Z: 66 $(MAKE) -C .. $@ 67