Imported from ../bash-3.1.tar.gz.
[platform/upstream/bash.git] / lib / termcap / Makefile.in
index 64635f8..bf5639f 100644 (file)
@@ -4,11 +4,29 @@
 #                                                                 #
 ####################################################################
 
+# Copyright (C) 1996-2005 Free Software Foundation, Inc.     
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
+
 srcdir = @srcdir@
 VPATH = .:@srcdir@
 topdir = @top_srcdir@
 BUILD_DIR = @BUILD_DIR@
 
+libdir = @libdir@
+
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
@@ -16,17 +34,20 @@ INSTALL_DATA = @INSTALL_DATA@
 CC = @CC@
 RANLIB = @RANLIB@
 AR = @AR@
+ARFLAGS = @ARFLAGS@
 RM = rm -f
 CP = cp
 MV = mv
 
+SHELL = @MAKE_SHELL@
+
 CFLAGS = @CFLAGS@
 CPPFLAGS = @CPPFLAGS@
 LDFLAGS = @LDFLAGS@
 
 DEFS = @DEFS@
 
-INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib
+INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib -I$(srcdir)
 
 CCFLAGS = $(CFLAGS) $(DEFS) $(CPPFLAGS) ${INCLUDES}
 
@@ -35,8 +56,6 @@ CCFLAGS = $(CFLAGS) $(DEFS) $(CPPFLAGS) ${INCLUDES}
 .c.o:
        $(CC) -c $(CCFLAGS) $<
 
-SHELL = /bin/sh
-
 SOURCES = termcap.c tparam.c
 OBJECTS = termcap.o tparam.o
 
@@ -50,7 +69,7 @@ all: libtermcap.a
 
 libtermcap.a:  $(OBJECTS)
        $(RM) -f $@
-       $(AR) cr $@ $(OBJECTS)
+       $(AR) $(ARFLAGS) $@ $(OBJECTS)
        -test -n "$(RANLIB)" && $(RANLIB) $@
 
 install:       
@@ -58,9 +77,12 @@ install:
 clean:
        $(RM) *.o *.a *.log *.cp *.tp *.vr *.fn *.aux *.pg *.toc
 
-mostlyclean distclean maintainer-clean: clean
+mostlyclean: clean
+
+distclean maintainer-clean: clean
+       $(RM) Makefile
 
-$(DESTDIR)/libtermcap.a: libtermcap.a
+$(DESTDIR)$(libdir)/libtermcap.a: libtermcap.a
        ${INSTALL_DATA} -c -m 644 libtermcap.a $@
        -test -n "$(RANLIB)" && $(RANLIB) -t $@