xref: /freebsd/contrib/ncurses/Makefile.in (revision 2ed3236082a4473c1da8f72c1ebc071a7b54321f)
1# $Id: Makefile.in,v 1.43 2020/02/02 23:34:34 tom Exp $
2##############################################################################
3# Copyright 2018-2019,2020 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
35SHELL 		= @SHELL@
36VPATH		= @srcdir@
37
38DESTDIR=@DESTDIR@
39RPATH_LIST=@RPATH_LIST@
40TOP_MFLAGS = @cf_cv_makeflags@ DESTDIR="$(DESTDIR)" RPATH_LIST="$(RPATH_LIST)"
41
42@SET_MAKE@
43
44NCURSES_MAJOR	= @NCURSES_MAJOR@
45NCURSES_MINOR	= @NCURSES_MINOR@
46NCURSES_PATCH	= @NCURSES_PATCH@
47
48top_srcdir	= @top_srcdir@
49srcdir		= @srcdir@
50
51prefix		= @prefix@
52exec_prefix	= @exec_prefix@
53datarootdir	= @datarootdir@
54
55bindir		= @bindir@
56ticdir		= @TERMINFO@
57includedir	= @includedir@
58includesubdir	= @includesubdir@
59libdir		= @libdir@
60mandir		= @mandir@
61pkgdir		= @PKG_CONFIG_LIBDIR@
62
63include_dir	= ${includedir}${includesubdir}
64
65INSTALL		= @INSTALL@
66INSTALL_DATA	= @INSTALL_DATA@
67
68DIRS_TO_MAKE	= @DIRS_TO_MAKE@
69
70all ::	$(DIRS_TO_MAKE)
71
72$(DIRS_TO_MAKE) :
73	mkdir $@
74
75preinstall :
76	@ echo ''
77	@ echo '** Configuration summary for NCURSES $(NCURSES_MAJOR).$(NCURSES_MINOR) $(NCURSES_PATCH):'
78	@ echo ''
79	@ echo '       extended funcs: '`test @NCURSES_EXT_FUNCS@ != 0 && echo yes || echo no`
80	@ echo '       xterm terminfo: '@WHICH_XTERM@
81	@ echo ''
82	@ echo '        bin directory: '$(bindir)
83	@ echo '        lib directory: '$(libdir)
84	@ echo '    include directory: '$(include_dir)
85	@ echo '        man directory: '$(mandir)
86@MAKE_TERMINFO@	@ echo '   terminfo directory: '$(ticdir)
87@USE_FALLBACKS@	@ echo '  using fallback-list: '@FALLBACK_LIST@
88@MAKE_PC_FILES@	@ echo ' pkg-config directory: '$(pkgdir)
89	@ echo ''
90	@ test "$(include_dir)" = "$(prefix)/include" || \
91		echo '** Include-directory is not in a standard location'
92	@ test ! -f $(include_dir)/termcap.h || \
93		fgrep NCURSES_VERSION $(include_dir)/termcap.h >/dev/null || \
94		echo '** Will overwrite non-ncurses termcap.h'
95	@ test ! -f $(include_dir)/curses.h || \
96		fgrep NCURSES_VERSION $(include_dir)/curses.h >/dev/null || \
97		echo '** Will overwrite non-ncurses curses.h'
98
99distclean \
100realclean ::
101
102check:
103	@ echo The test-programs are interactive
104
105
106# Put the common rules here so that we can easily construct the list of
107# directories to visit.
108all \
109clean \
110distclean \
111mostlyclean \
112realclean \
113depend \
114sources \
115tags \
116uninstall \
117install ::
118