]> ncurses.scripts.mit.edu Git - ncurses.git/blob - include/Makefile.in
ncurses 6.1 - patch 20190317
[ncurses.git] / include / Makefile.in
1 # $Id: Makefile.in,v 1.45 2019/03/03 01:41:21 tom Exp $
2 ##############################################################################
3 # Copyright (c) 1998-2015,2019 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           = @SHELL@
43 VPATH           = @srcdir@
44 THIS            = Makefile
45
46 DESTDIR         = @DESTDIR@
47 srcdir          = @srcdir@
48 prefix          = @prefix@
49 exec_prefix     = @exec_prefix@
50 includedir      = @includedir@
51 includesubdir   = @includesubdir@
52
53 INCLUDEDIR      = $(DESTDIR)$(includedir)$(includesubdir)
54
55 INSTALL         = @INSTALL@
56 INSTALL_DATA    = @INSTALL_DATA@
57
58 AWK             = @AWK@
59 LN_S            = @LN_S@
60
61 CTAGS           = @CTAGS@
62 ETAGS           = @ETAGS@
63
64 VERSION         = @cf_cv_rel_version@
65
66 # The "Caps" file specifies the terminfo database format, as well as the list
67 # of function keys.
68 TERMINFO_CAPS   = $(srcdir)/@TERMINFO_CAPS@
69 CAPLIST =       $(TERMINFO_CAPS) \
70                 $(srcdir)/Caps-ncurses
71
72 # These files are generated by the configure script
73 CONFIG_SRC = \
74         MKterm.h.awk \
75         curses.head \
76         ncurses_dll.h \
77         termcap.h \
78         unctrl.h
79
80 # These files are generated by this makefile
81 AUTO_SRC = \
82         curses.h \
83         hashsize.h \
84         ncurses_def.h \
85         parametrized.h \
86         config.h \
87         term.h
88
89 ################################################################################
90 all \
91 libs \
92 depend \
93 sources \
94 install ::      $(AUTO_SRC)
95
96 curses.h :      $(CAPLIST) \
97                 curses.head \
98                 $(srcdir)/curses.tail \
99                 $(srcdir)/MKkey_defs.sh
100         cat curses.head >$@
101         AWK=$(AWK) $(SHELL) $(srcdir)/MKkey_defs.sh $(CAPLIST) >>$@
102         $(SHELL) -c 'if test "@NCURSES_CH_T@" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi'
103         cat $(srcdir)/curses.tail >>$@
104
105 term.h:         $(CAPLIST) \
106                 MKterm.h.awk
107         $(AWK) -f MKterm.h.awk $(CAPLIST) > $@
108         $(SHELL) $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
109
110 hashsize.h:     $(CAPLIST) \
111                 $(srcdir)/MKhashsize.sh
112         $(SHELL) $(srcdir)/MKhashsize.sh $(CAPLIST) >$@
113
114 ncurses_def.h: $(srcdir)/ncurses_defs $(srcdir)/MKncurses_def.sh
115         AWK=$(AWK) $(SHELL) $(srcdir)/MKncurses_def.sh $(srcdir)/ncurses_defs >$@
116
117 parametrized.h: $(CAPLIST) \
118                 $(srcdir)/MKparametrized.sh
119         AWK=$(AWK) $(SHELL) $(srcdir)/MKparametrized.sh $(CAPLIST) >$@
120
121 # This is required by pthread.h on MinGW
122 config.h:
123         touch $@
124
125 tags:
126         $(CTAGS) *.[ch]
127
128 @MAKE_UPPER_TAGS@TAGS:
129 @MAKE_UPPER_TAGS@       $(ETAGS) *.[ch]
130
131 mostlyclean ::
132         -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
133
134 clean :: mostlyclean
135         -rm -f $(AUTO_SRC)
136         -rm -rf *.dSYM
137
138 distclean :: clean
139         -rm -f Makefile $(CONFIG_SRC) config.h
140
141 realclean :: distclean
142
143 ###############################################################################
144 # The remainder of this file is automatically generated during configuration
145 ###############################################################################