improve of cmpl.
[bush.git] / lib / termcap / Makefile
blob147b63cef0d51b858206a7a67542c25d1b21dbc5
1 ## -*- text -*- ####################################################
2 # #
3 # Makefile for termcap replacement libbrary. #
4 # #
5 ####################################################################
7 # Copyright (C) 1996-2009 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 3 of the License, or
12 # (at your option) any later version.
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, see <http://www.gnu.org/licenses/>.
22 srcdir = .
24 topdir = ../..
25 BUILD_DIR = /mnt/hgfs/workspace/tmp/srcpkg/bush
27 libdir = ${exec_prefix}/lib
29 INSTALL = /usr/bin/install -c
30 INSTALL_PROGRAM = ${INSTALL}
31 INSTALL_DATA = ${INSTALL} -m 644
33 CC = gcc
34 RANLIB = ranlib
35 AR = ar
36 ARFLAGS = cr
37 RM = rm -f
38 CP = cp
39 MV = mv
41 SHELL = /bin/sh
43 CFLAGS = -g -O2 -Wno-parentheses -Wno-format-security
44 CPPFLAGS =
45 LDFLAGS =
47 DEFS = -DHAVE_CONFIG_H
49 INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib -I$(srcdir)
51 CCFLAGS = $(CFLAGS) $(DEFS) $(CPPFLAGS) ${INCLUDES}
53 # Here is a rule for making .o files from .c files that doesn't force
54 # the type of the machine (like -sun3) into the flags.
55 .c.o:
56 $(CC) -c $(CCFLAGS) $<
58 SOURCES = termcap.c tparam.c
59 OBJECTS = termcap.o tparam.o
61 DOCUMENTATION = termcap.texinfo
63 THINGS_TO_TAR = $(SOURCES) $(DOCUMENTATION)
65 ##########################################################################
67 all: libtermcap.a
69 libtermcap.a: $(OBJECTS)
70 $(RM) -f $@
71 $(AR) $(ARFLAGS) $@ $(OBJECTS)
72 -test -n "$(RANLIB)" && $(RANLIB) $@
74 install:
76 clean:
77 $(RM) *.o *.a *.log *.cp *.tp *.vr *.fn *.aux *.pg *.toc
79 mostlyclean: clean
81 distclean maintainer-clean: clean
82 $(RM) Makefile
84 $(DESTDIR)$(libdir)/libtermcap.a: libtermcap.a
85 ${INSTALL_DATA} -c -m 644 libtermcap.a $@
86 -test -n "$(RANLIB)" && $(RANLIB) -t $@
88 termcap.o: $(BUILD_DIR)/config.h
89 tparam.o: $(BUILD_DIR)/config.h
90 version.o: $(BUILD_DIR)/config.h