micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 1 | # $Id: Makefile.in,v 1.46 2022/10/01 22:53:36 tom Exp $ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 2 | ############################################################################## |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 3 | # Copyright 2018-2021,2022 Thomas E. Dickey # |
| 4 | # Copyright 1998-2014,2015 Free Software Foundation, Inc. # |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 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 | # |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 31 | # Author: Thomas E. Dickey 1996-on |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 32 | # |
| 33 | # Master Makefile for ncurses library. |
| 34 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 35 | SHELL = @SHELL@ |
| 36 | VPATH = @srcdir@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 37 | |
| 38 | DESTDIR=@DESTDIR@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 39 | RPATH_LIST=@RPATH_LIST@ |
| 40 | TOP_MFLAGS = @cf_cv_makeflags@ DESTDIR="$(DESTDIR)" RPATH_LIST="$(RPATH_LIST)" |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 41 | |
| 42 | @SET_MAKE@ |
| 43 | |
| 44 | NCURSES_MAJOR = @NCURSES_MAJOR@ |
| 45 | NCURSES_MINOR = @NCURSES_MINOR@ |
| 46 | NCURSES_PATCH = @NCURSES_PATCH@ |
| 47 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 48 | top_srcdir = @top_srcdir@ |
| 49 | srcdir = @srcdir@ |
| 50 | |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 51 | prefix = @prefix@ |
| 52 | exec_prefix = @exec_prefix@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 53 | datarootdir = @datarootdir@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 54 | |
| 55 | bindir = @bindir@ |
| 56 | ticdir = @TERMINFO@ |
| 57 | includedir = @includedir@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 58 | includesubdir = @includesubdir@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 59 | libdir = @libdir@ |
| 60 | mandir = @mandir@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 61 | pkgdir = @PKG_CONFIG_LIBDIR@ |
| 62 | |
| 63 | include_dir = ${includedir}${includesubdir} |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 64 | |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 65 | FGREP = @FGREP@ |
| 66 | |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 67 | INSTALL = @INSTALL@ |
| 68 | INSTALL_DATA = @INSTALL_DATA@ |
| 69 | |
| 70 | DIRS_TO_MAKE = @DIRS_TO_MAKE@ |
| 71 | |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 72 | @MAKE_PHONY@.PHONY : all |
| 73 | @MAKE_PHONY@.PHONY : check |
| 74 | @MAKE_PHONY@.PHONY : clean |
| 75 | @MAKE_PHONY@.PHONY : depend |
| 76 | @MAKE_PHONY@.PHONY : distclean |
| 77 | @MAKE_PHONY@.PHONY : install |
| 78 | @MAKE_PHONY@.PHONY : mostlyclean |
| 79 | @MAKE_PHONY@.PHONY : preinstall |
| 80 | @MAKE_PHONY@.PHONY : realclean |
| 81 | @MAKE_PHONY@.PHONY : sources |
| 82 | @MAKE_PHONY@.PHONY : tags |
| 83 | @MAKE_PHONY@.PHONY : uninstall |
| 84 | |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 85 | all :: $(DIRS_TO_MAKE) |
| 86 | |
| 87 | $(DIRS_TO_MAKE) : |
| 88 | mkdir $@ |
| 89 | |
| 90 | preinstall : |
| 91 | @ echo '' |
| 92 | @ echo '** Configuration summary for NCURSES $(NCURSES_MAJOR).$(NCURSES_MINOR) $(NCURSES_PATCH):' |
| 93 | @ echo '' |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 94 | @ echo ' extended funcs: '`test @NCURSES_EXT_FUNCS@ != 0 && echo yes || echo no` |
| 95 | @ echo ' xterm terminfo: '@WHICH_XTERM@ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 96 | @ echo '' |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 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) |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 102 | @USE_FALLBACKS@ @ echo ' using fallback-list: '@FALLBACK_LIST@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 103 | @MAKE_PC_FILES@ @ echo ' pkg-config directory: '$(pkgdir) |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 104 | @ echo '' |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 105 | @ test "$(include_dir)" = "$(prefix)/include" || \ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 106 | echo '** Include-directory is not in a standard location' |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 107 | @ test ! -f $(include_dir)/termcap.h || \ |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 108 | $(FGREP) NCURSES_VERSION $(include_dir)/termcap.h >/dev/null || \ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 109 | echo '** Will overwrite non-ncurses termcap.h' |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 110 | @ test ! -f $(include_dir)/curses.h || \ |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 111 | $(FGREP) NCURSES_VERSION $(include_dir)/curses.h >/dev/null || \ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 112 | echo '** Will overwrite non-ncurses curses.h' |
| 113 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 114 | distclean \ |
| 115 | realclean :: |
| 116 | |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 117 | check : |
| 118 | @ echo The test-programs are interactive |
| 119 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 120 | |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 121 | # Put the common rules here so that we can easily construct the list of |
| 122 | # directories to visit. |
| 123 | all \ |
| 124 | clean \ |
| 125 | distclean \ |
| 126 | mostlyclean \ |
| 127 | realclean \ |
| 128 | depend \ |
| 129 | sources \ |
| 130 | tags \ |
| 131 | uninstall \ |
| 132 | install :: |