1 ## -*- text -*- ####################################################
3 # Makefile for termcap replacement libbrary. #
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/>.
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
43 CFLAGS
= -g
-O2
-Wno-parentheses
-Wno-format-security
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.
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 ##########################################################################
69 libtermcap.a
: $(OBJECTS
)
71 $(AR
) $(ARFLAGS
) $@
$(OBJECTS
)
72 -test -n
"$(RANLIB)" && $(RANLIB
) $@
77 $(RM
) *.o
*.a
*.log
*.cp
*.tp
*.vr
*.fn
*.aux
*.pg
*.toc
81 distclean maintainer-clean
: clean
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