]> git.ipfire.org Git - thirdparty/bash.git/blame - lib/termcap/Makefile.in
Imported from ../bash-2.02.1.tar.gz.
[thirdparty/bash.git] / lib / termcap / Makefile.in
CommitLineData
ccc6cda3
JA
1## -*- text -*- ####################################################
2# #
3# Makefile for termcap replacement libbrary. #
4# #
5####################################################################
6
7srcdir = @srcdir@
8VPATH = .:@srcdir@
9topdir = @top_srcdir@
10BUILD_DIR = @BUILD_DIR@
11
12INSTALL = @INSTALL@
13INSTALL_PROGRAM = @INSTALL_PROGRAM@
14INSTALL_DATA = @INSTALL_DATA@
15
16CC = @CC@
17RANLIB = @RANLIB@
18AR = @AR@
19RM = rm -f
20CP = cp
21MV = mv
22
23CFLAGS = @CFLAGS@
24CPPFLAGS = @CPPFLAGS@
25LDFLAGS = @LDFLAGS@
26
27DEFS = @DEFS@
28
29INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib
30
31CCFLAGS = $(CFLAGS) $(DEFS) $(CPPFLAGS) ${INCLUDES}
32
33# Here is a rule for making .o files from .c files that doesn't force
34# the type of the machine (like -sun3) into the flags.
35.c.o:
36 $(CC) -c $(CCFLAGS) $<
37
38SHELL = /bin/sh
39
40SOURCES = termcap.c tparam.c
41OBJECTS = termcap.o tparam.o
42
43DOCUMENTATION = termcap.texinfo
44
45THINGS_TO_TAR = $(SOURCES) $(DOCUMENTATION)
46
47##########################################################################
48
49all: libtermcap.a
50
51libtermcap.a: $(OBJECTS)
52 $(RM) -f $@
53 $(AR) cr $@ $(OBJECTS)
54 -test -n "$(RANLIB)" && $(RANLIB) $@
55
56install:
57
58clean:
59 $(RM) *.o *.a *.log *.cp *.tp *.vr *.fn *.aux *.pg *.toc
60
61mostlyclean distclean maintainer-clean: clean
62
63$(DESTDIR)/libtermcap.a: libtermcap.a
64 ${INSTALL_DATA} -c -m 644 libtermcap.a $@
65 -test -n "$(RANLIB)" && $(RANLIB) -t $@
66
67termcap.o: $(BUILD_DIR)/config.h
68tparam.o: $(BUILD_DIR)/config.h
69version.o: $(BUILD_DIR)/config.h