X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=tack%2FMakefile.in;h=5c44c2389e27083ac8572bf617ba6f7f13a8e2a0;hp=dd7b8b2ed10b5ce854fa8db4adf3b73cf4f007a5;hb=ca5fdd32fd43d84fe3d720cd5c07fba28fc506a4;hpb=a8987e73ec254703634802b4f7ee30d3a485524d;ds=sidebyside diff --git a/tack/Makefile.in b/tack/Makefile.in index dd7b8b2e..5c44c238 100644 --- a/tack/Makefile.in +++ b/tack/Makefile.in @@ -1,4 +1,31 @@ -# $Id: Makefile.in,v 1.31 2003/11/01 22:46:24 tom Exp $ +# $Id: Makefile.in,v 1.41 2007/01/14 00:07:45 tom Exp $ +############################################################################## +# Copyright (c) 1998-2006,2007 Free Software Foundation, Inc. # +# # +# 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. # +############################################################################## # Makefile for tack # # The variable 'srcdir' refers to the source-distribution, and can be set with @@ -26,7 +53,7 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ -mandir = @mandir@/man1 +mandir = @mandir@ includedir = @includedir@ datadir = @datadir@ @@ -38,7 +65,7 @@ LIBTOOL_INSTALL = @LIB_INSTALL@ LIBTOOL_UNINSTALL = @LIB_UNINSTALL@ INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_PROG = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ AWK = @AWK@ @@ -61,10 +88,14 @@ CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@ CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@) +REL_VERSION = @cf_cv_rel_version@ +ABI_VERSION = @cf_cv_abi_version@ +LOCAL_LIBDIR = @top_builddir@/lib + LD = @LD@ LINK = @LINK_PROGS@ $(LIBTOOL_LINK) $(CC) LDFLAGS = @EXTRA_LDFLAGS@ \ - @PROG_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ @EXTRA_LIBS@ + @TICS_ARGS@ @TINFO_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL) LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL) @@ -80,8 +111,8 @@ LINT_LIBS = -lncurses@LIB_SUFFIX@ @LIBS@ PROGS = tack$x -# Default library, for linking applications -DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@ +@NCURSES_TREE@# Default library, for linking applications +@NCURSES_TREE@DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@ ################################################################################ all: $(PROGS) @@ -96,15 +127,17 @@ libs \ install.libs \ uninstall.libs: +EDITARGS = $(DESTDIR)$(mandir) $(srcdir) $(srcdir)/*.[0-9]* + install.tack: $(PROGS) \ $(DESTDIR)$(bindir) \ $(DESTDIR)$(mandir) - $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) tack$x $(DESTDIR)$(bindir)/tack$x - $(INSTALL_DATA) $(srcdir)/tack.1 $(DESTDIR)$(mandir)/tack.1 + $(LIBTOOL_INSTALL) $(INSTALL_PROG) tack$x $(DESTDIR)$(bindir)/tack$x + sh ../edit_man.sh normal installing $(EDITARGS) uninstall.tack: -@$(LIBTOOL_UNINSTALL) rm -f $(DESTDIR)$(bindir)/tack$x - -@rm -f $(DESTDIR)$(mandir)/tack.1 + -sh ../edit_man.sh normal removing $(EDITARGS) $(DESTDIR)$(bindir) \ $(DESTDIR)$(mandir) : @@ -132,7 +165,7 @@ DEPS_TACK = \ $(MODEL)/sysdep$o \ $(MODEL)/tack$o -tack$x: $(DEPS_TACK) $(DEPS_CURSES) +tack$x: $(DEPS_TACK) @NCURSES_TREE@$(DEPS_CURSES) @ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@ # @@ -150,10 +183,13 @@ mostlyclean :: clean :: mostlyclean -sh -c "if test -n '$x' ; then $(MAKE) clean x=''; fi" + -rm -f $(DEPS_TACK) -rm -f $(PROGS) -rm -rf .libs distclean :: clean + -rm -f ncurses_cfg.h + -rm -f config.* *.log *.out -rm -f Makefile realclean :: distclean @@ -162,13 +198,13 @@ tack.tar: Makefile.in modules *.[ch] tack.1 HISTORY COPYING tar -cvf tack.tar Makefile.in modules *.[ch] tack.1 HISTORY COPYING # These rules are used to allow "make -n" to work on a clean directory-tree -../include/hashsize.h \ -../include/parametrized.h \ -../include/term.h : - cd ../include; $(MAKE) $(CF_MFLAGS) +@NCURSES_TREE@../include/hashsize.h \ +@NCURSES_TREE@../include/parametrized.h \ +@NCURSES_TREE@../include/term.h : +@NCURSES_TREE@ cd ../include; $(MAKE) $(CF_MFLAGS) -$(DEPS_CURSES) : - cd ../ncurses; $(MAKE) $(CF_MFLAGS) +@NCURSES_TREE@$(DEPS_CURSES) : +@NCURSES_TREE@ cd ../ncurses; $(MAKE) $(CF_MFLAGS) lint: $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/*.c $(LINT_LIBS)