(nscd_init): Correct initialization of in-memory database structure.
[glibc/history.git] / posix / glob / Makefile.in
blobdde4edbe6c3bb2a726050a09c344403d8fd75e36
1 # Makefile for standalone distribution of libglob.a (fnmatch, glob).
3 # Copyright (C) 1991, 92, 93, 94, 95 Free Software Foundation, Inc.
4 # This file is part of the GNU C Library.
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public License
8 # as published by the Free Software Foundation; either version 2.1 of
9 # the License, or (at your option) any later version.
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 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; see the file COPYING.LIB. If
18 # not, write to the Free Software Foundation, Inc., 59 Temple Place,
19 # Suite 330, Boston, MA 02111 USA.
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@
26 CC = @CC@
27 CPPFLAGS = @CPPFLAGS@
28 CFLAGS = @CFLAGS@
30 # Information determined by configure.
31 DEFS = @DEFS@
33 # How to invoke ar.
34 AR = @AR@
35 ARFLAGS = rv
37 # How to invoke ranlib.
38 RANLIB = @RANLIB@
40 .PHONY: all
41 all: libglob.a
43 libglob.a: glob.o fnmatch.o
44 $(AR) $(ARFLAGS) $@ glob.o fnmatch.o
45 $(RANLIB) $@
47 # For some reason, Unix make wants the dependencies on the source files.
48 # Otherwise it refuses to use an implicit rule!
49 # And, get this: it doesn't work to use $(srcdir)/foo.c!!
50 glob.o: $(srcdir)/glob.h $(srcdir)/fnmatch.h glob.c
51 fnmatch.o: $(srcdir)/fnmatch.h fnmatch.c
53 .c.o:
54 $(CC) -I. -I$(srcdir) -c \
55 $(DEFS) $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
57 .PHONY: clean realclean glob-clean glob-realclean distclean
58 clean glob-clean:
59 -rm -f libglob.a *.o core
60 distclean glob-realclean: clean
61 -rm -f TAGS tags Makefile config.status config.h config.log
62 realcean: distclean
64 # For inside the C library.
65 glob.tar glob.tar.Z:
66 $(MAKE) -C .. $@