1313
|
1 # Makefile for standalone distribution of libglob.a (fnmatch, glob). |
|
2 |
|
3 # Copyright (C) 1991, 92, 93, 94, 95 Free Software Foundation, Inc. |
|
4 # This file is part of the GNU C Library. |
|
5 |
|
6 # This library is free software; you can redistribute it and/or |
|
7 # modify it under the terms of the GNU Library General Public License |
|
8 # as published by the Free Software Foundation; either version 2 of |
|
9 # the License, or (at your option) any later version. |
|
10 |
|
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 # Library General Public License for more details. |
|
15 |
|
16 # You should have received a copy of the GNU Library General Public |
|
17 # License along with this library; see the file COPYING.LIB. If |
1315
|
18 # not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
19 # Boston, MA 02111-1307, USA. |
1313
|
20 |
|
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@ |
|
25 |
|
26 CC = @CC@ |
|
27 CPPFLAGS = @CPPFLAGS@ |
|
28 CFLAGS = @CFLAGS@ |
|
29 |
|
30 # Information determined by configure. |
|
31 DEFS = @DEFS@ |
|
32 |
|
33 # How to invoke ar. |
|
34 AR = @AR@ |
|
35 ARFLAGS = rv |
|
36 |
4599
|
37 ALLOCA = @ALLOCA@ |
|
38 |
1313
|
39 # How to invoke ranlib. |
|
40 RANLIB = @RANLIB@ |
|
41 |
|
42 .PHONY: all |
|
43 all: libglob.a |
|
44 |
4599
|
45 libglob.a: glob.o fnmatch.o $(ALLOCA) |
|
46 $(AR) $(ARFLAGS) $@ glob.o fnmatch.o $(ALLOCA) |
1313
|
47 $(RANLIB) $@ |
|
48 |
|
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 |
|
54 |
|
55 .c.o: |
|
56 $(CC) -I. -I$(srcdir) -c \ |
|
57 $(DEFS) $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION) |
|
58 |
1391
|
59 .PHONY: clean maintainer-clean glob-clean glob-maintainer-clean distclean |
3265
|
60 clean glob-clean: |
1313
|
61 -rm -f libglob.a *.o core |
2397
|
62 |
3265
|
63 distclean glob-maintainer-clean: clean |
4710
|
64 -rm -f Makefile config.status config.cache config.h config.log |
|
65 -rm -f TAGS tags |
4440
|
66 -rm -rf autom4te.cache |
2397
|
67 |
3265
|
68 maintainer-clean: distclean |
4710
|
69 -rm -f configure config.h.in |
2754
|
70 |
2397
|
71 realclean: distclean |
1313
|
72 |
|
73 # For inside the C library. |
|
74 glob.tar glob.tar.Z: |
|
75 $(MAKE) -C .. $@ |
1918
|
76 |
2811
|
77 install install-strip: |