]> ncurses.scripts.mit.edu Git - ncurses.git/blob - include/Makefile.in
ncurses 5.7 - patch 20100626
[ncurses.git] / include / Makefile.in
1 # $Id: Makefile.in,v 1.38 2010/04/03 15:27:33 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 ##############################################################################
29 #
30 # Author: Thomas E. Dickey 1996-2001
31 #
32 # Makefile for ncurses source code.
33 #
34 # This makes/installs ncurses include-files
35 #
36 # The variable 'srcdir' refers to the source-distribution, and can be set with
37 # the configure script by "--srcdir=DIR".
38
39 # turn off _all_ suffix rules; we'll generate our own
40 .SUFFIXES:
41
42 SHELL           = /bin/sh
43 THIS            = Makefile
44
45 DESTDIR         = @DESTDIR@
46 srcdir          = @srcdir@
47 prefix          = @prefix@
48 exec_prefix     = @exec_prefix@
49 includedir      = @includedir@
50
51 INSTALL         = @INSTALL@
52 INSTALL_DATA    = @INSTALL_DATA@
53
54 AWK             = @AWK@
55 LN_S            = @LN_S@
56
57 CTAGS           = @CTAGS@
58 ETAGS           = @ETAGS@
59
60 VERSION         = @cf_cv_rel_version@
61
62 # The "Caps" file specifies the terminfo database format, as well as the list
63 # of function keys.
64 TERMINFO_CAPS   = $(srcdir)/@TERMINFO_CAPS@
65
66 # These files are generated by the configure script
67 CONFIG_SRC = \
68         MKterm.h.awk \
69         curses.head \
70         ncurses_dll.h \
71         termcap.h \
72         unctrl.h
73
74 # These files are generated by this makefile
75 AUTO_SRC = \
76         curses.h \
77         hashsize.h \
78         ncurses_def.h \
79         parametrized.h \
80         term.h
81
82 ################################################################################
83 all \
84 libs \
85 depend \
86 sources \
87 install ::      $(AUTO_SRC)
88
89 curses.h : $(TERMINFO_CAPS) \
90                 curses.head \
91                 $(srcdir)/curses.tail \
92                 $(srcdir)/MKkey_defs.sh
93         cat curses.head >$@
94         AWK=$(AWK) sh $(srcdir)/MKkey_defs.sh $(TERMINFO_CAPS) >>$@
95         sh -c 'if test "@NCURSES_CH_T@" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi'
96         cat $(srcdir)/curses.tail >>$@
97
98 term.h: $(TERMINFO_CAPS) MKterm.h.awk
99         $(AWK) -f MKterm.h.awk $(TERMINFO_CAPS) > $@
100         sh $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
101
102 hashsize.h: $(TERMINFO_CAPS) $(srcdir)/MKhashsize.sh
103         sh $(srcdir)/MKhashsize.sh $(TERMINFO_CAPS) >$@
104
105 ncurses_def.h: $(srcdir)/ncurses_defs $(srcdir)/MKncurses_def.sh
106         AWK=$(AWK) sh $(srcdir)/MKncurses_def.sh $(srcdir)/ncurses_defs >$@
107
108 parametrized.h: $(TERMINFO_CAPS) $(srcdir)/MKparametrized.sh
109         AWK=$(AWK) sh $(srcdir)/MKparametrized.sh $(TERMINFO_CAPS) >$@
110
111 tags:
112         $(CTAGS) *.[ch]
113
114 @MAKE_UPPER_TAGS@TAGS:
115 @MAKE_UPPER_TAGS@       $(ETAGS) *.[ch]
116
117 mostlyclean ::
118         -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
119
120 clean :: mostlyclean
121         -rm -f $(AUTO_SRC)
122
123 distclean :: clean
124         -rm -f Makefile $(CONFIG_SRC)
125
126 realclean :: distclean
127
128 ###############################################################################
129 # The remainder of this file is automatically generated during configuration
130 ###############################################################################