# Generated automatically from Makefile.in by configure.
# $Id: Makefile.in,v 1.13 1996/06/15 20:40:58 tom Exp $
################################################################################
# Copyright 1996 by Thomas E. Dickey <dickey@clark.net>                        #
# All Rights Reserved.                                                         #
#                                                                              #
# Permission to use, copy, modify, and distribute this software and its        #
# documentation for any purpose and without fee is hereby granted, provided    #
# that the above copyright notice appear in all copies and that both that      #
# copyright notice and this permission notice appear in supporting             #
# documentation, and that the name of the above listed copyright holder(s) not #
# be used in advertising or publicity pertaining to distribution of the        #
# software without specific, written prior permission. THE ABOVE LISTED        #
# COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,    #
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT #
# SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY SPECIAL,        #
# INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM   #
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE   #
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR    #
# PERFORMANCE OF THIS SOFTWARE.                                                #
################################################################################
# Makefile for ncurses source code.
#
# This makes/installs ncurses include-files
#
# The variable 'srcdir' refers to the source-distribution, and can be set with
# the configure script by "--srcdir=DIR".

# turn off _all_ suffix rules; we'll generate our own
.SUFFIXES:

SHELL		= /bin/sh
THIS		= Makefile

INSTALL_PREFIX	= 
srcdir		= .
prefix		= /boot
exec_prefix	= ${prefix}
includedir	= ${prefix}/include

INSTALL		= /bin/install -c
INSTALL_DATA	= ${INSTALL} -m 644

AWK		= gawk

VERSION		= 1.9.9g
BUILTIN_BOOL	= 1
TYPE_OF_BOOL	= unsigned char

AUTO_SRC = \
	MKterm.h.awk \
	curses.h \
	termcap.h \
	hashsize.h \
	parametrized.h \
	unctrl.h \
	term.h

################################################################################
all ::	$(AUTO_SRC)

# These productions arrange for the files with embedded version numbers to be
# rebuilt whenever the source tree is re-configured (which will make Makefile
# newer than their ancestors). 
MKterm.h.awk: $(srcdir)/MKterm.h.awk.in Makefile
	-@rm -f $@
	sed <$(srcdir)/$@.in >$@ -e "/@VERSION@/s//$(VERSION)/"

curses.h: $(srcdir)/MKcurses.sh $(srcdir)/curses.h.in Makefile
	-@rm -f $@
	sh $(srcdir)/MKcurses.sh $(VERSION) $(BUILTIN_BOOL) "$(TYPE_OF_BOOL)" $(srcdir)

termcap.h: $(srcdir)/termcap.h.in Makefile
	-@rm -f $@
	sed <$(srcdir)/$@.in >$@ -e "/@VERSION@/s//$(VERSION)/"

unctrl.h: $(srcdir)/unctrl.h.in Makefile
	-@rm -f $@
	sed <$(srcdir)/$@.in >$@ -e "/@VERSION@/s//$(VERSION)/"

term.h: $(srcdir)/Caps MKterm.h.awk
	$(AWK) -f MKterm.h.awk $(srcdir)/Caps > $@
	sh $(srcdir)/edit_cfg.sh ../include/config.h $@

hashsize.h: $(srcdir)/Caps $(srcdir)/MKhashsize.sh
	sh $(srcdir)/MKhashsize.sh $(srcdir)/Caps >$@

parametrized.h: $(srcdir)/Caps $(srcdir)/MKparametrized.sh
	sh $(srcdir)/MKparametrized.sh $(srcdir)/Caps >$@

tags:
	ctags *.[ch]

TAGS:
	etags *.[ch]

clean ::
	-rm -f tags TAGS *~
	-rm -f $(AUTO_SRC)

distclean :: clean
	-rm -f Makefile \
	`if test X"${srcdir}" != X".";then echo curses.h;fi`

mostlyclean :: clean

realclean :: distclean

###############################################################################
# The remainder of this file is automatically generated during configuration
###############################################################################
$(INSTALL_PREFIX)$(includedir) :
	$(srcdir)/../mkinstalldirs $@

install \
install.libs \
install.includes :: $(INSTALL_PREFIX)$(includedir)
	@ ../headers.sh $(INSTALL_DATA) $(INSTALL_PREFIX)$(includedir) $(srcdir) term.h
	@ ../headers.sh $(INSTALL_DATA) $(INSTALL_PREFIX)$(includedir) $(srcdir) curses.h
	@ ../headers.sh $(INSTALL_DATA) $(INSTALL_PREFIX)$(includedir) $(srcdir) unctrl.h
	@ ../headers.sh $(INSTALL_DATA) $(INSTALL_PREFIX)$(includedir) $(srcdir) termcap.h
