1# $Id: Makefile.in,v 1.51 2025/10/25 18:01:01 tom Exp $ 2############################################################################## 3# Copyright 2018-2022,2025 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 = @SHELL@ 36VPATH = @srcdir@ 37 38@SET_MAKE@ 39@SET_DESTDIR@ 40RPATH_LIST = @RPATH_LIST@ 41TOP_MFLAGS = DESTDIR="$(DESTDIR)" RPATH_LIST="$(RPATH_LIST)" 42 43NCURSES_MAJOR = @NCURSES_MAJOR@ 44NCURSES_MINOR = @NCURSES_MINOR@ 45NCURSES_PATCH = @NCURSES_PATCH@ 46 47top_srcdir = @top_srcdir@ 48srcdir = @srcdir@ 49 50prefix = @prefix@ 51exec_prefix = @exec_prefix@ 52datarootdir = @datarootdir@ 53 54bindir = @bindir@ 55ticdir = @TERMINFO@ 56includedir = @includedir@ 57includesubdir = @includesubdir@ 58libdir = @libdir@ 59mandir = @mandir@ 60pkgdir = @PKG_CONFIG_LIBDIR@ 61 62include_dir = ${includedir}${includesubdir} 63 64FGREP = @FGREP@ 65 66INSTALL = @INSTALL@ 67INSTALL_DATA = @INSTALL_DATA@ 68 69DIRS_TO_MAKE = @DIRS_TO_MAKE@ 70 71@MAKE_PHONY@.PHONY : all 72@MAKE_PHONY@.PHONY : check 73@MAKE_PHONY@.PHONY : clean 74@MAKE_PHONY@.PHONY : depend 75@MAKE_PHONY@.PHONY : distclean 76@MAKE_PHONY@.PHONY : install 77@MAKE_PHONY@.PHONY : mostlyclean 78@MAKE_PHONY@.PHONY : preinstall 79@MAKE_PHONY@.PHONY : realclean 80@MAKE_PHONY@.PHONY : sources 81@MAKE_PHONY@.PHONY : tags 82@MAKE_PHONY@.PHONY : uninstall 83 84all :: $(DIRS_TO_MAKE) 85 86$(DIRS_TO_MAKE) : 87 mkdir $@ 88 89preinstall : 90 @ echo '' 91 @ echo '** Configuration summary for NCURSES $(NCURSES_MAJOR).$(NCURSES_MINOR) $(NCURSES_PATCH):' 92 @ echo '' 93 @ echo ' extended funcs: '`test @NCURSES_EXT_FUNCS@ != 0 && echo yes || echo no` 94 @ echo ' xterm terminfo: '@WHICH_XTERM@ 95 @ echo ' ABI suffix: '`if test -n "@ABI_SUFFIX@"; then echo @ABI_SUFFIX@; else echo "(none)"; fi` 96 @ echo '' 97 @ echo ' bin directory: '$(bindir) 98 @ echo ' lib directory: '$(libdir) 99 @ echo ' include directory: '$(include_dir) 100 @ echo ' man directory: '$(mandir) 101@MAKE_TERMINFO@ @ echo ' terminfo directory: '$(ticdir) 102@USE_FALLBACKS@ @ echo ' using fallback-list: '@FALLBACK_LIST@ 103@MAKE_PC_FILES@ @ 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 117# Put the common rules here so that we can easily construct the list of 118# directories to visit. 119all \ 120check \ 121clean \ 122distclean \ 123mostlyclean \ 124realclean \ 125depend \ 126sources \ 127tags \ 128uninstall \ 129install :: 130