blob: 506486a955f8337ccc43ab00580e2fbbc636fd3c [file] [log] [blame]
LuK133752a81d52025-07-08 18:07:20 -04001# $Id: Makefile.in,v 1.46 2022/10/01 22:53:36 tom Exp $
2##############################################################################
3# Copyright 2018-2021,2022 Thomas E. Dickey #
4# Copyright 1998-2014,2015 Free Software Foundation, Inc. #
5# #
6# Permission is hereby granted, free of charge, to any person obtaining a #
7# copy of this software and associated documentation files (the "Software"), #
8# to deal in the Software without restriction, including without limitation #
9# the rights to use, copy, modify, merge, publish, distribute, distribute #
10# with modifications, sublicense, and/or sell copies of the Software, and to #
11# permit persons to whom the Software is furnished to do so, subject to the #
12# following conditions: #
13# #
14# The above copyright notice and this permission notice shall be included in #
15# all copies or substantial portions of the Software. #
16# #
17# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
19# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
20# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
21# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
23# DEALINGS IN THE SOFTWARE. #
24# #
25# Except as contained in this notice, the name(s) of the above copyright #
26# holders shall not be used in advertising or otherwise to promote the sale, #
27# use or other dealings in this Software without prior written #
28# authorization. #
29##############################################################################
30#
31# Author: Thomas E. Dickey 1996-on
32#
33# Master Makefile for ncurses library.
34
35SHELL = /bin/sh
36
37
38DESTDIR=
39RPATH_LIST=${libdir}
40TOP_MFLAGS = DESTDIR="$(DESTDIR)" RPATH_LIST="$(RPATH_LIST)"
41
42
43
44NCURSES_MAJOR = 6
45NCURSES_MINOR = 5
46NCURSES_PATCH = 20240427
47
48top_srcdir = .
49srcdir = .
50
51prefix = /usr
52exec_prefix = ${prefix}
53datarootdir = ${prefix}/share
54
55bindir = ${exec_prefix}/bin
56ticdir = /system_ext/etc/terminfo
57includedir = ${prefix}/include
58includesubdir =
59libdir = ${exec_prefix}/lib
60mandir = ${datarootdir}/man
61pkgdir = /usr/local/lib/pkgconfig
62
63include_dir = ${includedir}${includesubdir}
64
65FGREP = grep -F
66
67INSTALL = /usr/bin/install -c
68INSTALL_DATA = ${INSTALL} -m 644
69
70DIRS_TO_MAKE = lib objects obj_g
71
72.PHONY : all
73.PHONY : check
74.PHONY : clean
75.PHONY : depend
76.PHONY : distclean
77.PHONY : install
78.PHONY : mostlyclean
79.PHONY : preinstall
80.PHONY : realclean
81.PHONY : sources
82.PHONY : tags
83.PHONY : uninstall
84
85all :: $(DIRS_TO_MAKE)
86
87$(DIRS_TO_MAKE) :
88 mkdir $@
89
90preinstall :
91 @ echo ''
92 @ echo '** Configuration summary for NCURSES $(NCURSES_MAJOR).$(NCURSES_MINOR) $(NCURSES_PATCH):'
93 @ echo ''
94 @ echo ' extended funcs: '`test 1 != 0 && echo yes || echo no`
95 @ echo ' xterm terminfo: 'xterm-new
96 @ echo ''
97 @ echo ' bin directory: '$(bindir)
98 @ echo ' lib directory: '$(libdir)
99 @ echo ' include directory: '$(include_dir)
100 @ echo ' man directory: '$(mandir)
101 @ echo ' terminfo directory: '$(ticdir)
102# @ echo ' using fallback-list: '
103# @ echo ' pkg-config directory: '$(pkgdir)
104 @ echo ''
105 @ test "$(include_dir)" = "$(prefix)/include" || \
106 echo '** Include-directory is not in a standard location'
107 @ test ! -f $(include_dir)/termcap.h || \
108 $(FGREP) NCURSES_VERSION $(include_dir)/termcap.h >/dev/null || \
109 echo '** Will overwrite non-ncurses termcap.h'
110 @ test ! -f $(include_dir)/curses.h || \
111 $(FGREP) NCURSES_VERSION $(include_dir)/curses.h >/dev/null || \
112 echo '** Will overwrite non-ncurses curses.h'
113
114distclean \
115realclean ::
116
117check :
118 @ echo The test-programs are interactive
119
120
121# Put the common rules here so that we can easily construct the list of
122# directories to visit.
123all \
124clean \
125distclean \
126mostlyclean \
127realclean \
128depend \
129sources \
130tags \
131uninstall \
132install ::
133 ( cd man && ${MAKE} ${TOP_MFLAGS} $@ )
134 ( cd include && ${MAKE} ${TOP_MFLAGS} $@ )
135 ( cd ncurses && ${MAKE} ${TOP_MFLAGS} $@ )
136 ( cd progs && ${MAKE} ${TOP_MFLAGS} $@ )
137 ( cd panel && ${MAKE} ${TOP_MFLAGS} $@ )
138 ( cd menu && ${MAKE} ${TOP_MFLAGS} $@ )
139 ( cd form && ${MAKE} ${TOP_MFLAGS} $@ )
140 ( cd test && ${MAKE} ${TOP_MFLAGS} $@ )
141 ( cd misc && ${MAKE} ${TOP_MFLAGS} $@ )
142 ( cd c++ && ${MAKE} ${TOP_MFLAGS} $@ )
143
144# generated by CF_LIB_RULES
145
146.PHONY : libs
147.PHONY : lintlib
148.PHONY : install.includes
149.PHONY : uninstall.includes
150.PHONY : install.libs
151.PHONY : uninstall.libs
152
153libs \
154install.libs \
155uninstall.libs \
156install.includes \
157uninstall.includes ::
158 ( cd "include" && ${MAKE} ${TOP_MFLAGS} $@ )
159
160.PHONY : install.ncurses
161.PHONY : uninstall.ncurses
162
163lint \
164libs \
165lintlib \
166install.libs \
167uninstall.libs \
168install.ncurses \
169uninstall.ncurses ::
170 ( cd "ncurses" && ${MAKE} ${TOP_MFLAGS} $@ )
171
172.PHONY : install.progs
173.PHONY : uninstall.progs
174
175lint \
176libs \
177lintlib \
178install.libs \
179uninstall.libs \
180install.progs \
181uninstall.progs ::
182 ( cd "progs" && ${MAKE} ${TOP_MFLAGS} $@ )
183
184.PHONY : install.panel
185.PHONY : uninstall.panel
186
187install.includes \
188uninstall.includes \
189lint \
190libs \
191lintlib \
192install.libs \
193uninstall.libs \
194install.panel \
195uninstall.panel ::
196 ( cd "panel" && ${MAKE} ${TOP_MFLAGS} $@ )
197
198.PHONY : install.menu
199.PHONY : uninstall.menu
200
201install.includes \
202uninstall.includes \
203lint \
204libs \
205lintlib \
206install.libs \
207uninstall.libs \
208install.menu \
209uninstall.menu ::
210 ( cd "menu" && ${MAKE} ${TOP_MFLAGS} $@ )
211
212.PHONY : install.form
213.PHONY : uninstall.form
214
215install.includes \
216uninstall.includes \
217lint \
218libs \
219lintlib \
220install.libs \
221uninstall.libs \
222install.form \
223uninstall.form ::
224 ( cd "form" && ${MAKE} ${TOP_MFLAGS} $@ )
225
226.PHONY : install.test
227.PHONY : uninstall.test
228
229lint \
230libs \
231lintlib \
232install.libs \
233uninstall.libs \
234install.test \
235uninstall.test ::
236 ( cd "test" && ${MAKE} ${TOP_MFLAGS} $@ )
237
238.PHONY : install.c++
239.PHONY : uninstall.c++
240
241install.includes \
242uninstall.includes \
243lint \
244libs \
245lintlib \
246install.libs \
247uninstall.libs \
248install.c++ \
249uninstall.c++ ::
250 ( cd "c++" && ${MAKE} ${TOP_MFLAGS} $@ )
251
252.PHONY : install.data
253.PHONY : uninstall.data
254
255install.libs uninstall.libs \
256install.data uninstall.data ::
257 ( cd misc && ${MAKE} ${TOP_MFLAGS} $@ )
258
259.PHONY : install.man
260.PHONY : uninstall.man
261
262install.man \
263uninstall.man ::
264 ( cd man && ${MAKE} ${TOP_MFLAGS} $@ )
265
266distclean ::
267 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
268 rm -f headers.sh headers.sed mk_shared_lib.sh
269 rm -f edit_man.* man_alias.* *.tmp
270 rm -rf ${DIRS_TO_MAKE}