]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - tack/Makefile.in
ncurses 5.6 - patch 20070128
[ncurses.git] / tack / Makefile.in
index 48f4619a8bf2ca8a46582ed28a5f9cfa9eba8784..5c44c2389e27083ac8572bf617ba6f7f13a8e2a0 100644 (file)
@@ -1,4 +1,31 @@
-# $Id: Makefile.in,v 1.9 1999/09/18 23:33:48 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
 # Makefile for tack
 #
 # The variable 'srcdir' refers to the source-distribution, and can be set with
@@ -15,27 +42,37 @@ THIS                = Makefile
 
 CF_MFLAGS      = @cf_cv_makeflags@
 @SET_MAKE@
 
 CF_MFLAGS      = @cf_cv_makeflags@
 @SET_MAKE@
-x              = @PROG_EXT@
+
+x              = @EXEEXT@
+o              = .@OBJEXT@
 
 MODEL          = ../@DFT_OBJ_SUBDIR@
 
 MODEL          = ../@DFT_OBJ_SUBDIR@
-INSTALL_PREFIX = @INSTALL_PREFIX@
+DESTDIR                = @DESTDIR@
 srcdir         = @srcdir@
 prefix         = @prefix@
 exec_prefix    = @exec_prefix@
 bindir         = @bindir@
 libdir         = @libdir@
 srcdir         = @srcdir@
 prefix         = @prefix@
 exec_prefix    = @exec_prefix@
 bindir         = @bindir@
 libdir         = @libdir@
+mandir         = @mandir@
 includedir     = @includedir@
 datadir                = @datadir@
 
 includedir     = @includedir@
 datadir                = @datadir@
 
-ticdir         = $(datadir)/terminfo
+LIBTOOL                = @LIBTOOL@
+LIBTOOL_CLEAN  = @LIB_CLEAN@
+LIBTOOL_COMPILE        = @LIB_COMPILE@
+LIBTOOL_LINK   = @LIB_LINK@
+LIBTOOL_INSTALL        = @LIB_INSTALL@
+LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
 
 INSTALL                = @INSTALL@
 
 INSTALL                = @INSTALL@
-INSTALL_PROGRAM        = @INSTALL_PROGRAM@
+INSTALL_PROG   = @INSTALL_PROGRAM@
+INSTALL_DATA   = @INSTALL_DATA@
 
 AWK            = @AWK@
 LN_S           = @LN_S@
 
 CC             = @CC@
 
 AWK            = @AWK@
 LN_S           = @LN_S@
 
 CC             = @CC@
+CPP            = @CPP@
 CFLAGS         = @CFLAGS@
 
 INCDIR         = $(srcdir)/../include
 CFLAGS         = @CFLAGS@
 
 INCDIR         = $(srcdir)/../include
@@ -43,33 +80,39 @@ CPPFLAGS    = -DHAVE_CONFIG_H -I../tack -I$(srcdir) @CPPFLAGS@
 
 CCFLAGS                = $(CPPFLAGS) $(CFLAGS)
 
 
 CCFLAGS                = $(CPPFLAGS) $(CFLAGS)
 
+CFLAGS_LIBTOOL = $(CCFLAGS)
 CFLAGS_NORMAL  = $(CCFLAGS)
 CFLAGS_DEBUG   = $(CCFLAGS) @CC_G_OPT@ -DTRACE
 CFLAGS_PROFILE = $(CCFLAGS) -pg
 CFLAGS_NORMAL  = $(CCFLAGS)
 CFLAGS_DEBUG   = $(CCFLAGS) @CC_G_OPT@ -DTRACE
 CFLAGS_PROFILE = $(CCFLAGS) -pg
-CFLAGS_SHARED  = $(CCFLAGS) @CC_SHARED_OPTS@
+CFLAGS_SHARED  = $(CCFLAGS) @CC_SHARED_OPTS@
 
 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
 
 
 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@
 LD             = @LD@
-LINK           = $(CC)
+LINK           = @LINK_PROGS@ $(LIBTOOL_LINK) $(CC)
 LDFLAGS                = @EXTRA_LDFLAGS@ \
 LDFLAGS                = @EXTRA_LDFLAGS@ \
-               @PROG_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@ @EXTRA_LIBS@
+               @TICS_ARGS@ @TINFO_ARGS@ @LDFLAGS@ @LD_MODEL@ @LIBS@
 
 
-LDFLAGS_NORMAL = $(LDFLAGS)
-LDFLAGS_DEBUG  = $(LDFLAGS) @CC_G_OPT@
-LDFLAGS_PROFILE        = $(LDFLAGS) -pg
-LDFLAGS_SHARED = $(LDFLAGS) @CC_SHARED_OPTS@ # @LD_SHARED_OPTS@
+LDFLAGS_LIBTOOL        = $(LDFLAGS) $(CFLAGS_LIBTOOL)
+LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL)
+LDFLAGS_DEBUG  = $(LDFLAGS) $(CFLAGS_DEBUG)
+LDFLAGS_PROFILE        = $(LDFLAGS) $(CFLAGS_PROFILE)
+LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
 
 LDFLAGS_DEFAULT        = $(LDFLAGS_@DFT_UPR_MODEL@)
 
 LINT           = @LINT@
 LINT_OPTS      = @LINT_OPTS@
 
 LDFLAGS_DEFAULT        = $(LDFLAGS_@DFT_UPR_MODEL@)
 
 LINT           = @LINT@
 LINT_OPTS      = @LINT_OPTS@
-LINT_LIBS      = -lncurses @LIBS@
+LINT_LIBS      = -lncurses@LIB_SUFFIX@ @LIBS@
 
 PROGS = tack$x
 
 
 PROGS = tack$x
 
-# Default library, for linking applications
-DEPS_CURSES = ../lib/libncurses@DFT_DEP_SUFFIX@
+@NCURSES_TREE@# Default library, for linking applications
+@NCURSES_TREE@DEPS_CURSES = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@
 
 ################################################################################
 all:   $(PROGS)
 
 ################################################################################
 all:   $(PROGS)
@@ -80,41 +123,49 @@ install: install.tack
 uninstall: uninstall.tack
 
 # this line simplifies the configure-script
 uninstall: uninstall.tack
 
 # this line simplifies the configure-script
-install.libs:
+libs \
+install.libs \
 uninstall.libs:
 
 uninstall.libs:
 
-install.tack: $(PROGS) $(INSTALL_PREFIX)$(bindir)
-       $(INSTALL_PROGRAM) tack$x    $(INSTALL_PREFIX)$(bindir)/tack$x
+EDITARGS = $(DESTDIR)$(mandir) $(srcdir) $(srcdir)/*.[0-9]*
+
+install.tack: $(PROGS) \
+       $(DESTDIR)$(bindir) \
+       $(DESTDIR)$(mandir)
+       $(LIBTOOL_INSTALL) $(INSTALL_PROG) tack$x $(DESTDIR)$(bindir)/tack$x
+       sh ../edit_man.sh normal installing $(EDITARGS)
 
 uninstall.tack:
 
 uninstall.tack:
-       -@rm -f $(INSTALL_PREFIX)$(bindir)/tack$x
+       -@$(LIBTOOL_UNINSTALL) rm -f $(DESTDIR)$(bindir)/tack$x
+       -sh ../edit_man.sh normal removing $(EDITARGS)
 
 
-$(INSTALL_PREFIX)$(bindir) :
-       $(srcdir)/../mkinstalldirs $@
+$(DESTDIR)$(bindir) \
+$(DESTDIR)$(mandir) :
+       sh $(srcdir)/../mkinstalldirs $@
 
 #
 # Rules for building tack
 #
 
 DEPS_TACK = \
 
 #
 # Rules for building tack
 #
 
 DEPS_TACK = \
-       $(MODEL)/ansi.o \
-       $(MODEL)/charset.o \
-       $(MODEL)/color.o \
-       $(MODEL)/control.o \
-       $(MODEL)/crum.o \
-       $(MODEL)/edit.o \
-       $(MODEL)/fun.o \
-       $(MODEL)/init.o \
-       $(MODEL)/menu.o \
-       $(MODEL)/modes.o \
-       $(MODEL)/output.o \
-       $(MODEL)/pad.o \
-       $(MODEL)/scan.o \
-       $(MODEL)/sync.o \
-       $(MODEL)/sysdep.o \
-       $(MODEL)/tack.o
-
-tack$x: $(DEPS_TACK) $(DEPS_CURSES)
+       $(MODEL)/ansi$o \
+       $(MODEL)/charset$o \
+       $(MODEL)/color$o \
+       $(MODEL)/control$o \
+       $(MODEL)/crum$o \
+       $(MODEL)/edit$o \
+       $(MODEL)/fun$o \
+       $(MODEL)/init$o \
+       $(MODEL)/menu$o \
+       $(MODEL)/modes$o \
+       $(MODEL)/output$o \
+       $(MODEL)/pad$o \
+       $(MODEL)/scan$o \
+       $(MODEL)/sync$o \
+       $(MODEL)/sysdep$o \
+       $(MODEL)/tack$o
+
+tack$x: $(DEPS_TACK) @NCURSES_TREE@$(DEPS_CURSES)
        @ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@
 
 #
        @ECHO_LINK@ $(LINK) $(DEPS_TACK) $(LDFLAGS_DEFAULT) -o $@
 
 #
@@ -124,34 +175,39 @@ tack$x: $(DEPS_TACK) $(DEPS_CURSES)
 tags:
        ctags *.[ch]
 
 tags:
        ctags *.[ch]
 
-TAGS:
-       etags *.[ch]
+@MAKE_UPPER_TAGS@TAGS:
+@MAKE_UPPER_TAGS@      etags *.[ch]
 
 
-clean ::
-       -rm -f tags TAGS do.tic *~
+mostlyclean ::
+       -rm -f core tags TAGS *~ *.bak *.i *.atac trace
+
+clean :: mostlyclean
+       -sh -c "if test -n '$x' ; then $(MAKE) clean x=''; fi"
+       -rm -f $(DEPS_TACK)
        -rm -f $(PROGS)
        -rm -f $(PROGS)
+       -rm -rf .libs
 
 distclean :: clean
 
 distclean :: clean
+       -rm -f ncurses_cfg.h
+       -rm -f config.* *.log *.out
        -rm -f Makefile
 
        -rm -f Makefile
 
-mostlyclean :: clean
-
 realclean :: distclean
 
 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
 realclean :: distclean
 
 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) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/clear.c                          $(LINT_LIBS)
+       $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/*.c $(LINT_LIBS)
 
 ###############################################################################
 # The remainder of this file is automatically generated during configuration
 
 ###############################################################################
 # The remainder of this file is automatically generated during configuration