libncurses: updated to 6.0
[tomato.git] / release / src / router / libncurses / include / Makefile.in
blobcfa9876e484934cf9c473111572023c703e2058e
1 # $Id: Makefile.in,v 1.43 2015/08/05 09:25:55 tom Exp $
2 ##############################################################################
3 # Copyright (c) 1998-2013,2015 Free Software Foundation, Inc. #
4 # #
5 # Permission is hereby granted, free of charge, to any person obtaining a #
6 # copy of this software and associated documentation files (the "Software"), #
7 # to deal in the Software without restriction, including without limitation #
8 # the rights to use, copy, modify, merge, publish, distribute, distribute #
9 # with modifications, sublicense, and/or sell copies of the Software, and to #
10 # permit persons to whom the Software is furnished to do so, subject to the #
11 # following conditions: #
12 # #
13 # The above copyright notice and this permission notice shall be included in #
14 # all copies or substantial portions of the Software. #
15 # #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
19 # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
22 # DEALINGS IN THE SOFTWARE. #
23 # #
24 # Except as contained in this notice, the name(s) of the above copyright #
25 # holders shall not be used in advertising or otherwise to promote the sale, #
26 # use or other dealings in this Software without prior written #
27 # authorization. #
28 ##############################################################################
30 # Author: Thomas E. Dickey 1996-2001
32 # Makefile for ncurses source code.
34 # This makes/installs ncurses include-files
36 # The variable 'srcdir' refers to the source-distribution, and can be set with
37 # the configure script by "--srcdir=DIR".
39 # turn off _all_ suffix rules; we'll generate our own
40 .SUFFIXES:
42 SHELL = @SHELL@
43 VPATH = @srcdir@
44 THIS = Makefile
46 DESTDIR = @DESTDIR@
47 srcdir = @srcdir@
48 prefix = @prefix@
49 exec_prefix = @exec_prefix@
50 includedir = @includedir@
51 includesubdir = @includesubdir@
53 INCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir)
55 INSTALL = @INSTALL@
56 INSTALL_DATA = @INSTALL_DATA@
58 AWK = @AWK@
59 LN_S = @LN_S@
61 CTAGS = @CTAGS@
62 ETAGS = @ETAGS@
64 VERSION = @cf_cv_rel_version@
66 # The "Caps" file specifies the terminfo database format, as well as the list
67 # of function keys.
68 TERMINFO_CAPS = $(srcdir)/@TERMINFO_CAPS@
70 # These files are generated by the configure script
71 CONFIG_SRC = \
72 MKterm.h.awk \
73 curses.head \
74 ncurses_dll.h \
75 termcap.h \
76 unctrl.h
78 # These files are generated by this makefile
79 AUTO_SRC = \
80 curses.h \
81 hashsize.h \
82 ncurses_def.h \
83 parametrized.h \
84 config.h \
85 term.h
87 ################################################################################
88 all \
89 libs \
90 depend \
91 sources \
92 install :: $(AUTO_SRC)
94 curses.h : $(TERMINFO_CAPS) \
95 curses.head \
96 $(srcdir)/curses.tail \
97 $(srcdir)/MKkey_defs.sh
98 cat curses.head >$@
99 AWK=$(AWK) $(SHELL) $(srcdir)/MKkey_defs.sh $(TERMINFO_CAPS) >>$@
100 $(SHELL) -c 'if test "@NCURSES_CH_T@" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi'
101 cat $(srcdir)/curses.tail >>$@
103 term.h: $(TERMINFO_CAPS) MKterm.h.awk
104 $(AWK) -f MKterm.h.awk $(TERMINFO_CAPS) > $@
105 $(SHELL) $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
107 hashsize.h: $(TERMINFO_CAPS) $(srcdir)/MKhashsize.sh
108 $(SHELL) $(srcdir)/MKhashsize.sh $(TERMINFO_CAPS) >$@
110 ncurses_def.h: $(srcdir)/ncurses_defs $(srcdir)/MKncurses_def.sh
111 AWK=$(AWK) $(SHELL) $(srcdir)/MKncurses_def.sh $(srcdir)/ncurses_defs >$@
113 parametrized.h: $(TERMINFO_CAPS) $(srcdir)/MKparametrized.sh
114 AWK=$(AWK) $(SHELL) $(srcdir)/MKparametrized.sh $(TERMINFO_CAPS) >$@
116 # This is required by pthread.h on MinGW
117 config.h:
118 touch $@
120 tags:
121 $(CTAGS) *.[ch]
123 @MAKE_UPPER_TAGS@TAGS:
124 @MAKE_UPPER_TAGS@ $(ETAGS) *.[ch]
126 mostlyclean ::
127 -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
129 clean :: mostlyclean
130 -rm -f $(AUTO_SRC)
131 -rm -rf *.dSYM
133 distclean :: clean
134 -rm -f Makefile $(CONFIG_SRC) config.h
136 realclean :: distclean
138 ###############################################################################
139 # The remainder of this file is automatically generated during configuration
140 ###############################################################################