2.9
[glibc/nacl-glibc.git] / posix / glob / SMakefile
blob6e284db1f318da79584a7d5b73e3669dc3b908b3
1 # Makefile for standalone distribution of libglob.a (fnmatch, glob).
2 # Copyright (C) 1991, 92, 93, 94, 95, 97 Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
5 # The GNU C Library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
10 # The GNU C Library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with the GNU C Library; if not, write to the Free
17 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 # 02111-1307 USA.
20 # Ultrix 2.2 make doesn't expand the value of VPATH.
21 VPATH = /glob/
22 # This must repeat the value, because configure will remove `VPATH = .'.
23 srcdir = /glob/
25 CC = sc
26 CPPFLAGS =
27 CFLAGS =
28 MAKE = smake
29 RM = delete
31 # Information determined by configure.
32 DEFS = Define HAVE_HEADER_STDC Define HAVE_UNISTD_H Define HAVE_STRING_H \
33         Define HAVE_DIRENT_H
35 # How to invoke ar.
36 AR = join
37 ARFLAGS = as
39 # How to invoke ranlib.
40 RANLIB = ;
42 .PHONY: all
43 all: glob.lib
45 glob.lib : glob.o fnmatch.o
46         $(AR) $(ARFLAGS) $@ glob.o fnmatch.o
47         $(RANLIB) $@
49 # For some reason, Unix make wants the dependencies on the source files.
50 # Otherwise it refuses to use an implicit rule!
51 # And, get this: it doesn't work to use $(srcdir)foo.c!!
52 glob.o: $(srcdir)glob.h $(srcdir)fnmatch.h glob.c
53 fnmatch.o: $(srcdir)fnmatch.h fnmatch.c
55 .c.o:
56         $(CC) IDir "" \
57               $(DEFS) $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
59 .PHONY: clean realclean glob-clean glob-realclean distclean
60 clean glob-clean:
61         -$(RM) -f glob.lib *.o core
62 distclean glob-realclean: clean
63         -$(RM) -f TAGS tags Makefile config.status config.h config.log
64 realcean: distclean
66 # For inside the C library.
67 glob.tar glob.tar.Z:
68         $(MAKE) -C .. $@