]> git.ipfire.org Git - thirdparty/bash.git/blame - lib/termcap/Makefile.in
Imported from ../bash-2.04.tar.gz.
[thirdparty/bash.git] / lib / termcap / Makefile.in
CommitLineData
ccc6cda3
JA
1## -*- text -*- ####################################################
2# #
3# Makefile for termcap replacement libbrary. #
4# #
5####################################################################
6
bb70624e
JA
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
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 -f
37CP = cp
38MV = mv
39
b72432fd
JA
40SHELL = @MAKE_SHELL@
41
ccc6cda3
JA
42CFLAGS = @CFLAGS@
43CPPFLAGS = @CPPFLAGS@
44LDFLAGS = @LDFLAGS@
45
46DEFS = @DEFS@
47
bb70624e 48INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib -I$(srcdir)
ccc6cda3
JA
49
50CCFLAGS = $(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
ccc6cda3
JA
57SOURCES = termcap.c tparam.c
58OBJECTS = termcap.o tparam.o
59
60DOCUMENTATION = termcap.texinfo
61
62THINGS_TO_TAR = $(SOURCES) $(DOCUMENTATION)
63
64##########################################################################
65
66all: libtermcap.a
67
68libtermcap.a: $(OBJECTS)
69 $(RM) -f $@
b72432fd 70 $(AR) $(ARFLAGS) $@ $(OBJECTS)
ccc6cda3
JA
71 -test -n "$(RANLIB)" && $(RANLIB) $@
72
73install:
74
75clean:
76 $(RM) *.o *.a *.log *.cp *.tp *.vr *.fn *.aux *.pg *.toc
77
bb70624e
JA
78mostlyclean: clean
79
80distclean maintainer-clean: clean
81 $(RM) Makefile
ccc6cda3
JA
82
83$(DESTDIR)/libtermcap.a: libtermcap.a
84 ${INSTALL_DATA} -c -m 644 libtermcap.a $@
85 -test -n "$(RANLIB)" && $(RANLIB) -t $@
86
87termcap.o: $(BUILD_DIR)/config.h
88tparam.o: $(BUILD_DIR)/config.h
89version.o: $(BUILD_DIR)/config.h