1 ## -*- text -*- ####################################################
3 # Makefile for termcap replacement libbrary. #
5 ####################################################################
7 # Copyright (C) 1996-2005 Free Software Foundation, Inc.
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)
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.
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.
26 BUILD_DIR = @BUILD_DIR@
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@
32 INSTALL_DATA = @INSTALL_DATA@
50 INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib -I$(srcdir)
52 CCFLAGS = $(CFLAGS) $(DEFS) $(CPPFLAGS) ${INCLUDES}
54 # Here is a rule for making .o files from .c files that doesn't force
55 # the type of the machine (like -sun3) into the flags.
57 $(CC) -c $(CCFLAGS) $<
59 SOURCES = termcap.c tparam.c
60 OBJECTS = termcap.o tparam.o
62 DOCUMENTATION = termcap.texinfo
64 THINGS_TO_TAR = $(SOURCES) $(DOCUMENTATION)
66 ##########################################################################
70 libtermcap.a: $(OBJECTS)
72 $(AR) $(ARFLAGS) $@ $(OBJECTS)
73 -test -n "$(RANLIB)" && $(RANLIB) $@
78 $(RM) *.o *.a *.log *.cp *.tp *.vr *.fn *.aux *.pg *.toc
82 distclean maintainer-clean: clean
85 $(DESTDIR)$(libdir)/libtermcap.a: libtermcap.a
86 ${INSTALL_DATA} -c -m 644 libtermcap.a $@
87 -test -n "$(RANLIB)" && $(RANLIB) -t $@
89 termcap.o: $(BUILD_DIR)/config.h
90 tparam.o: $(BUILD_DIR)/config.h
91 version.o: $(BUILD_DIR)/config.h