Amit Daniel Kachhap | 4454943 | 2011-07-20 14:21:22 +0530 | [diff] [blame^] | 1 | # $Id: Makefile.in,v 1.24 2005/01/29 19:30:06 tom Exp $ |
| 2 | ############################################################################## |
| 3 | # Copyright (c) 1998-2004,2005 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 <dickey@clark.net> 1996,1997 |
| 31 | # |
| 32 | # Master Makefile for ncurses library. |
| 33 | |
| 34 | SHELL = /bin/sh |
| 35 | |
| 36 | DESTDIR= |
| 37 | CF_MFLAGS = DESTDIR="$(DESTDIR)" |
| 38 | |
| 39 | |
| 40 | |
| 41 | NCURSES_MAJOR = 5 |
| 42 | NCURSES_MINOR = 7 |
| 43 | NCURSES_PATCH = 20081102 |
| 44 | |
| 45 | prefix = /usr/local |
| 46 | exec_prefix = ${prefix} |
| 47 | |
| 48 | bindir = ${exec_prefix}/bin |
| 49 | ticdir = /usr/local/share/terminfo |
| 50 | includedir = ${prefix}/include/ncurses |
| 51 | libdir = ${exec_prefix}/lib |
| 52 | mandir = ${prefix}/man |
| 53 | |
| 54 | INSTALL = /usr/bin/install -c |
| 55 | INSTALL_DATA = ${INSTALL} -m 644 |
| 56 | |
| 57 | DIRS_TO_MAKE = lib objects obj_g |
| 58 | |
| 59 | all :: $(DIRS_TO_MAKE) |
| 60 | |
| 61 | $(DIRS_TO_MAKE) : |
| 62 | mkdir $@ |
| 63 | |
| 64 | preinstall : |
| 65 | @ echo '' |
| 66 | @ echo '** Configuration summary for NCURSES $(NCURSES_MAJOR).$(NCURSES_MINOR) $(NCURSES_PATCH):' |
| 67 | @ echo '' |
| 68 | @ echo ' extended funcs: '`test 1 != 0 && echo yes || echo no` |
| 69 | @ echo ' xterm terminfo: 'xterm-new |
| 70 | @ echo '' |
| 71 | @ echo ' bin directory: '$(bindir) |
| 72 | @ echo ' lib directory: '$(libdir) |
| 73 | @ echo ' include directory: '$(includedir) |
| 74 | @ echo ' man directory: '$(mandir) |
| 75 | @ echo ' terminfo directory: '$(ticdir) |
| 76 | @ echo '' |
| 77 | @ test "$(includedir)" = "$(prefix)/include" || \ |
| 78 | echo '** Include-directory is not in a standard location' |
| 79 | @ test ! -f $(includedir)/termcap.h || \ |
| 80 | fgrep NCURSES_VERSION $(includedir)/termcap.h >/dev/null || \ |
| 81 | echo '** Will overwrite non-ncurses termcap.h' |
| 82 | @ test ! -f $(includedir)/curses.h || \ |
| 83 | fgrep NCURSES_VERSION $(includedir)/curses.h >/dev/null || \ |
| 84 | echo '** Will overwrite non-ncurses curses.h' |
| 85 | |
| 86 | # Put the common rules here so that we can easily construct the list of |
| 87 | # directories to visit. |
| 88 | all \ |
| 89 | clean \ |
| 90 | distclean \ |
| 91 | mostlyclean \ |
| 92 | realclean \ |
| 93 | depend \ |
| 94 | sources \ |
| 95 | tags \ |
| 96 | uninstall \ |
| 97 | install :: |
| 98 | cd man && ${MAKE} ${CF_MFLAGS} $@ |
| 99 | cd include && ${MAKE} ${CF_MFLAGS} $@ |
| 100 | cd ncurses && ${MAKE} ${CF_MFLAGS} $@ |
| 101 | cd progs && ${MAKE} ${CF_MFLAGS} $@ |
| 102 | cd panel && ${MAKE} ${CF_MFLAGS} $@ |
| 103 | cd menu && ${MAKE} ${CF_MFLAGS} $@ |
| 104 | cd form && ${MAKE} ${CF_MFLAGS} $@ |
| 105 | cd test && ${MAKE} ${CF_MFLAGS} $@ |
| 106 | cd misc && ${MAKE} ${CF_MFLAGS} $@ |
| 107 | |
| 108 | libs \ |
| 109 | install.libs \ |
| 110 | uninstall.libs \ |
| 111 | install.includes \ |
| 112 | uninstall.includes :: |
| 113 | cd include && ${MAKE} ${CF_MFLAGS} $@ |
| 114 | |
| 115 | lint \ |
| 116 | libs \ |
| 117 | lintlib \ |
| 118 | install.libs \ |
| 119 | uninstall.libs \ |
| 120 | install.ncurses \ |
| 121 | uninstall.ncurses :: |
| 122 | cd ncurses && ${MAKE} ${CF_MFLAGS} $@ |
| 123 | |
| 124 | lint \ |
| 125 | libs \ |
| 126 | lintlib \ |
| 127 | install.libs \ |
| 128 | uninstall.libs \ |
| 129 | install.progs \ |
| 130 | uninstall.progs :: |
| 131 | cd progs && ${MAKE} ${CF_MFLAGS} $@ |
| 132 | |
| 133 | install.includes \ |
| 134 | uninstall.includes \ |
| 135 | lint \ |
| 136 | libs \ |
| 137 | lintlib \ |
| 138 | install.libs \ |
| 139 | uninstall.libs \ |
| 140 | install.panel \ |
| 141 | uninstall.panel :: |
| 142 | cd panel && ${MAKE} ${CF_MFLAGS} $@ |
| 143 | |
| 144 | install.includes \ |
| 145 | uninstall.includes \ |
| 146 | lint \ |
| 147 | libs \ |
| 148 | lintlib \ |
| 149 | install.libs \ |
| 150 | uninstall.libs \ |
| 151 | install.menu \ |
| 152 | uninstall.menu :: |
| 153 | cd menu && ${MAKE} ${CF_MFLAGS} $@ |
| 154 | |
| 155 | install.includes \ |
| 156 | uninstall.includes \ |
| 157 | lint \ |
| 158 | libs \ |
| 159 | lintlib \ |
| 160 | install.libs \ |
| 161 | uninstall.libs \ |
| 162 | install.form \ |
| 163 | uninstall.form :: |
| 164 | cd form && ${MAKE} ${CF_MFLAGS} $@ |
| 165 | |
| 166 | lint \ |
| 167 | libs \ |
| 168 | lintlib \ |
| 169 | install.libs \ |
| 170 | uninstall.libs \ |
| 171 | install.test \ |
| 172 | uninstall.test :: |
| 173 | cd test && ${MAKE} ${CF_MFLAGS} $@ |
| 174 | |
| 175 | install.libs uninstall.libs \ |
| 176 | install.data uninstall.data :: |
| 177 | cd misc && ${MAKE} ${CF_MFLAGS} $@ |
| 178 | |
| 179 | install.man \ |
| 180 | uninstall.man :: |
| 181 | cd man && ${MAKE} ${CF_MFLAGS} $@ |
| 182 | |
| 183 | distclean :: |
| 184 | rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h |
| 185 | rm -f headers.sh headers.sed mk_shared_lib.sh |
| 186 | rm -rf ${DIRS_TO_MAKE} |