missing ncurses sources
[tomato.git] / release / src / router / libncurses / include / Makefile.in
blobe2a2f8a22866ab49f98974204207e2125b286bd5
1 # $Id: Makefile.in,v 1.40 2010/11/27 21:45:27 tom Exp $
2 ##############################################################################
3 # Copyright (c) 1998,2009,2010 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 = /bin/sh
43 VPATH = @srcdir@
44 THIS = Makefile
46 DESTDIR = @DESTDIR@
47 srcdir = @srcdir@
48 prefix = @prefix@
49 exec_prefix = @exec_prefix@
50 includedir = @includedir@
52 INSTALL = @INSTALL@
53 INSTALL_DATA = @INSTALL_DATA@
55 AWK = @AWK@
56 LN_S = @LN_S@
58 CTAGS = @CTAGS@
59 ETAGS = @ETAGS@
61 VERSION = @cf_cv_rel_version@
63 # The "Caps" file specifies the terminfo database format, as well as the list
64 # of function keys.
65 TERMINFO_CAPS = $(srcdir)/@TERMINFO_CAPS@
67 # These files are generated by the configure script
68 CONFIG_SRC = \
69 MKterm.h.awk \
70 curses.head \
71 ncurses_dll.h \
72 termcap.h \
73 unctrl.h
75 # These files are generated by this makefile
76 AUTO_SRC = \
77 curses.h \
78 hashsize.h \
79 ncurses_def.h \
80 parametrized.h \
81 config.h \
82 term.h
84 ################################################################################
85 all \
86 libs \
87 depend \
88 sources \
89 install :: $(AUTO_SRC)
91 curses.h : $(TERMINFO_CAPS) \
92 curses.head \
93 $(srcdir)/curses.tail \
94 $(srcdir)/MKkey_defs.sh
95 cat curses.head >$@
96 AWK=$(AWK) sh $(srcdir)/MKkey_defs.sh $(TERMINFO_CAPS) >>$@
97 sh -c 'if test "@NCURSES_CH_T@" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi'
98 cat $(srcdir)/curses.tail >>$@
100 term.h: $(TERMINFO_CAPS) MKterm.h.awk
101 $(AWK) -f MKterm.h.awk $(TERMINFO_CAPS) > $@
102 sh $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
104 hashsize.h: $(TERMINFO_CAPS) $(srcdir)/MKhashsize.sh
105 sh $(srcdir)/MKhashsize.sh $(TERMINFO_CAPS) >$@
107 ncurses_def.h: $(srcdir)/ncurses_defs $(srcdir)/MKncurses_def.sh
108 AWK=$(AWK) sh $(srcdir)/MKncurses_def.sh $(srcdir)/ncurses_defs >$@
110 parametrized.h: $(TERMINFO_CAPS) $(srcdir)/MKparametrized.sh
111 AWK=$(AWK) sh $(srcdir)/MKparametrized.sh $(TERMINFO_CAPS) >$@
113 # This is required by pthread.h on MinGW
114 config.h:
115 touch $@
117 tags:
118 $(CTAGS) *.[ch]
120 @MAKE_UPPER_TAGS@TAGS:
121 @MAKE_UPPER_TAGS@ $(ETAGS) *.[ch]
123 mostlyclean ::
124 -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
126 clean :: mostlyclean
127 -rm -f $(AUTO_SRC)
129 distclean :: clean
130 -rm -f Makefile $(CONFIG_SRC) config.h
132 realclean :: distclean
134 ###############################################################################
135 # The remainder of this file is automatically generated during configuration
136 ###############################################################################