VirtualBox

source: kBuild/trunk/src/kmk/glob/Makefile.ami@ 3387

Last change on this file since 3387 was 1993, checked in by bird, 16 years ago

Merged in current GNU Make code (CVS from 2008-10-28). Ref #55.

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1# Makefile for standalone libglob.a (fnmatch, glob). -*-Makefile-*-
2# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3# 2005, 2006, 2007 Free Software Foundation, Inc.
4# This file is part of GNU Make.
5#
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.
10#
11# GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
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.
15#
16# You should have received a copy of the GNU General Public License along with
17# this program. If not, see <http://www.gnu.org/licenses/>.
18
19# Ultrix 2.2 make doesn't expand the value of VPATH.
20VPATH = /glob/
21# This must repeat the value, because configure will remove `VPATH = .'.
22srcdir = /glob/
23
24CC = sc
25RM = delete
26CPPFLAGS =
27CFLAGS =
28
29# Information determined by configure.
30DEFS = Define HAVE_HEADER_STDC Define HAVE_UNISTD_H Define HAVE_STRING_H \
31 Define HAVE_DIRENT_H
32
33# How to invoke ar.
34AR = join
35ARFLAGS = as
36
37# How to invoke ranlib.
38RANLIB = ;
39
40.PHONY: all
41all: glob.lib
42
43glob.lib : glob.o fnmatch.o
44 $(AR) $(ARFLAGS) $@ glob.o fnmatch.o
45 $(RANLIB) $@
46
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!!
50glob.o: $(srcdir)glob.h $(srcdir)fnmatch.h glob.c
51fnmatch.o: $(srcdir)fnmatch.h fnmatch.c
52
53OUTPUT_OPTION =
54.c.o:
55 $(CC) IDir "" \
56 $(DEFS) $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
57
58.PHONY: clean realclean glob-clean glob-realclean distclean
59clean glob-clean:
60 -$(RM) glob.lib "#?.o" core
61distclean glob-realclean: clean
62 -$(RM) TAGS tags Makefile config.status config.h config.log
63realcean: distclean
64
65# For inside the C library.
66glob.tar glob.tar.Z:
67 $(MAKE) -C .. $@
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use