LuK1337 | 52a81d5 | 2025-07-08 18:07:20 -0400 | [diff] [blame] | 1 | # $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 | |
| 35 | SHELL = /bin/sh |
| 36 | |
| 37 | |
| 38 | DESTDIR= |
| 39 | RPATH_LIST=${libdir} |
| 40 | TOP_MFLAGS = DESTDIR="$(DESTDIR)" RPATH_LIST="$(RPATH_LIST)" |
| 41 | |
| 42 | |
| 43 | |
| 44 | NCURSES_MAJOR = 6 |
| 45 | NCURSES_MINOR = 5 |
| 46 | NCURSES_PATCH = 20240427 |
| 47 | |
| 48 | top_srcdir = . |
| 49 | srcdir = . |
| 50 | |
| 51 | prefix = /usr |
| 52 | exec_prefix = ${prefix} |
| 53 | datarootdir = ${prefix}/share |
| 54 | |
| 55 | bindir = ${exec_prefix}/bin |
| 56 | ticdir = /system_ext/etc/terminfo |
| 57 | includedir = ${prefix}/include |
| 58 | includesubdir = |
| 59 | libdir = ${exec_prefix}/lib |
| 60 | mandir = ${datarootdir}/man |
| 61 | pkgdir = /usr/local/lib/pkgconfig |
| 62 | |
| 63 | include_dir = ${includedir}${includesubdir} |
| 64 | |
| 65 | FGREP = grep -F |
| 66 | |
| 67 | INSTALL = /usr/bin/install -c |
| 68 | INSTALL_DATA = ${INSTALL} -m 644 |
| 69 | |
| 70 | DIRS_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 | |
| 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 '' |
| 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 | |
| 114 | distclean \ |
| 115 | realclean :: |
| 116 | |
| 117 | check : |
| 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. |
| 123 | all \ |
| 124 | clean \ |
| 125 | distclean \ |
| 126 | mostlyclean \ |
| 127 | realclean \ |
| 128 | depend \ |
| 129 | sources \ |
| 130 | tags \ |
| 131 | uninstall \ |
| 132 | install :: |
| 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 | |
| 153 | libs \ |
| 154 | install.libs \ |
| 155 | uninstall.libs \ |
| 156 | install.includes \ |
| 157 | uninstall.includes :: |
| 158 | ( cd "include" && ${MAKE} ${TOP_MFLAGS} $@ ) |
| 159 | |
| 160 | .PHONY : install.ncurses |
| 161 | .PHONY : uninstall.ncurses |
| 162 | |
| 163 | lint \ |
| 164 | libs \ |
| 165 | lintlib \ |
| 166 | install.libs \ |
| 167 | uninstall.libs \ |
| 168 | install.ncurses \ |
| 169 | uninstall.ncurses :: |
| 170 | ( cd "ncurses" && ${MAKE} ${TOP_MFLAGS} $@ ) |
| 171 | |
| 172 | .PHONY : install.progs |
| 173 | .PHONY : uninstall.progs |
| 174 | |
| 175 | lint \ |
| 176 | libs \ |
| 177 | lintlib \ |
| 178 | install.libs \ |
| 179 | uninstall.libs \ |
| 180 | install.progs \ |
| 181 | uninstall.progs :: |
| 182 | ( cd "progs" && ${MAKE} ${TOP_MFLAGS} $@ ) |
| 183 | |
| 184 | .PHONY : install.panel |
| 185 | .PHONY : uninstall.panel |
| 186 | |
| 187 | install.includes \ |
| 188 | uninstall.includes \ |
| 189 | lint \ |
| 190 | libs \ |
| 191 | lintlib \ |
| 192 | install.libs \ |
| 193 | uninstall.libs \ |
| 194 | install.panel \ |
| 195 | uninstall.panel :: |
| 196 | ( cd "panel" && ${MAKE} ${TOP_MFLAGS} $@ ) |
| 197 | |
| 198 | .PHONY : install.menu |
| 199 | .PHONY : uninstall.menu |
| 200 | |
| 201 | install.includes \ |
| 202 | uninstall.includes \ |
| 203 | lint \ |
| 204 | libs \ |
| 205 | lintlib \ |
| 206 | install.libs \ |
| 207 | uninstall.libs \ |
| 208 | install.menu \ |
| 209 | uninstall.menu :: |
| 210 | ( cd "menu" && ${MAKE} ${TOP_MFLAGS} $@ ) |
| 211 | |
| 212 | .PHONY : install.form |
| 213 | .PHONY : uninstall.form |
| 214 | |
| 215 | install.includes \ |
| 216 | uninstall.includes \ |
| 217 | lint \ |
| 218 | libs \ |
| 219 | lintlib \ |
| 220 | install.libs \ |
| 221 | uninstall.libs \ |
| 222 | install.form \ |
| 223 | uninstall.form :: |
| 224 | ( cd "form" && ${MAKE} ${TOP_MFLAGS} $@ ) |
| 225 | |
| 226 | .PHONY : install.test |
| 227 | .PHONY : uninstall.test |
| 228 | |
| 229 | lint \ |
| 230 | libs \ |
| 231 | lintlib \ |
| 232 | install.libs \ |
| 233 | uninstall.libs \ |
| 234 | install.test \ |
| 235 | uninstall.test :: |
| 236 | ( cd "test" && ${MAKE} ${TOP_MFLAGS} $@ ) |
| 237 | |
| 238 | .PHONY : install.c++ |
| 239 | .PHONY : uninstall.c++ |
| 240 | |
| 241 | install.includes \ |
| 242 | uninstall.includes \ |
| 243 | lint \ |
| 244 | libs \ |
| 245 | lintlib \ |
| 246 | install.libs \ |
| 247 | uninstall.libs \ |
| 248 | install.c++ \ |
| 249 | uninstall.c++ :: |
| 250 | ( cd "c++" && ${MAKE} ${TOP_MFLAGS} $@ ) |
| 251 | |
| 252 | .PHONY : install.data |
| 253 | .PHONY : uninstall.data |
| 254 | |
| 255 | install.libs uninstall.libs \ |
| 256 | install.data uninstall.data :: |
| 257 | ( cd misc && ${MAKE} ${TOP_MFLAGS} $@ ) |
| 258 | |
| 259 | .PHONY : install.man |
| 260 | .PHONY : uninstall.man |
| 261 | |
| 262 | install.man \ |
| 263 | uninstall.man :: |
| 264 | ( cd man && ${MAKE} ${TOP_MFLAGS} $@ ) |
| 265 | |
| 266 | distclean :: |
| 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} |