]> git.ipfire.org Git - thirdparty/bash.git/blame - lib/glob/Makefile.in
Imported from ../bash-2.05a.tar.gz.
[thirdparty/bash.git] / lib / glob / Makefile.in
CommitLineData
726f6388
JA
1## -*- text -*- ####################################################
2# #
3# Makefile for the GNU Glob Library. #
4# #
5####################################################################
bb70624e
JA
6#
7# Copyright (C) 1996 Free Software Foundation, Inc.
8
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2, or (at your option)
12# any later version.
13
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
726f6388 22
ccc6cda3
JA
23srcdir = @srcdir@
24VPATH = .:@srcdir@
25topdir = @top_srcdir@
26BUILD_DIR = @BUILD_DIR@
27
28INSTALL = @INSTALL@
29INSTALL_PROGRAM = @INSTALL_PROGRAM@
30INSTALL_DATA = @INSTALL_DATA@
31
32CC = @CC@
33RANLIB = @RANLIB@
34AR = @AR@
b72432fd 35ARFLAGS = @ARFLAGS@
ccc6cda3
JA
36RM = rm
37CP = cp
38MV = mv
39
b72432fd
JA
40SHELL = @MAKE_SHELL@
41
ccc6cda3
JA
42CFLAGS = @CFLAGS@
43LOCAL_CFLAGS = @LOCAL_CFLAGS@
44CPPFLAGS = @CPPFLAGS@
45LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@
46
47DEFS = @DEFS@
d166f048 48LOCAL_DEFS = @LOCAL_DEFS@
ccc6cda3 49
bb70624e
JA
50BASHINCDIR = ${topdir}/include
51
52INCLUDES = -I. -I../.. -I$(topdir) -I$(BASHINCDIR) -I$(topdir)/lib
ccc6cda3 53
d166f048 54CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) ${INCLUDES} $(LOCAL_CFLAGS) $(CFLAGS)
726f6388
JA
55
56# Here is a rule for making .o files from .c files that doesn't force
57# the type of the machine (like -sun3) into the flags.
58.c.o:
ccc6cda3 59 $(CC) -c $(CCFLAGS) $<
726f6388
JA
60
61# The name of the library target.
62LIBRARY_NAME = libglob.a
63
64# The C code source files for this library.
f73dda09 65CSOURCES = $(srcdir)/glob.c $(srcdir)/strmatch.c
726f6388
JA
66
67# The header files for this library.
f73dda09 68HSOURCES = $(srcdir)/strmatch.h
726f6388 69
f73dda09 70OBJECTS = glob.o strmatch.o
726f6388
JA
71
72# The texinfo files which document this library.
73DOCSOURCE = doc/glob.texi
74DOCOBJECT = doc/glob.dvi
75DOCSUPPORT = doc/Makefile
76DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
77
78SUPPORT = Makefile ChangeLog $(DOCSUPPORT)
79
80SOURCES = $(CSOURCES) $(HSOURCES) $(DOCSOURCE)
81
82THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
83
84######################################################################
85
86all: $(LIBRARY_NAME)
87
88$(LIBRARY_NAME): $(OBJECTS)
89 $(RM) -f $@
b72432fd 90 $(AR) $(ARFLAGS) $@ $(OBJECTS)
ccc6cda3 91 -test -n "$(RANLIB)" && $(RANLIB) $@
726f6388
JA
92
93what-tar:
94 @for file in $(THINGS_TO_TAR); do \
95 echo $(selfdir)$$file; \
96 done
97
98documentation: force
ccc6cda3 99 -(cd doc; $(MAKE) $(MFLAGS))
726f6388
JA
100force:
101
102# The rule for 'includes' is written funny so that the if statement
103# always returns TRUE unless there really was an error installing the
104# include files.
105install:
726f6388
JA
106
107clean:
108 rm -f $(OBJECTS) $(LIBRARY_NAME)
ccc6cda3 109 -(cd doc && $(MAKE) $(MFLAGS) $@ )
726f6388 110
ccc6cda3
JA
111realclean distclean maintainer-clean: clean
112 -( cd doc && $(MAKE) $(MFLAGS) $@ )
113 $(RM) -f Makefile
114
115mostlyclean: clean
116 -( cd doc && $(MAKE) $(MFLAGS) $@ )
726f6388
JA
117
118######################################################################
119# #
120# Dependencies for the object files which make up this library. #
121# #
122######################################################################
123
f73dda09
JA
124strmatch.o: strmatch.h
125strmatch.o: $(BUILD_DIR)/config.h
126strmatch.o: $(BASHINCDIR)/chartypes.h
d166f048 127
ccc6cda3 128glob.o: $(BUILD_DIR)/config.h
bb70624e
JA
129glob.o: $(topdir)/bashtypes.h $(BASHINCDIR)/ansi_stdlib.h $(topdir)/bashansi.h
130glob.o: $(BASHINCDIR)/posixstat.h $(BASHINCDIR)/memalloc.h
f73dda09 131glob.o: strmatch.h
e8ce775d
JA
132
133# Rules for deficient makes, like SunOS and Solaris
f73dda09 134strmatch.o: strmatch.c
e8ce775d 135glob.o: glob.c