1262685Sdelphij# $Id: Makefile.in,v 1.41 2013/08/03 23:10:51 tom Exp $ 250276Speter############################################################################## 3262685Sdelphij# Copyright (c) 1998-2010,2013 Free Software Foundation, Inc. # 450276Speter# # 550276Speter# Permission is hereby granted, free of charge, to any person obtaining a # 650276Speter# copy of this software and associated documentation files (the "Software"), # 750276Speter# to deal in the Software without restriction, including without limitation # 850276Speter# the rights to use, copy, modify, merge, publish, distribute, distribute # 950276Speter# with modifications, sublicense, and/or sell copies of the Software, and to # 1050276Speter# permit persons to whom the Software is furnished to do so, subject to the # 1150276Speter# following conditions: # 1250276Speter# # 1350276Speter# The above copyright notice and this permission notice shall be included in # 1450276Speter# all copies or substantial portions of the Software. # 1550276Speter# # 1650276Speter# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # 1750276Speter# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # 1850276Speter# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # 1950276Speter# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # 2050276Speter# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # 2150276Speter# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # 2250276Speter# DEALINGS IN THE SOFTWARE. # 2350276Speter# # 2450276Speter# Except as contained in this notice, the name(s) of the above copyright # 2550276Speter# holders shall not be used in advertising or otherwise to promote the sale, # 2650276Speter# use or other dealings in this Software without prior written # 2750276Speter# authorization. # 2850276Speter############################################################################## 2950276Speter# 3097049Speter# Author: Thomas E. Dickey 1996-2001 3150276Speter# 3250276Speter# Makefile for ncurses source code. 3350276Speter# 3450276Speter# This makes/installs ncurses include-files 3550276Speter# 3650276Speter# The variable 'srcdir' refers to the source-distribution, and can be set with 3750276Speter# the configure script by "--srcdir=DIR". 3850276Speter 3950276Speter# turn off _all_ suffix rules; we'll generate our own 4050276Speter.SUFFIXES: 4150276Speter 4250276SpeterSHELL = /bin/sh 43262629SdelphijVPATH = @srcdir@ 4450276SpeterTHIS = Makefile 4550276Speter 4666963SpeterDESTDIR = @DESTDIR@ 4750276Spetersrcdir = @srcdir@ 4850276Speterprefix = @prefix@ 4950276Speterexec_prefix = @exec_prefix@ 5050276Speterincludedir = @includedir@ 51262685Sdelphijincludesubdir = @includesubdir@ 5250276Speter 53262685SdelphijINCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir) 54262685Sdelphij 5550276SpeterINSTALL = @INSTALL@ 5650276SpeterINSTALL_DATA = @INSTALL_DATA@ 5750276Speter 5850276SpeterAWK = @AWK@ 5950276SpeterLN_S = @LN_S@ 6050276Speter 61262629SdelphijCTAGS = @CTAGS@ 62262629SdelphijETAGS = @ETAGS@ 63262629Sdelphij 6450276SpeterVERSION = @cf_cv_rel_version@ 6550276Speter 6697049Speter# The "Caps" file specifies the terminfo database format, as well as the list 6797049Speter# of function keys. 6897049SpeterTERMINFO_CAPS = $(srcdir)/@TERMINFO_CAPS@ 6997049Speter 7050276Speter# These files are generated by the configure script 7150276SpeterCONFIG_SRC = \ 7250276Speter MKterm.h.awk \ 7397049Speter curses.head \ 74262629Sdelphij ncurses_dll.h \ 7550276Speter termcap.h \ 7650276Speter unctrl.h 7750276Speter 7850276Speter# These files are generated by this makefile 7950276SpeterAUTO_SRC = \ 8097049Speter curses.h \ 8150276Speter hashsize.h \ 8266963Speter ncurses_def.h \ 8350276Speter parametrized.h \ 84262629Sdelphij config.h \ 8550276Speter term.h 8650276Speter 8750276Speter################################################################################ 8850276Speterall \ 8962449Speterlibs \ 9097049Speterdepend \ 9150276Spetersources \ 9250276Speterinstall :: $(AUTO_SRC) 9350276Speter 9497049Spetercurses.h : $(TERMINFO_CAPS) \ 9597049Speter curses.head \ 9697049Speter $(srcdir)/curses.tail \ 9797049Speter $(srcdir)/MKkey_defs.sh 9897049Speter cat curses.head >$@ 9997049Speter AWK=$(AWK) sh $(srcdir)/MKkey_defs.sh $(TERMINFO_CAPS) >>$@ 10097049Speter sh -c 'if test "@NCURSES_CH_T@" = "cchar_t" ; then cat $(srcdir)/curses.wide >>$@ ; fi' 10197049Speter cat $(srcdir)/curses.tail >>$@ 10297049Speter 10397049Speterterm.h: $(TERMINFO_CAPS) MKterm.h.awk 10497049Speter $(AWK) -f MKterm.h.awk $(TERMINFO_CAPS) > $@ 10550276Speter sh $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@ 10650276Speter 10797049Speterhashsize.h: $(TERMINFO_CAPS) $(srcdir)/MKhashsize.sh 10897049Speter sh $(srcdir)/MKhashsize.sh $(TERMINFO_CAPS) >$@ 10950276Speter 11066963Speterncurses_def.h: $(srcdir)/ncurses_defs $(srcdir)/MKncurses_def.sh 11166963Speter AWK=$(AWK) sh $(srcdir)/MKncurses_def.sh $(srcdir)/ncurses_defs >$@ 11266963Speter 11397049Speterparametrized.h: $(TERMINFO_CAPS) $(srcdir)/MKparametrized.sh 11497049Speter AWK=$(AWK) sh $(srcdir)/MKparametrized.sh $(TERMINFO_CAPS) >$@ 11550276Speter 116262629Sdelphij# This is required by pthread.h on MinGW 117262629Sdelphijconfig.h: 118262629Sdelphij touch $@ 119262629Sdelphij 12050276Spetertags: 121262629Sdelphij $(CTAGS) *.[ch] 12250276Speter 12366963Speter@MAKE_UPPER_TAGS@TAGS: 124262629Sdelphij@MAKE_UPPER_TAGS@ $(ETAGS) *.[ch] 12550276Speter 12650276Spetermostlyclean :: 12797049Speter -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace 12850276Speter 12950276Speterclean :: mostlyclean 13050276Speter -rm -f $(AUTO_SRC) 13150276Speter 13250276Speterdistclean :: clean 133262629Sdelphij -rm -f Makefile $(CONFIG_SRC) config.h 13450276Speter 13550276Speterrealclean :: distclean 13650276Speter 13750276Speter############################################################################### 13850276Speter# The remainder of this file is automatically generated during configuration 13950276Speter############################################################################### 140