Blame glob/Makefile.ami

Packit 26a39e
# Makefile for standalone libglob.a (fnmatch, glob).             -*-Makefile-*-
Packit 26a39e
# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Packit 26a39e
# 2005, 2006, 2007 Free Software Foundation, Inc.
Packit 26a39e
# This file is part of GNU Make.
Packit 26a39e
#
Packit 26a39e
# GNU Make is free software; you can redistribute it and/or modify it under
Packit 26a39e
# the terms of the GNU General Public License as published by the Free Software
Packit 26a39e
# Foundation; either version 3 of the License, or (at your option) any later
Packit 26a39e
# version.
Packit 26a39e
#
Packit 26a39e
# GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
Packit 26a39e
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
Packit 26a39e
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
Packit 26a39e
# details.
Packit 26a39e
#
Packit 26a39e
# You should have received a copy of the GNU General Public License along with
Packit 26a39e
# this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 26a39e
Packit 26a39e
# Ultrix 2.2 make doesn't expand the value of VPATH.
Packit 26a39e
VPATH = /glob/
Packit 26a39e
# This must repeat the value, because configure will remove `VPATH = .'.
Packit 26a39e
srcdir = /glob/
Packit 26a39e
Packit 26a39e
CC = sc
Packit 26a39e
RM = delete
Packit 26a39e
CPPFLAGS =
Packit 26a39e
CFLAGS =
Packit 26a39e
Packit 26a39e
# Information determined by configure.
Packit 26a39e
DEFS = Define HAVE_HEADER_STDC Define HAVE_UNISTD_H Define HAVE_STRING_H \
Packit 26a39e
	Define HAVE_DIRENT_H
Packit 26a39e
Packit 26a39e
# How to invoke ar.
Packit 26a39e
AR = join
Packit 26a39e
ARFLAGS = as
Packit 26a39e
Packit 26a39e
# How to invoke ranlib.
Packit 26a39e
RANLIB = ;
Packit 26a39e
Packit 26a39e
.PHONY: all
Packit 26a39e
all: glob.lib
Packit 26a39e
Packit 26a39e
glob.lib : glob.o fnmatch.o
Packit 26a39e
	$(AR) $(ARFLAGS) $@ glob.o fnmatch.o
Packit 26a39e
	$(RANLIB) $@
Packit 26a39e
Packit 26a39e
# For some reason, Unix make wants the dependencies on the source files.
Packit 26a39e
# Otherwise it refuses to use an implicit rule!
Packit 26a39e
# And, get this: it doesn't work to use $(srcdir)foo.c!!
Packit 26a39e
glob.o: $(srcdir)glob.h $(srcdir)fnmatch.h glob.c
Packit 26a39e
fnmatch.o: $(srcdir)fnmatch.h fnmatch.c
Packit 26a39e
Packit 26a39e
OUTPUT_OPTION =
Packit 26a39e
.c.o:
Packit 26a39e
	$(CC) IDir "" \
Packit 26a39e
	      $(DEFS) $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
Packit 26a39e
Packit 26a39e
.PHONY: clean realclean glob-clean glob-realclean distclean
Packit 26a39e
clean glob-clean:
Packit 26a39e
	-$(RM) glob.lib "#?.o" core
Packit 26a39e
distclean glob-realclean: clean
Packit 26a39e
	-$(RM) TAGS tags Makefile config.status config.h config.log
Packit 26a39e
realcean: distclean
Packit 26a39e
Packit 26a39e
# For inside the C library.
Packit 26a39e
glob.tar glob.tar.Z:
Packit 26a39e
	$(MAKE) -C .. $@