Steve Kondik | 067ae32 | 2015-11-15 18:20:06 -0800 | [diff] [blame^] | 1 | # $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 | |
| 34 | SHELL = /bin/sh |
| 35 | |
| 36 | |
| 37 | DESTDIR= |
| 38 | RPATH_LIST=${libdir} |
| 39 | TOP_MFLAGS = DESTDIR="$(DESTDIR)" RPATH_LIST="$(RPATH_LIST)" |
| 40 | |
| 41 | |
| 42 | |
| 43 | NCURSES_MAJOR = 6 |
| 44 | NCURSES_MINOR = 0 |
| 45 | NCURSES_PATCH = 20150808 |
| 46 | |
| 47 | top_srcdir = . |
| 48 | srcdir = . |
| 49 | |
| 50 | prefix = /system |
| 51 | exec_prefix = ${prefix} |
| 52 | datarootdir = ${prefix}/share |
| 53 | |
| 54 | bindir = ${exec_prefix}/bin |
| 55 | ticdir = /system/etc/terminfo |
| 56 | includedir = ${prefix}/include |
| 57 | includesubdir = /ncurses |
| 58 | libdir = ${exec_prefix}/lib |
| 59 | mandir = ${datarootdir}/man |
| 60 | pkgdir = /usr/lib/x86_64-linux-gnu/pkgconfig |
| 61 | |
| 62 | include_dir = ${includedir}${includesubdir} |
| 63 | |
| 64 | INSTALL = /usr/bin/install -c |
| 65 | INSTALL_DATA = ${INSTALL} -m 644 |
| 66 | |
| 67 | DIRS_TO_MAKE = lib objects obj_g |
| 68 | |
| 69 | all :: $(DIRS_TO_MAKE) |
| 70 | |
| 71 | $(DIRS_TO_MAKE) : |
| 72 | mkdir $@ |
| 73 | |
| 74 | preinstall : |
| 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 | |
| 97 | distclean \ |
| 98 | realclean :: |
| 99 | |
| 100 | |
| 101 | # Put the common rules here so that we can easily construct the list of |
| 102 | # directories to visit. |
| 103 | all \ |
| 104 | clean \ |
| 105 | distclean \ |
| 106 | mostlyclean \ |
| 107 | realclean \ |
| 108 | depend \ |
| 109 | sources \ |
| 110 | tags \ |
| 111 | uninstall \ |
| 112 | install :: |
| 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 | |
| 123 | libs \ |
| 124 | install.libs \ |
| 125 | uninstall.libs \ |
| 126 | install.includes \ |
| 127 | uninstall.includes :: |
| 128 | cd include && ${MAKE} ${TOP_MFLAGS} $@ |
| 129 | |
| 130 | lint \ |
| 131 | libs \ |
| 132 | lintlib \ |
| 133 | install.libs \ |
| 134 | uninstall.libs \ |
| 135 | install.ncurses \ |
| 136 | uninstall.ncurses :: |
| 137 | cd ncurses && ${MAKE} ${TOP_MFLAGS} $@ |
| 138 | |
| 139 | lint \ |
| 140 | libs \ |
| 141 | lintlib \ |
| 142 | install.libs \ |
| 143 | uninstall.libs \ |
| 144 | install.progs \ |
| 145 | uninstall.progs :: |
| 146 | cd progs && ${MAKE} ${TOP_MFLAGS} $@ |
| 147 | |
| 148 | install.includes \ |
| 149 | uninstall.includes \ |
| 150 | lint \ |
| 151 | libs \ |
| 152 | lintlib \ |
| 153 | install.libs \ |
| 154 | uninstall.libs \ |
| 155 | install.panel \ |
| 156 | uninstall.panel :: |
| 157 | cd panel && ${MAKE} ${TOP_MFLAGS} $@ |
| 158 | |
| 159 | install.includes \ |
| 160 | uninstall.includes \ |
| 161 | lint \ |
| 162 | libs \ |
| 163 | lintlib \ |
| 164 | install.libs \ |
| 165 | uninstall.libs \ |
| 166 | install.menu \ |
| 167 | uninstall.menu :: |
| 168 | cd menu && ${MAKE} ${TOP_MFLAGS} $@ |
| 169 | |
| 170 | install.includes \ |
| 171 | uninstall.includes \ |
| 172 | lint \ |
| 173 | libs \ |
| 174 | lintlib \ |
| 175 | install.libs \ |
| 176 | uninstall.libs \ |
| 177 | install.form \ |
| 178 | uninstall.form :: |
| 179 | cd form && ${MAKE} ${TOP_MFLAGS} $@ |
| 180 | |
| 181 | lint \ |
| 182 | libs \ |
| 183 | lintlib \ |
| 184 | install.libs \ |
| 185 | uninstall.libs \ |
| 186 | install.test \ |
| 187 | uninstall.test :: |
| 188 | cd test && ${MAKE} ${TOP_MFLAGS} $@ |
| 189 | |
| 190 | install.libs uninstall.libs \ |
| 191 | install.data uninstall.data :: |
| 192 | cd misc && ${MAKE} ${TOP_MFLAGS} $@ |
| 193 | |
| 194 | install.man \ |
| 195 | uninstall.man :: |
| 196 | cd man && ${MAKE} ${TOP_MFLAGS} $@ |
| 197 | |
| 198 | distclean :: |
| 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} |