Imported from ../bash-2.04.tar.gz.
[platform/upstream/bash.git] / lib / termcap / Makefile.in
1 ## -*- text -*- ####################################################
2 #                                                                  #
3 # Makefile for termcap replacement libbrary.                       #
4 #                                                                  #
5 ####################################################################
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.
22
23 srcdir = @srcdir@
24 VPATH = .:@srcdir@
25 topdir = @top_srcdir@
26 BUILD_DIR = @BUILD_DIR@
27
28 INSTALL = @INSTALL@
29 INSTALL_PROGRAM = @INSTALL_PROGRAM@
30 INSTALL_DATA = @INSTALL_DATA@
31
32 CC = @CC@
33 RANLIB = @RANLIB@
34 AR = @AR@
35 ARFLAGS = @ARFLAGS@
36 RM = rm -f
37 CP = cp
38 MV = mv
39
40 SHELL = @MAKE_SHELL@
41
42 CFLAGS = @CFLAGS@
43 CPPFLAGS = @CPPFLAGS@
44 LDFLAGS = @LDFLAGS@
45
46 DEFS = @DEFS@
47
48 INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib -I$(srcdir)
49
50 CCFLAGS = $(CFLAGS) $(DEFS) $(CPPFLAGS) ${INCLUDES}
51
52 # Here is a rule for making .o files from .c files that doesn't force
53 # the type of the machine (like -sun3) into the flags.
54 .c.o:
55         $(CC) -c $(CCFLAGS) $<
56
57 SOURCES = termcap.c tparam.c
58 OBJECTS = termcap.o tparam.o
59
60 DOCUMENTATION = termcap.texinfo
61
62 THINGS_TO_TAR = $(SOURCES) $(DOCUMENTATION)
63
64 ##########################################################################
65
66 all: libtermcap.a
67
68 libtermcap.a:   $(OBJECTS)
69         $(RM) -f $@
70         $(AR) $(ARFLAGS) $@ $(OBJECTS)
71         -test -n "$(RANLIB)" && $(RANLIB) $@
72
73 install:        
74
75 clean:
76         $(RM) *.o *.a *.log *.cp *.tp *.vr *.fn *.aux *.pg *.toc
77
78 mostlyclean: clean
79
80 distclean maintainer-clean: clean
81         $(RM) Makefile
82
83 $(DESTDIR)/libtermcap.a: libtermcap.a
84         ${INSTALL_DATA} -c -m 644 libtermcap.a $@
85         -test -n "$(RANLIB)" && $(RANLIB) -t $@
86
87 termcap.o: $(BUILD_DIR)/config.h
88 tparam.o: $(BUILD_DIR)/config.h
89 version.o: $(BUILD_DIR)/config.h