VirtualBox

source: kBuild/trunk/src/gmake/glob/Makefile.ami@ 298

Last change on this file since 298 was 53, checked in by bird, 21 years ago

Initial revision

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1# Makefile for standalone distribution of libglob.a (fnmatch, glob).
2
3# Copyright (C) 1991, 92, 93, 94, 95, 97, 98 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
18# not, write to the Free Software Foundation, Inc.,
19# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
21# Ultrix 2.2 make doesn't expand the value of VPATH.
22VPATH = /glob/
23# This must repeat the value, because configure will remove `VPATH = .'.
24srcdir = /glob/
25
26CC = sc
27RM = delete
28CPPFLAGS =
29CFLAGS =
30
31# Information determined by configure.
32DEFS = Define HAVE_HEADER_STDC Define HAVE_UNISTD_H Define HAVE_STRING_H \
33 Define HAVE_DIRENT_H
34
35# How to invoke ar.
36AR = join
37ARFLAGS = as
38
39# How to invoke ranlib.
40RANLIB = ;
41
42.PHONY: all
43all: glob.lib
44
45glob.lib : glob.o fnmatch.o
46 $(AR) $(ARFLAGS) $@ glob.o fnmatch.o
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!!
52glob.o: $(srcdir)glob.h $(srcdir)fnmatch.h glob.c
53fnmatch.o: $(srcdir)fnmatch.h fnmatch.c
54
55OUTPUT_OPTION =
56.c.o:
57 $(CC) IDir "" \
58 $(DEFS) $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
59
60.PHONY: clean realclean glob-clean glob-realclean distclean
61clean glob-clean:
62 -$(RM) glob.lib "#?.o" core
63distclean glob-realclean: clean
64 -$(RM) TAGS tags Makefile config.status config.h config.log
65realcean: distclean
66
67# For inside the C library.
68glob.tar glob.tar.Z:
69 $(MAKE) -C .. $@
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette