blob: d5691685393b1ef2c86af7029689429de6bb7bc6 [file] [log] [blame]
Steve Kondikae271bc2015-11-15 02:50:53 +01001# $Id: Makefile.in,v 1.40 2015/08/05 23:15:41 tom Exp $
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05302##############################################################################
Steve Kondikae271bc2015-11-15 02:50:53 +01003# Copyright (c) 1998-2014,2015 Free Software Foundation, Inc. #
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05304# #
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#
Steve Kondikae271bc2015-11-15 02:50:53 +010030# Author: Thomas E. Dickey 1996-on
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053031#
32# Master Makefile for ncurses library.
33
Steve Kondikae271bc2015-11-15 02:50:53 +010034SHELL = @SHELL@
35VPATH = @srcdir@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053036
37DESTDIR=@DESTDIR@
Steve Kondikae271bc2015-11-15 02:50:53 +010038RPATH_LIST=@RPATH_LIST@
39TOP_MFLAGS = @cf_cv_makeflags@ DESTDIR="$(DESTDIR)" RPATH_LIST="$(RPATH_LIST)"
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053040
41@SET_MAKE@
42
43NCURSES_MAJOR = @NCURSES_MAJOR@
44NCURSES_MINOR = @NCURSES_MINOR@
45NCURSES_PATCH = @NCURSES_PATCH@
46
Steve Kondikae271bc2015-11-15 02:50:53 +010047top_srcdir = @top_srcdir@
48srcdir = @srcdir@
49
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053050prefix = @prefix@
51exec_prefix = @exec_prefix@
Steve Kondikae271bc2015-11-15 02:50:53 +010052datarootdir = @datarootdir@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053053
54bindir = @bindir@
55ticdir = @TERMINFO@
56includedir = @includedir@
Steve Kondikae271bc2015-11-15 02:50:53 +010057includesubdir = @includesubdir@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053058libdir = @libdir@
59mandir = @mandir@
Steve Kondikae271bc2015-11-15 02:50:53 +010060pkgdir = @PKG_CONFIG_LIBDIR@
61
62include_dir = ${includedir}${includesubdir}
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053063
64INSTALL = @INSTALL@
65INSTALL_DATA = @INSTALL_DATA@
66
67DIRS_TO_MAKE = @DIRS_TO_MAKE@
68
69all :: $(DIRS_TO_MAKE)
70
71$(DIRS_TO_MAKE) :
72 mkdir $@
73
74preinstall :
75 @ echo ''
76 @ echo '** Configuration summary for NCURSES $(NCURSES_MAJOR).$(NCURSES_MINOR) $(NCURSES_PATCH):'
77 @ echo ''
Steve Kondikae271bc2015-11-15 02:50:53 +010078 @ echo ' extended funcs: '`test @NCURSES_EXT_FUNCS@ != 0 && echo yes || echo no`
79 @ echo ' xterm terminfo: '@WHICH_XTERM@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053080 @ echo ''
Steve Kondikae271bc2015-11-15 02:50:53 +010081 @ echo ' bin directory: '$(bindir)
82 @ echo ' lib directory: '$(libdir)
83 @ echo ' include directory: '$(include_dir)
84 @ echo ' man directory: '$(mandir)
85@MAKE_TERMINFO@ @ echo ' terminfo directory: '$(ticdir)
86@MAKE_PC_FILES@ @ echo ' pkg-config directory: '$(pkgdir)
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053087 @ echo ''
Steve Kondikae271bc2015-11-15 02:50:53 +010088 @ test "$(include_dir)" = "$(prefix)/include" || \
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053089 echo '** Include-directory is not in a standard location'
Steve Kondikae271bc2015-11-15 02:50:53 +010090 @ test ! -f $(include_dir)/termcap.h || \
91 fgrep NCURSES_VERSION $(include_dir)/termcap.h >/dev/null || \
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053092 echo '** Will overwrite non-ncurses termcap.h'
Steve Kondikae271bc2015-11-15 02:50:53 +010093 @ test ! -f $(include_dir)/curses.h || \
94 fgrep NCURSES_VERSION $(include_dir)/curses.h >/dev/null || \
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053095 echo '** Will overwrite non-ncurses curses.h'
96
Steve Kondikae271bc2015-11-15 02:50:53 +010097distclean \
98realclean ::
99
100
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530101# Put the common rules here so that we can easily construct the list of
102# directories to visit.
103all \
104clean \
105distclean \
106mostlyclean \
107realclean \
108depend \
109sources \
110tags \
111uninstall \
112install ::