2012-03-18 08:14:18 +08:00
|
|
|
# $Id: Makefile.in,v 1.88 2012/03/17 16:45:38 tom Exp $
|
1998-03-01 12:21:12 +08:00
|
|
|
##############################################################################
|
2012-03-18 08:14:18 +08:00
|
|
|
# Copyright (c) 1998-2011,2012 Free Software Foundation, Inc. #
|
1998-03-01 12:21:12 +08:00
|
|
|
# #
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a #
|
|
|
|
# copy of this software and associated documentation files (the "Software"), #
|
|
|
|
# to deal in the Software without restriction, including without limitation #
|
|
|
|
# the rights to use, copy, modify, merge, publish, distribute, distribute #
|
|
|
|
# with modifications, sublicense, and/or sell copies of the Software, and to #
|
|
|
|
# permit persons to whom the Software is furnished to do so, subject to the #
|
|
|
|
# following conditions: #
|
|
|
|
# #
|
|
|
|
# The above copyright notice and this permission notice shall be included in #
|
|
|
|
# all copies or substantial portions of the Software. #
|
|
|
|
# #
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
|
|
|
|
# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
|
|
|
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
|
|
|
|
# DEALINGS IN THE SOFTWARE. #
|
|
|
|
# #
|
|
|
|
# Except as contained in this notice, the name(s) of the above copyright #
|
|
|
|
# holders shall not be used in advertising or otherwise to promote the sale, #
|
|
|
|
# use or other dealings in this Software without prior written #
|
|
|
|
# authorization. #
|
|
|
|
##############################################################################
|
|
|
|
#
|
2006-12-18 12:32:42 +08:00
|
|
|
# Author: Thomas E. Dickey 1996-on
|
1998-03-01 12:21:12 +08:00
|
|
|
#
|
1997-05-15 12:00:00 +08:00
|
|
|
# Makefile for ncurses source code.
|
|
|
|
#
|
|
|
|
# This makes the ncurses utility programs.
|
|
|
|
#
|
|
|
|
# The variable 'srcdir' refers to the source-distribution, and can be set with
|
|
|
|
# the configure script by "--srcdir=DIR".
|
|
|
|
#
|
|
|
|
# The rules are organized to produce the libraries for the configured models,
|
|
|
|
# and the programs with the configured default model.
|
|
|
|
|
|
|
|
# turn off _all_ suffix rules; we'll generate our own
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
2010-11-28 08:33:36 +08:00
|
|
|
VPATH = @srcdir@
|
1997-05-15 12:00:00 +08:00
|
|
|
THIS = Makefile
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
CF_MFLAGS = @cf_cv_makeflags@
|
1997-05-15 12:00:00 +08:00
|
|
|
@SET_MAKE@
|
2004-02-09 10:15:26 +08:00
|
|
|
|
|
|
|
x = @EXEEXT@
|
|
|
|
o = .@OBJEXT@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
MODEL = ../@DFT_OBJ_SUBDIR@
|
2000-10-21 12:42:11 +08:00
|
|
|
DESTDIR = @DESTDIR@
|
2005-10-10 02:41:57 +08:00
|
|
|
top_srcdir = @top_srcdir@
|
1997-05-15 12:00:00 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
1998-03-01 12:21:12 +08:00
|
|
|
libdir = @libdir@
|
1997-05-15 12:00:00 +08:00
|
|
|
includedir = @includedir@
|
|
|
|
datadir = @datadir@
|
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
LIBTOOL = @LIBTOOL@
|
2004-02-09 10:15:26 +08:00
|
|
|
LIBTOOL_CLEAN = @LIB_CLEAN@
|
|
|
|
LIBTOOL_COMPILE = @LIB_COMPILE@
|
|
|
|
LIBTOOL_LINK = @LIB_LINK@
|
|
|
|
LIBTOOL_INSTALL = @LIB_INSTALL@
|
|
|
|
LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
2006-12-18 12:32:42 +08:00
|
|
|
INSTALL_PROG = @INSTALL_PROGRAM@
|
2000-10-21 12:42:11 +08:00
|
|
|
transform = @program_transform_name@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
AWK = @AWK@
|
|
|
|
LN_S = @LN_S@
|
|
|
|
|
2010-04-04 09:26:17 +08:00
|
|
|
CTAGS = @CTAGS@
|
|
|
|
ETAGS = @ETAGS@
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
CC = @CC@
|
2000-07-09 10:46:08 +08:00
|
|
|
CPP = @CPP@
|
1997-05-15 12:00:00 +08:00
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
|
2005-10-10 02:41:57 +08:00
|
|
|
INCDIR = $(top_srcdir)/include
|
2004-02-09 10:15:26 +08:00
|
|
|
CPPFLAGS = -I../progs -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
CCFLAGS = $(CPPFLAGS) $(CFLAGS)
|
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
CFLAGS_LIBTOOL = $(CCFLAGS)
|
1997-05-15 12:00:00 +08:00
|
|
|
CFLAGS_NORMAL = $(CCFLAGS)
|
|
|
|
CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
|
|
|
|
CFLAGS_PROFILE = $(CCFLAGS) -pg
|
2000-07-09 10:46:08 +08:00
|
|
|
CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
|
|
|
|
|
2006-12-18 12:32:42 +08:00
|
|
|
REL_VERSION = @cf_cv_rel_version@
|
|
|
|
ABI_VERSION = @cf_cv_abi_version@
|
|
|
|
LOCAL_LIBDIR = @top_builddir@/lib
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
LD = @LD@
|
2007-04-22 08:57:08 +08:00
|
|
|
LINK = @LINK_PROGS@ $(LIBTOOL_LINK)
|
2007-10-14 08:38:28 +08:00
|
|
|
LDFLAGS = @EXTRA_LDFLAGS@ @LDFLAGS@
|
ncurses 5.9 - patch 20110730
+ modify configure script and makefiles in c++ and progs to allow the
directory used for rpath option to be overridden, e.g., to work
around updates to the variables used by tic during an install.
+ add -K option to tic/infocmp, to provide stricter BSD-compatibility
for termcap output.
+ add _nc_strict_bsd variable in tic library which controls the
"strict" BSD termcap compatibility from 20110723, plus these
features:
+ allow escapes such as "\8" and "\9" when reading termcap
+ disallow "\a", "\e", "\l", "\s" and "\:" escapes when reading
termcap files, passing through "a", "e", etc.
+ expand "\:" as "\072" on output.
+ modify _nc_get_token() to reset the token's string value in case
there is a string-typed token lacking the "=" marker.
+ fix a few memory leaks in _nc_tgetent.
+ fix a few places where reading from a termcap file could refer to
freed memory.
+ add an overflow check when converting terminfo/termcap numeric
values, since terminfo stores those in a short, and they must be
positive.
+ correct internal variables used for translating to termcap "%>"
feature, and translating from termcap %B to terminfo, needed by
tctest (cf: 19991211).
+ amend a minor fix to acsc when loading a termcap file to separate it
from warnings needed for tic (cf: 20040710)
+ modify logic in _nc_read_entry() and _nc_read_tic_entry() to allow
a termcap file to be handled via TERMINFO_DIRS.
+ modify _nc_infotocap() to include non-mandatory padding when
translating to termcap.
+ modify _nc_read_termcap_entry(), passing a flag in the case where
getcap is used, to reduce interactive warning messages.
2011-07-31 09:15:59 +08:00
|
|
|
RPATH_LIST = @RPATH_LIST@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2004-02-09 10:15:26 +08:00
|
|
|
LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
|
|
|
|
LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL)
|
|
|
|
LDFLAGS_DEBUG = $(LDFLAGS) $(CFLAGS_DEBUG)
|
2011-09-25 07:21:18 +08:00
|
|
|
LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
|
2004-02-09 10:15:26 +08:00
|
|
|
LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
|
|
|
|
|
2011-09-25 07:21:18 +08:00
|
|
|
LIBS_TIC = @TINFO_LDFLAGS@ @LDFLAGS_STATIC@ @TICS_LIBS@ @TINFO_LIBS@ @LDFLAGS_SHARED@ @LD_MODEL@ @LIBS@
|
|
|
|
LDFLAGS_TIC = @TICS_LDFLAGS@ $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TIC)
|
2007-10-14 08:38:28 +08:00
|
|
|
|
2011-09-25 07:21:18 +08:00
|
|
|
LIBS_TINFO = @LDFLAGS_STATIC@ @TINFO_LIBS@ @LDFLAGS_SHARED@ @LD_MODEL@ @LIBS@
|
|
|
|
LDFLAGS_TINFO = @TINFO_LDFLAGS@ $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TINFO)
|
2007-10-14 08:38:28 +08:00
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
LINT = @LINT@
|
|
|
|
LINT_OPTS = @LINT_OPTS@
|
|
|
|
LINT_LIBS = -lncurses @LIBS@
|
|
|
|
|
|
|
|
AUTO_SRC = \
|
2000-10-21 12:42:11 +08:00
|
|
|
termsort.c \
|
|
|
|
transform.h
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2006-12-18 12:32:42 +08:00
|
|
|
# tic relies on direct access to the terminfo database
|
2008-11-16 10:16:59 +08:00
|
|
|
GET_PROGS = infocmp$x clear$x tabs$x tput$x tset$x toe$x
|
2006-12-18 12:32:42 +08:00
|
|
|
PUT_PROGS = @MAKE_TERMINFO@ tic$x
|
2002-10-13 11:35:53 +08:00
|
|
|
PROGS = $(PUT_PROGS) $(GET_PROGS)
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
# Default library, for linking applications
|
2000-07-09 10:46:08 +08:00
|
|
|
DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2005-10-10 02:41:57 +08:00
|
|
|
HEADER_DEPS = \
|
|
|
|
../include/curses.h \
|
|
|
|
$(INCDIR)/term_entry.h \
|
|
|
|
$(INCDIR)/tic.h \
|
|
|
|
$(INCDIR)/nc_alloc.h
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
################################################################################
|
2000-10-21 12:42:11 +08:00
|
|
|
all: $(AUTO_SRC) $(PROGS)
|
1998-03-01 12:21:12 +08:00
|
|
|
|
|
|
|
sources: $(AUTO_SRC)
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
install: $(AUTO_SRC) install.progs
|
|
|
|
uninstall: uninstall.progs
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
# this line simplifies the configure-script
|
2000-07-09 10:46:08 +08:00
|
|
|
libs \
|
|
|
|
install.libs \
|
1998-03-01 12:21:12 +08:00
|
|
|
uninstall.libs:
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
TRANSFORM = sed 's/$x$$//'|sed '$(transform)'|sed 's/$$/$x/'
|
|
|
|
|
2006-12-18 12:32:42 +08:00
|
|
|
# transformed names for installing files
|
2000-10-21 12:42:11 +08:00
|
|
|
actual_captoinfo = `echo captoinfo$x| $(TRANSFORM)`
|
|
|
|
actual_clear = `echo clear$x| $(TRANSFORM)`
|
|
|
|
actual_infocmp = `echo infocmp$x| $(TRANSFORM)`
|
|
|
|
actual_infotocap = `echo infotocap$x| $(TRANSFORM)`
|
|
|
|
actual_init = `echo init$x| $(TRANSFORM)`
|
|
|
|
actual_reset = `echo reset$x| $(TRANSFORM)`
|
2008-11-16 10:16:59 +08:00
|
|
|
actual_tabs = `echo tabs$x| $(TRANSFORM)`
|
2000-10-21 12:42:11 +08:00
|
|
|
actual_tic = `echo tic$x| $(TRANSFORM)`
|
|
|
|
actual_toe = `echo toe$x| $(TRANSFORM)`
|
|
|
|
actual_tput = `echo tput$x| $(TRANSFORM)`
|
|
|
|
actual_tset = `echo tset$x| $(TRANSFORM)`
|
|
|
|
|
2006-12-18 12:32:42 +08:00
|
|
|
# transformed names for comparing at runtime
|
|
|
|
define_captoinfo = `echo captoinfo| $(TRANSFORM)`
|
|
|
|
define_infotocap = `echo infotocap| $(TRANSFORM)`
|
|
|
|
define_init = `echo init| $(TRANSFORM)`
|
|
|
|
define_reset = `echo reset| $(TRANSFORM)`
|
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
transform.h :
|
2009-03-15 09:02:54 +08:00
|
|
|
echo "#ifndef __TRANSFORM_H" >$@
|
|
|
|
echo "#define __TRANSFORM_H 1" >>$@
|
|
|
|
echo "#include <progs.priv.h>" >>$@
|
|
|
|
echo "extern bool same_program(const char *, const char *);" >>$@
|
ncurses 5.7 - patch 20090328
+ extend ansi.sys pfkey capability from kf1-kf10 to kf1-kf48, moving
function key definitions from emx-base for consistency -TD
+ correct missing final 'p' in pfkey capability of ansi.sys-old (report
by Kalle Olavi Niemitalo).
+ improve test/ncurses.c 'F' test, show combining characters in color.
+ quiet a false report by cppcheck in c++/cursesw.cc by eliminating
a temporary variable.
+ use _nc_doalloc() rather than realloc() in a few places in ncurses
library to avoid leak in out-of-memory condition (reports by William
Egert and Martin Ettl based on cppcheck tool).
+ add --with-ncurses-wrap-prefix option to test/configure (discussion
with Charles Wilson).
+ use ncurses*-config scripts if available for test/configure.
+ update test/aclocal.m4 and test/configure
> patches by Charles Wilson:
+ modify CF_WITH_LIBTOOL configure check to allow unreleased libtool
version numbers (e.g. which include alphabetic chars, as well as
digits, after the final '.').
+ improve use of -no-undefined option for libtool by setting an
intermediate variable LT_UNDEF in the configure script, and then
using that in the libtool link-commands.
+ fix an missing use of NCURSES_PUBLIC_VAR() in tinfo/MKcodes.awk
from 2009031 changes.
+ improve mk-1st.awk script by writing separate cases for the
LIBTOOL_LINK command, depending on which library (ncurses, ticlib,
termlib) is to be linked.
+ modify configure.in to allow broken-linker configurations, not just
enable-reentrant, to set public wrap prefix.
2009-03-29 08:06:57 +08:00
|
|
|
-sh -c 'if test -n "$x" ; then echo "#define SUFFIX_IGNORED \"$x\"">>$@; fi'
|
2009-03-15 09:02:54 +08:00
|
|
|
echo "#define PROG_CAPTOINFO \"$(define_captoinfo)\"" >>$@
|
|
|
|
echo "#define PROG_INFOTOCAP \"$(define_infotocap)\"" >>$@
|
|
|
|
echo "#define PROG_RESET \"$(define_reset)\"" >>$@
|
|
|
|
echo "#define PROG_INIT \"$(define_init)\"" >>$@
|
|
|
|
echo "#endif /* __TRANSFORM_H */" >>$@
|
2000-10-21 12:42:11 +08:00
|
|
|
|
|
|
|
install.progs: $(AUTO_SRC) $(PROGS) $(DESTDIR)$(bindir)
|
2006-12-18 12:32:42 +08:00
|
|
|
@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROG) tic$x $(DESTDIR)$(bindir)/$(actual_tic)
|
|
|
|
@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROG) toe$x $(DESTDIR)$(bindir)/$(actual_toe)
|
2002-10-13 11:35:53 +08:00
|
|
|
@MAKE_TERMINFO@ @echo "linking $(actual_infotocap) to $(actual_tic)"
|
|
|
|
@MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_infotocap)
|
|
|
|
@MAKE_TERMINFO@ (cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tic) $(actual_infotocap))
|
|
|
|
@MAKE_TERMINFO@ @echo "linking $(actual_captoinfo) to $(actual_tic)"
|
|
|
|
@MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_captoinfo)
|
|
|
|
@MAKE_TERMINFO@ (cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tic) $(actual_captoinfo))
|
2006-12-18 12:32:42 +08:00
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL_PROG) infocmp$x $(DESTDIR)$(bindir)/$(actual_infocmp)
|
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL_PROG) clear$x $(DESTDIR)$(bindir)/$(actual_clear)
|
2008-11-16 10:16:59 +08:00
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL_PROG) tabs$x $(DESTDIR)$(bindir)/$(actual_tabs)
|
2006-12-18 12:32:42 +08:00
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL_PROG) tput$x $(DESTDIR)$(bindir)/$(actual_tput)
|
|
|
|
$(LIBTOOL_INSTALL) $(INSTALL_PROG) tset$x $(DESTDIR)$(bindir)/$(actual_tset)
|
2000-10-21 12:42:11 +08:00
|
|
|
@echo "linking $(actual_reset) to $(actual_tset)"
|
|
|
|
-@rm -f $(DESTDIR)$(bindir)/$(actual_reset)
|
|
|
|
(cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tset) $(actual_reset))
|
1998-03-01 12:21:12 +08:00
|
|
|
|
|
|
|
uninstall.progs:
|
2004-02-09 10:15:26 +08:00
|
|
|
@MAKE_TERMINFO@ -@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_tic)
|
|
|
|
@MAKE_TERMINFO@ -@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_toe)
|
2002-10-13 11:35:53 +08:00
|
|
|
@MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_captoinfo)
|
|
|
|
@MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_infotocap)
|
2004-02-09 10:15:26 +08:00
|
|
|
-@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_infocmp)
|
|
|
|
-@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_clear)
|
2008-11-16 10:16:59 +08:00
|
|
|
-@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_tabs)
|
2004-02-09 10:15:26 +08:00
|
|
|
-@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_tput)
|
|
|
|
-@$(LIBTOOL_CLEAN) rm -f $(DESTDIR)$(bindir)/$(actual_tset)
|
2000-10-21 12:42:11 +08:00
|
|
|
-@rm -f $(DESTDIR)$(bindir)/$(actual_reset)
|
|
|
|
|
|
|
|
$(DESTDIR)$(bindir) :
|
2010-05-16 08:56:17 +08:00
|
|
|
mkdir -p $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Utilities normally built by make all start here
|
|
|
|
#
|
|
|
|
|
|
|
|
DEPS_TIC = \
|
2004-02-09 10:15:26 +08:00
|
|
|
$(MODEL)/tic$o \
|
2009-03-15 09:02:54 +08:00
|
|
|
$(MODEL)/dump_entry$o \
|
|
|
|
$(MODEL)/transform$o
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
tic$x: $(DEPS_TIC) $(DEPS_CURSES) transform.h
|
2012-03-18 08:14:18 +08:00
|
|
|
@ECHO_LD@ $(LINK) $(DEPS_TIC) $(LDFLAGS_TIC) -o $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
DEPS_TOE = \
|
2007-10-14 08:38:28 +08:00
|
|
|
$(MODEL)/toe$o
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
toe$x: $(DEPS_TOE) $(DEPS_CURSES)
|
2012-03-18 08:14:18 +08:00
|
|
|
@ECHO_LD@ $(LINK) $(DEPS_TOE) $(LDFLAGS_TIC) -o $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
DEPS_CLEAR = \
|
2004-02-09 10:15:26 +08:00
|
|
|
$(MODEL)/clear$o
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
clear$x: $(DEPS_CLEAR) $(DEPS_CURSES)
|
2012-03-18 08:14:18 +08:00
|
|
|
@ECHO_LD@ $(LINK) $(DEPS_CLEAR) $(LDFLAGS_TINFO) -o $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2008-11-16 10:16:59 +08:00
|
|
|
DEPS_TABS = \
|
|
|
|
$(MODEL)/tabs$o
|
|
|
|
|
|
|
|
tabs$x: $(DEPS_TABS) $(DEPS_TABS)
|
2012-03-18 08:14:18 +08:00
|
|
|
@ECHO_LD@ $(LINK) $(DEPS_TABS) $(LDFLAGS_TINFO) -o $@
|
2008-11-16 10:16:59 +08:00
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
DEPS_TPUT = \
|
2009-03-15 09:02:54 +08:00
|
|
|
$(MODEL)/tput$o \
|
|
|
|
$(MODEL)/transform$o
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
tput$x: $(DEPS_TPUT) $(DEPS_CURSES) transform.h
|
2012-03-18 08:14:18 +08:00
|
|
|
@ECHO_LD@ $(LINK) $(DEPS_TPUT) $(LDFLAGS_TINFO) -o $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
DEPS_INFOCMP = \
|
2004-02-09 10:15:26 +08:00
|
|
|
$(MODEL)/infocmp$o \
|
|
|
|
$(MODEL)/dump_entry$o
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
infocmp$x: $(DEPS_INFOCMP) $(DEPS_CURSES)
|
2012-03-18 08:14:18 +08:00
|
|
|
@ECHO_LD@ $(LINK) $(DEPS_INFOCMP) $(LDFLAGS_TIC) -o $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
DEPS_TSET = \
|
2009-03-15 09:02:54 +08:00
|
|
|
$(MODEL)/tset$o \
|
|
|
|
$(MODEL)/transform$o
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
tset$x: $(DEPS_TSET) $(DEPS_CURSES) transform.h
|
2012-03-18 08:14:18 +08:00
|
|
|
@ECHO_LD@ $(LINK) $(DEPS_TSET) $(LDFLAGS_TINFO) -o $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
termsort.c: $(srcdir)/MKtermsort.sh
|
2004-02-09 10:15:26 +08:00
|
|
|
sh $(srcdir)/MKtermsort.sh $(AWK) $(srcdir)/../include/@TERMINFO_CAPS@ >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Utility productions start here
|
|
|
|
#
|
|
|
|
|
|
|
|
tags:
|
2010-04-04 09:26:17 +08:00
|
|
|
$(CTAGS) *.[ch]
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
@MAKE_UPPER_TAGS@TAGS:
|
2010-04-04 09:26:17 +08:00
|
|
|
@MAKE_UPPER_TAGS@ $(ETAGS) *.[ch]
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
mostlyclean ::
|
2002-10-13 11:35:53 +08:00
|
|
|
-rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
|
1998-03-01 12:21:12 +08:00
|
|
|
|
|
|
|
clean :: mostlyclean
|
2004-02-09 10:15:26 +08:00
|
|
|
-sh -c "if test -n '$x' ; then $(MAKE) clean x=''; fi"
|
1998-03-01 12:21:12 +08:00
|
|
|
-rm -f $(AUTO_SRC)
|
1997-05-15 12:00:00 +08:00
|
|
|
-rm -f $(PROGS)
|
2000-10-21 12:42:11 +08:00
|
|
|
-rm -rf .libs
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
distclean :: clean
|
|
|
|
-rm -f Makefile
|
|
|
|
|
|
|
|
realclean :: distclean
|
|
|
|
|
|
|
|
# These rules are used to allow "make -n" to work on a clean directory-tree
|
|
|
|
../include/hashsize.h \
|
|
|
|
../include/parametrized.h \
|
|
|
|
../include/term.h :
|
1998-03-01 12:21:12 +08:00
|
|
|
cd ../include; $(MAKE) $(CF_MFLAGS)
|
1997-05-15 12:00:00 +08:00
|
|
|
$(DEPS_CURSES) :
|
1998-03-01 12:21:12 +08:00
|
|
|
cd ../ncurses; $(MAKE) $(CF_MFLAGS)
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
lint:
|
2002-10-13 11:35:53 +08:00
|
|
|
@MAKE_TERMINFO@ $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/tic.c $(srcdir)/dump_entry.c $(LINT_LIBS)
|
|
|
|
@MAKE_TERMINFO@ $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/toe.c $(srcdir)/dump_entry.c $(LINT_LIBS)
|
1997-05-15 12:00:00 +08:00
|
|
|
$(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/clear.c $(LINT_LIBS)
|
|
|
|
$(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/infocmp.c $(srcdir)/dump_entry.c $(LINT_LIBS)
|
2008-11-16 10:16:59 +08:00
|
|
|
$(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/tabs.c $(LINT_LIBS)
|
1997-05-15 12:00:00 +08:00
|
|
|
$(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/tput.c $(LINT_LIBS)
|
|
|
|
$(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/tset.c $(srcdir)/dump_entry.c $(LINT_LIBS)
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# The remainder of this file is automatically generated during configuration
|
|
|
|
###############################################################################
|