blob: e8470fcbf069f759030fd1ada3f2e21d56cb35f6 [file] [log] [blame]
Steve Kondik067ae322015-11-15 18:20:06 -08001# $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##############################################################################
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
42SHELL = /bin/sh
43
44THIS = Makefile
45
46DESTDIR =
47srcdir = .
48prefix = /system
49exec_prefix = ${prefix}
50includedir = ${prefix}/include
51includesubdir = /ncurses
52
53INCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir)
54
55INSTALL = /usr/bin/install -c
56INSTALL_DATA = ${INSTALL} -m 644
57
58AWK = mawk
59LN_S = ln -s -f
60
61CTAGS =
62ETAGS =
63
64VERSION = 6.0
65
66# The "Caps" file specifies the terminfo database format, as well as the list
67# of function keys.
68TERMINFO_CAPS = $(srcdir)/Caps
69
70# These files are generated by the configure script
71CONFIG_SRC = \
72 MKterm.h.awk \
73 curses.head \
74 ncurses_dll.h \
75 termcap.h \
76 unctrl.h
77
78# These files are generated by this makefile
79AUTO_SRC = \
80 curses.h \
81 hashsize.h \
82 ncurses_def.h \
83 parametrized.h \
84 config.h \
85 term.h
86
87################################################################################
88all \
89libs \
90depend \
91sources \
92install :: $(AUTO_SRC)
93
94curses.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 "chtype" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi'
101 cat $(srcdir)/curses.tail >>$@
102
103term.h: $(TERMINFO_CAPS) MKterm.h.awk
104 $(AWK) -f MKterm.h.awk $(TERMINFO_CAPS) > $@
105 $(SHELL) $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
106
107hashsize.h: $(TERMINFO_CAPS) $(srcdir)/MKhashsize.sh
108 $(SHELL) $(srcdir)/MKhashsize.sh $(TERMINFO_CAPS) >$@
109
110ncurses_def.h: $(srcdir)/ncurses_defs $(srcdir)/MKncurses_def.sh
111 AWK=$(AWK) $(SHELL) $(srcdir)/MKncurses_def.sh $(srcdir)/ncurses_defs >$@
112
113parametrized.h: $(TERMINFO_CAPS) $(srcdir)/MKparametrized.sh
114 AWK=$(AWK) $(SHELL) $(srcdir)/MKparametrized.sh $(TERMINFO_CAPS) >$@
115
116# This is required by pthread.h on MinGW
117config.h:
118 touch $@
119
120tags:
121 $(CTAGS) *.[ch]
122
123#TAGS:
124# $(ETAGS) *.[ch]
125
126mostlyclean ::
127 -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
128
129clean :: mostlyclean
130 -rm -f $(AUTO_SRC)
131 -rm -rf *.dSYM
132
133distclean :: clean
134 -rm -f Makefile $(CONFIG_SRC) config.h
135
136realclean :: distclean
137
138###############################################################################
139# The remainder of this file is automatically generated during configuration
140###############################################################################
141
142# generated by mk-hdr.awk
143# subset: ticlib+termlib+ext_tinfo+base+ext_funcs
144# compat: yes
145
146${INCLUDEDIR} :
147 mkdir -p $@
148
149install \
150install.libs \
151install.includes :: ${AUTO_SRC} ${INCLUDEDIR} \
152 curses.h \
153 unctrl.h \
154 ncurses_dll.h \
155 term.h \
156 termcap.h \
157 $(srcdir)/tic.h \
158 $(srcdir)/term_entry.h \
159 $(srcdir)/nc_tparm.h
160 @ (cd ${INCLUDEDIR} && rm -f curses.h) ; ../headers.sh ${INSTALL_DATA} ${INCLUDEDIR} ${srcdir} curses.h
161 @ (cd ${INCLUDEDIR} && rm -f ncurses.h && ${LN_S} curses.h ncurses.h)
162 @ (cd ${INCLUDEDIR} && rm -f unctrl.h) ; ../headers.sh ${INSTALL_DATA} ${INCLUDEDIR} ${srcdir} unctrl.h
163 @ (cd ${INCLUDEDIR} && rm -f ncurses_dll.h) ; ../headers.sh ${INSTALL_DATA} ${INCLUDEDIR} ${srcdir} ncurses_dll.h
164 @ (cd ${INCLUDEDIR} && rm -f term.h) ; ../headers.sh ${INSTALL_DATA} ${INCLUDEDIR} ${srcdir} term.h
165 @ (cd ${INCLUDEDIR} && rm -f termcap.h) ; ../headers.sh ${INSTALL_DATA} ${INCLUDEDIR} ${srcdir} termcap.h
166 @ (cd ${INCLUDEDIR} && rm -f tic.h) ; ../headers.sh ${INSTALL_DATA} ${INCLUDEDIR} ${srcdir} $(srcdir)/tic.h
167 @ (cd ${INCLUDEDIR} && rm -f term_entry.h) ; ../headers.sh ${INSTALL_DATA} ${INCLUDEDIR} ${srcdir} $(srcdir)/term_entry.h
168 @ (cd ${INCLUDEDIR} && rm -f nc_tparm.h) ; ../headers.sh ${INSTALL_DATA} ${INCLUDEDIR} ${srcdir} $(srcdir)/nc_tparm.h
169
170uninstall \
171uninstall.libs \
172uninstall.includes ::
173 -@ (cd ${INCLUDEDIR} && rm -f curses.h)
174 -@ (cd ${INCLUDEDIR} && rm -f ncurses.h)
175 -@ (cd ${INCLUDEDIR} && rm -f unctrl.h)
176 -@ (cd ${INCLUDEDIR} && rm -f ncurses_dll.h)
177 -@ (cd ${INCLUDEDIR} && rm -f term.h)
178 -@ (cd ${INCLUDEDIR} && rm -f termcap.h)
179 -@ (cd ${INCLUDEDIR} && rm -f tic.h)
180 -@ (cd ${INCLUDEDIR} && rm -f term_entry.h)
181 -@ (cd ${INCLUDEDIR} && rm -f nc_tparm.h)