blob: 20de6db166f0d6342535520ade263e518fff42cf [file] [log] [blame]
Steve Kondik067ae322015-11-15 18:20:06 -08001# $Id: Makefile.in,v 1.40 2015/08/05 23:15:41 tom Exp $
2##############################################################################
3# Copyright (c) 1998-2014,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-on
31#
32# Master Makefile for ncurses library.
33
34SHELL = /bin/sh
35
36
37DESTDIR=
38RPATH_LIST=${libdir}
39TOP_MFLAGS = DESTDIR="$(DESTDIR)" RPATH_LIST="$(RPATH_LIST)"
40
41
42
43NCURSES_MAJOR = 6
44NCURSES_MINOR = 0
45NCURSES_PATCH = 20150808
46
47top_srcdir = .
48srcdir = .
49
50prefix = /system
51exec_prefix = ${prefix}
52datarootdir = ${prefix}/share
53
54bindir = ${exec_prefix}/bin
55ticdir = /system/etc/terminfo
56includedir = ${prefix}/include
57includesubdir = /ncurses
58libdir = ${exec_prefix}/lib
59mandir = ${datarootdir}/man
60pkgdir = /usr/lib/x86_64-linux-gnu/pkgconfig
61
62include_dir = ${includedir}${includesubdir}
63
64INSTALL = /usr/bin/install -c
65INSTALL_DATA = ${INSTALL} -m 644
66
67DIRS_TO_MAKE = lib objects obj_g
68
69all :: $(DIRS_TO_MAKE)
70
71$(DIRS_TO_MAKE) :
72 mkdir $@
73
74preinstall :
75 @ echo ''
76 @ echo '** Configuration summary for NCURSES $(NCURSES_MAJOR).$(NCURSES_MINOR) $(NCURSES_PATCH):'
77 @ echo ''
78 @ echo ' extended funcs: '`test 1 != 0 && echo yes || echo no`
79 @ echo ' xterm terminfo: 'xterm-new
80 @ echo ''
81 @ echo ' bin directory: '$(bindir)
82 @ echo ' lib directory: '$(libdir)
83 @ echo ' include directory: '$(include_dir)
84 @ echo ' man directory: '$(mandir)
85 @ echo ' terminfo directory: '$(ticdir)
86# @ echo ' pkg-config directory: '$(pkgdir)
87 @ echo ''
88 @ test "$(include_dir)" = "$(prefix)/include" || \
89 echo '** Include-directory is not in a standard location'
90 @ test ! -f $(include_dir)/termcap.h || \
91 fgrep NCURSES_VERSION $(include_dir)/termcap.h >/dev/null || \
92 echo '** Will overwrite non-ncurses termcap.h'
93 @ test ! -f $(include_dir)/curses.h || \
94 fgrep NCURSES_VERSION $(include_dir)/curses.h >/dev/null || \
95 echo '** Will overwrite non-ncurses curses.h'
96
97distclean \
98realclean ::
99
100
101# Put the common rules here so that we can easily construct the list of
102# directories to visit.
103all \
104clean \
105distclean \
106mostlyclean \
107realclean \
108depend \
109sources \
110tags \
111uninstall \
112install ::
113 cd man && ${MAKE} ${TOP_MFLAGS} $@
114 cd include && ${MAKE} ${TOP_MFLAGS} $@
115 cd ncurses && ${MAKE} ${TOP_MFLAGS} $@
116 cd progs && ${MAKE} ${TOP_MFLAGS} $@
117 cd panel && ${MAKE} ${TOP_MFLAGS} $@
118 cd menu && ${MAKE} ${TOP_MFLAGS} $@
119 cd form && ${MAKE} ${TOP_MFLAGS} $@
120 cd test && ${MAKE} ${TOP_MFLAGS} $@
121 cd misc && ${MAKE} ${TOP_MFLAGS} $@
122
123libs \
124install.libs \
125uninstall.libs \
126install.includes \
127uninstall.includes ::
128 cd include && ${MAKE} ${TOP_MFLAGS} $@
129
130lint \
131libs \
132lintlib \
133install.libs \
134uninstall.libs \
135install.ncurses \
136uninstall.ncurses ::
137 cd ncurses && ${MAKE} ${TOP_MFLAGS} $@
138
139lint \
140libs \
141lintlib \
142install.libs \
143uninstall.libs \
144install.progs \
145uninstall.progs ::
146 cd progs && ${MAKE} ${TOP_MFLAGS} $@
147
148install.includes \
149uninstall.includes \
150lint \
151libs \
152lintlib \
153install.libs \
154uninstall.libs \
155install.panel \
156uninstall.panel ::
157 cd panel && ${MAKE} ${TOP_MFLAGS} $@
158
159install.includes \
160uninstall.includes \
161lint \
162libs \
163lintlib \
164install.libs \
165uninstall.libs \
166install.menu \
167uninstall.menu ::
168 cd menu && ${MAKE} ${TOP_MFLAGS} $@
169
170install.includes \
171uninstall.includes \
172lint \
173libs \
174lintlib \
175install.libs \
176uninstall.libs \
177install.form \
178uninstall.form ::
179 cd form && ${MAKE} ${TOP_MFLAGS} $@
180
181lint \
182libs \
183lintlib \
184install.libs \
185uninstall.libs \
186install.test \
187uninstall.test ::
188 cd test && ${MAKE} ${TOP_MFLAGS} $@
189
190install.libs uninstall.libs \
191install.data uninstall.data ::
192 cd misc && ${MAKE} ${TOP_MFLAGS} $@
193
194install.man \
195uninstall.man ::
196 cd man && ${MAKE} ${TOP_MFLAGS} $@
197
198distclean ::
199 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
200 rm -f headers.sh headers.sed mk_shared_lib.sh
201 rm -f edit_man.* man_alias.*
202 rm -rf ${DIRS_TO_MAKE}