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