Imported from ../bash-2.0.tar.gz.
[platform/upstream/bash.git] / lib / glob / Makefile.in
similarity index 54%
rename from lib/glob/Makefile
rename to lib/glob/Makefile.in
index 5811ba2..4471c18 100644 (file)
@@ -4,39 +4,46 @@
 #                                                                 #
 ####################################################################
 
-# This Makefile is hand made from a template file, found in
-# ../template.  Each library must provide several Makefile
-# targets: `all', `clean', `documentation', `install', and
-# `what-tar'.  The `what-tar' target reports the names of the
-# files that need to be included in a tarfile to build the full
-# code and documentation for this library.
-
-# Please note that the values for INCLUDES, CC, AR, RM, CP,
-# RANLIB, and selfdir are passed in from ../Makefile, and do
-# not need to be defined here.
-srcdir = .
-VPATH = .:$(srcdir)
+srcdir = @srcdir@
+VPATH = .:@srcdir@
+topdir = @top_srcdir@
+BUILD_DIR = @BUILD_DIR@
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+
+CC = @CC@
+RANLIB = @RANLIB@
+AR = @AR@
+RM = rm
+CP = cp
+MV = mv
+
+CFLAGS = @CFLAGS@
+LOCAL_CFLAGS = @LOCAL_CFLAGS@
+CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@
+
+DEFS = @DEFS@
+
+INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib
+
+CCFLAGS = $(DEFS) $(CPPFLAGS) ${INCLUDES} $(LOCAL_CFLAGS) $(CFLAGS)
 
 # Here is a rule for making .o files from .c files that doesn't force
 # the type of the machine (like -sun3) into the flags.
 .c.o:
-       $(CC) -c $(CFLAGS) $(INCLUDES) $(LOCAL_DEFINES) $(CPPFLAGS) $<
-
-# LOCAL_DEFINES are flags that are specific to this library.
-# Define -DUSG if you are using a System V operating system.
-LOCAL_DEFINES = $(LOCAL_INCLUDES) #-DUSG
-
-# For libraries which include headers from other libraries.
-LOCAL_INCLUDES = -I..
+       $(CC) -c $(CCFLAGS) $<
 
 # The name of the library target.
 LIBRARY_NAME = libglob.a
 
 # The C code source files for this library.
-CSOURCES = $(srcdir)glob.c $(srcdir)fnmatch.c
+CSOURCES = $(srcdir)/glob.c $(srcdir)/fnmatch.c
 
 # The header files for this library.
-HSOURCES = $(srcdir)fnmatch.h
+HSOURCES = $(srcdir)/fnmatch.h
 
 OBJECTS = glob.o fnmatch.o
 
@@ -58,8 +65,8 @@ all: $(LIBRARY_NAME)
 
 $(LIBRARY_NAME): $(OBJECTS)
        $(RM) -f $@
-       $(AR) cq $@ $(OBJECTS)
-       -[ -n "$(RANLIB)" ] && $(RANLIB) $@
+       $(AR) cr $@ $(OBJECTS)
+       -test -n "$(RANLIB)" && $(RANLIB) $@
 
 what-tar:
        @for file in $(THINGS_TO_TAR); do \
@@ -67,24 +74,24 @@ what-tar:
        done
 
 documentation: force
-       -(cd doc && $(MAKE) $(MFLAGS))
-
+       -(cd doc; $(MAKE) $(MFLAGS))
 force:
 
 # The rule for 'includes' is written funny so that the if statement
 # always returns TRUE unless there really was an error installing the
 # include files.
 install:
-       -$(MV) $(bindir)/$(LIBRARY_NAME) $(bindir)/$(LIBRARY_NAME)-old
-       $(CP) $(LIBRARY_NAME) $(bindir)/$(LIBRARY_NAME)
-       -[ -n "$(RANLIB)" ] && $(RANLIB) -t $(bindir)/$(LIBRARY_NAME)
 
 clean:
        rm -f $(OBJECTS) $(LIBRARY_NAME)
-       -(cd doc && $(MAKE) $(MFLAGS) $@)
+       -(cd doc && $(MAKE) $(MFLAGS) $@ )
 
-maintainer-clean realclean mostlyclean distclean: clean
-       -(cd doc && $(MAKE) $(MFLAGS) $@)
+realclean distclean maintainer-clean: clean
+       -( cd doc && $(MAKE) $(MFLAGS) $@ )
+       $(RM) -f Makefile
+
+mostlyclean: clean
+       -( cd doc && $(MAKE) $(MFLAGS) $@ )
 
 ######################################################################
 #                                                                   #
@@ -93,3 +100,6 @@ maintainer-clean realclean mostlyclean distclean: clean
 ######################################################################
 
 fnmatch.o: fnmatch.c fnmatch.h
+
+fnmatch.o: $(BUILD_DIR)/config.h
+glob.o: $(BUILD_DIR)/config.h