head	1.25;
access;
symbols
	netbsd-11-0-RC4:1.24
	netbsd-11-0-RC3:1.24
	netbsd-11-0-RC2:1.24
	netbsd-11-0-RC1:1.24
	perseant-exfatfs-base-20250801:1.24
	netbsd-11:1.24.0.4
	netbsd-11-base:1.24
	netbsd-10-1-RELEASE:1.23
	perseant-exfatfs-base-20240630:1.24
	perseant-exfatfs:1.24.0.2
	perseant-exfatfs-base:1.24
	netbsd-8-3-RELEASE:1.22
	netbsd-9-4-RELEASE:1.22
	netbsd-10-0-RELEASE:1.23
	netbsd-10-0-RC6:1.23
	netbsd-10-0-RC5:1.23
	netbsd-10-0-RC4:1.23
	netbsd-10-0-RC3:1.23
	netbsd-10-0-RC2:1.23
	netbsd-10-0-RC1:1.23
	netbsd-10:1.23.0.6
	netbsd-10-base:1.23
	netbsd-9-3-RELEASE:1.22
	cjep_sun2x-base1:1.23
	cjep_sun2x:1.23.0.4
	cjep_sun2x-base:1.23
	cjep_staticlib_x-base1:1.23
	netbsd-9-2-RELEASE:1.22
	cjep_staticlib_x:1.23.0.2
	cjep_staticlib_x-base:1.23
	netbsd-9-1-RELEASE:1.22
	phil-wifi-20200421:1.23
	phil-wifi-20200411:1.23
	is-mlppp:1.22.0.36
	is-mlppp-base:1.22
	phil-wifi-20200406:1.23
	netbsd-8-2-RELEASE:1.22
	netbsd-9-0-RELEASE:1.22
	netbsd-9-0-RC2:1.22
	netbsd-9-0-RC1:1.22
	phil-wifi-20191119:1.22
	netbsd-9:1.22.0.34
	netbsd-9-base:1.22
	phil-wifi-20190609:1.22
	netbsd-8-1-RELEASE:1.22
	netbsd-8-1-RC1:1.22
	pgoyette-compat-merge-20190127:1.22
	pgoyette-compat-20190127:1.22
	pgoyette-compat-20190118:1.22
	pgoyette-compat-1226:1.22
	pgoyette-compat-1126:1.22
	pgoyette-compat-1020:1.22
	pgoyette-compat-0930:1.22
	pgoyette-compat-0906:1.22
	netbsd-7-2-RELEASE:1.22
	pgoyette-compat-0728:1.22
	netbsd-8-0-RELEASE:1.22
	phil-wifi:1.22.0.32
	phil-wifi-base:1.22
	pgoyette-compat-0625:1.22
	netbsd-8-0-RC2:1.22
	pgoyette-compat-0521:1.22
	pgoyette-compat-0502:1.22
	pgoyette-compat-0422:1.22
	netbsd-8-0-RC1:1.22
	pgoyette-compat-0415:1.22
	pgoyette-compat-0407:1.22
	pgoyette-compat-0330:1.22
	pgoyette-compat-0322:1.22
	pgoyette-compat-0315:1.22
	netbsd-7-1-2-RELEASE:1.22
	pgoyette-compat:1.22.0.30
	pgoyette-compat-base:1.22
	netbsd-7-1-1-RELEASE:1.22
	matt-nb8-mediatek:1.22.0.28
	matt-nb8-mediatek-base:1.22
	perseant-stdc-iso10646:1.22.0.26
	perseant-stdc-iso10646-base:1.22
	netbsd-8:1.22.0.24
	netbsd-8-base:1.22
	prg-localcount2-base3:1.22
	prg-localcount2-base2:1.22
	prg-localcount2-base1:1.22
	prg-localcount2:1.22.0.22
	prg-localcount2-base:1.22
	pgoyette-localcount-20170426:1.22
	bouyer-socketcan-base1:1.22
	pgoyette-localcount-20170320:1.22
	netbsd-7-1:1.22.0.20
	netbsd-7-1-RELEASE:1.22
	netbsd-7-1-RC2:1.22
	netbsd-7-nhusb-base-20170116:1.22
	bouyer-socketcan:1.22.0.18
	bouyer-socketcan-base:1.22
	pgoyette-localcount-20170107:1.22
	netbsd-7-1-RC1:1.22
	pgoyette-localcount-20161104:1.22
	netbsd-7-0-2-RELEASE:1.22
	localcount-20160914:1.22
	netbsd-7-nhusb:1.22.0.16
	netbsd-7-nhusb-base:1.22
	pgoyette-localcount-20160806:1.22
	pgoyette-localcount-20160726:1.22
	pgoyette-localcount:1.22.0.14
	pgoyette-localcount-base:1.22
	netbsd-7-0-1-RELEASE:1.22
	netbsd-7-0:1.22.0.12
	netbsd-7-0-RELEASE:1.22
	netbsd-7-0-RC3:1.22
	netbsd-7-0-RC2:1.22
	netbsd-7-0-RC1:1.22
	netbsd-6-0-6-RELEASE:1.21
	netbsd-6-1-5-RELEASE:1.21
	netbsd-7:1.22.0.10
	netbsd-7-base:1.22
	yamt-pagecache-base9:1.22
	yamt-pagecache-tag8:1.18.2.2
	netbsd-6-1-4-RELEASE:1.21
	netbsd-6-0-5-RELEASE:1.21
	tls-earlyentropy:1.22.0.8
	tls-earlyentropy-base:1.22
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.22
	riastradh-drm2-base3:1.22
	netbsd-6-1-3-RELEASE:1.21
	netbsd-6-0-4-RELEASE:1.21
	netbsd-6-1-2-RELEASE:1.21
	netbsd-6-0-3-RELEASE:1.21
	netbsd-6-1-1-RELEASE:1.21
	riastradh-drm2-base2:1.22
	riastradh-drm2-base1:1.22
	riastradh-drm2:1.22.0.4
	riastradh-drm2-base:1.22
	netbsd-6-1:1.21.0.8
	netbsd-6-0-2-RELEASE:1.21
	netbsd-6-1-RELEASE:1.21
	netbsd-6-1-RC4:1.21
	netbsd-6-1-RC3:1.21
	agc-symver:1.22.0.6
	agc-symver-base:1.22
	netbsd-6-1-RC2:1.21
	netbsd-6-1-RC1:1.21
	yamt-pagecache-base8:1.22
	netbsd-6-0-1-RELEASE:1.21
	yamt-pagecache-base7:1.22
	matt-nb6-plus-nbase:1.21
	yamt-pagecache-base6:1.22
	netbsd-6-0:1.21.0.6
	netbsd-6-0-RELEASE:1.21
	netbsd-6-0-RC2:1.21
	tls-maxphys:1.22.0.2
	tls-maxphys-base:1.22
	matt-nb6-plus:1.21.0.4
	matt-nb6-plus-base:1.21
	netbsd-6-0-RC1:1.21
	yamt-pagecache-base5:1.22
	yamt-pagecache-base4:1.22
	netbsd-6:1.21.0.2
	netbsd-6-base:1.21
	yamt-pagecache-base3:1.21
	yamt-pagecache-base2:1.21
	yamt-pagecache:1.18.0.2
	yamt-pagecache-base:1.18
	cherry-xenmp:1.12.0.4
	cherry-xenmp-base:1.12
	bouyer-quota2-nbase:1.12
	bouyer-quota2:1.12.0.2
	bouyer-quota2-base:1.12
	matt-mips64-premerge-20101231:1.12;
locks; strict;
comment	@# @;


1.25
date	2025.09.18.03.36.00;	author mrg;	state Exp;
branches;
next	1.24;
commitid	RQc1sc69acbZ59bG;

1.24
date	2024.05.20.09.48.42;	author martin;	state Exp;
branches;
next	1.23;
commitid	eoXqfdKjsDvQMIaF;

1.23
date	2020.04.05.12.31.02;	author roy;	state Exp;
branches;
next	1.22;
commitid	jWhCeg5FHIh65c3C;

1.22
date	2012.03.21.05.37.44;	author matt;	state Exp;
branches
	1.22.32.1;
next	1.21;

1.21
date	2011.11.03.07.19.39;	author joerg;	state Exp;
branches;
next	1.20;

1.20
date	2011.11.02.20.39.41;	author yamt;	state Exp;
branches;
next	1.19;

1.19
date	2011.11.02.17.48.53;	author christos;	state Exp;
branches;
next	1.18;

1.18
date	2011.11.02.12.09.25;	author roy;	state Exp;
branches
	1.18.2.1;
next	1.17;

1.17
date	2011.10.04.11.01.14;	author roy;	state Exp;
branches;
next	1.16;

1.16
date	2011.10.03.13.10.58;	author roy;	state Exp;
branches;
next	1.15;

1.15
date	2011.10.03.12.31.51;	author roy;	state Exp;
branches;
next	1.14;

1.14
date	2011.10.02.19.24.25;	author roy;	state Exp;
branches;
next	1.13;

1.13
date	2011.08.16.10.36.30;	author christos;	state Exp;
branches;
next	1.12;

1.12
date	2010.07.06.05.59.53;	author mrg;	state Exp;
branches;
next	1.11;

1.11
date	2010.02.22.23.05.39;	author roy;	state Exp;
branches;
next	1.10;

1.10
date	2010.02.19.13.53.17;	author njoly;	state Exp;
branches;
next	1.9;

1.9
date	2010.02.12.12.18.33;	author roy;	state Exp;
branches;
next	1.8;

1.8
date	2010.02.11.14.49.56;	author roy;	state Exp;
branches;
next	1.7;

1.7
date	2010.02.11.14.44.44;	author roy;	state Exp;
branches;
next	1.6;

1.6
date	2010.02.11.13.11.47;	author roy;	state Exp;
branches;
next	1.5;

1.5
date	2010.02.11.00.27.09;	author roy;	state Exp;
branches;
next	1.4;

1.4
date	2010.02.09.22.16.12;	author roy;	state Exp;
branches;
next	1.3;

1.3
date	2010.02.03.20.56.54;	author roy;	state Exp;
branches;
next	1.2;

1.2
date	2010.02.03.16.13.14;	author roy;	state Exp;
branches;
next	1.1;

1.1
date	2010.02.03.15.16.32;	author roy;	state Exp;
branches;
next	;

1.22.32.1
date	2020.04.08.14.07.16;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.18.2.1
date	2011.11.10.14.31.37;	author yamt;	state Exp;
branches;
next	1.18.2.2;

1.18.2.2
date	2012.04.17.00.05.33;	author yamt;	state Exp;
branches;
next	;


desc
@@


1.25
log
@introduce a couple of new turn-off-gcc-warning variables and use them.

GCC 14 has a new annoying calloc() checker that we turn off in a bunch
of places, and there are a few more dangling-pointer issuse that come up,
but seem bogus.
@
text
@#	$NetBSD: Makefile,v 1.24 2024/05/20 09:48:42 martin Exp $

.include <bsd.own.mk>

USE_SHLIBDIR=	yes

LIB=		terminfo
WARNS?=		5

CPPFLAGS+=	-I${.CURDIR}

SRCS=		term.c ti.c setupterm.c curterm.c tparm.c tputs.c
SRCS+=		hash.c
INCS=		term.h
INCSDIR=	/usr/include

# For ramdisks there is no database to read from so remove compat
# and the need to read from them.
# While here, remove the ability to compile terminfo descriptions
# from $TERMINFO as well.
# This means the library requires any terminal needed built into it.
.if !defined(SMALLPROG)
CPPFLAGS+=	-DTERMINFO_COMPILE -DTERMINFO_DB -DTERMINFO_COMPAT
SRCS+=		compile.c

COPTS.compile.c+=	${CC_WNO_CALLOC_TRANSPOSED_ARGS}
.endif

COPTS.tparm.c+=		-Wno-format-nonliteral

MAN=		terminfo.3 terminfo.5
MLINKS=		terminfo.3 setupterm.3 \
		terminfo.3 set_curterm.3 terminfo.3 del_curterm.3 \
		terminfo.3 termname.3 terminfo.3 longname.3 \
		terminfo.3 tigetnum.3 terminfo.3 tigetflag.3 \
		terminfo.3 tigetstr.3 terminfo.3 tparm.3 terminfo.3 tputs.3 \
		terminfo.3 putp.3 \
		terminfo.3 ti_setupterm.3 terminfo.3 ti_getflag.3 \
		terminfo.3 ti_getnum.3 terminfo.3 ti_getstr.3 \
		terminfo.3 tiparm.3 terminfo.3 ti_tiparm.3 \
		terminfo.3 ti_puts.3 terminfo.3 ti_putp.3

# Build in termcap emulation
SRCS+=		termcap.c
INCS+=		termcap.h
MAN+=		termcap.3
MLINKS+=	termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
		termcap.3 tgetstr.3 termcap.3 tgoto.3

CPPFLAGS+=	-I${.OBJDIR}

.include "Makefile.hash"

# Generate our man pages
terminfo.5: genman terminfo.5.in term.h termcap_map.c
		@@echo "Generating terminfo man pages"
		${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}

CLEANFILES+=	terminfo.5

man: terminfo.5

.include <bsd.shlib.mk>

.if ${MKLINKLIB} != "no"
SYMLINKS+=	libterminfo.a ${LIBDIR}/libtermcap.a
SYMLINKS+=	libterminfo.a ${LIBDIR}/libtermlib.a
.endif

.if ${MKPROFILE} != "no"
SYMLINKS+=	libterminfo_p.a ${LIBDIR}/libtermcap_p.a
SYMLINKS+=	libterminfo_p.a ${LIBDIR}/libtermlib_p.a
.endif

.if ${MKPIC} != "no"

.if ${MKPICINSTALL} != "no"
SYMLINKS+=	libterminfo_pic.a ${LIBDIR}/libtermcap_pic.a
SYMLINKS+=	libterminfo_pic.a ${LIBDIR}/libtermlib_pic.a
.endif

.if exists(${.CURDIR}/shlib_version)
SYMLINKS+=	libterminfo.so.${SHLIB_FULLVERSION} \
		${_LIBSODIR}/libtermcap.so.0.6
SYMLINKS+=	libterminfo.so.${SHLIB_FULLVERSION} \
		${_LIBSODIR}/libtermlib.so.0.6
.if ${_LIBSODIR} != ${LIBDIR}
SYMLINKS+=	libterminfo.so.${SHLIB_FULLVERSION} \
		${LIBDIR}/libtermcap.so.0.6
SYMLINKS+=	libterminfo.so.${SHLIB_FULLVERSION} \
		${LIBDIR}/libtermlib.so.0.6
.endif

SYMLINKS+=	libterminfo.so.${SHLIB_MAJOR} \
		${_LIBSODIR}/libtermcap.so.0
SYMLINKS+=	libterminfo.so ${_LIBSODIR}/libtermcap.so
SYMLINKS+=	libterminfo.so.${SHLIB_MAJOR} \
		${_LIBSODIR}/libtermlib.so.0
SYMLINKS+=	libterminfo.so ${_LIBSODIR}/libtermlib.so
.if ${_LIBSODIR} != ${LIBDIR}
SYMLINKS+=	libterminfo.so.${SHLIB_MAJOR} \
		${LIBDIR}/libtermcap.so.0
SYMLINKS+=	libterminfo.so ${LIBDIR}/libtermcap.so
SYMLINKS+=	libterminfo.so.${SHLIB_MAJOR} \
		${LIBDIR}/libtermlib.so.0
SYMLINKS+=	libterminfo.so ${LIBDIR}/libtermlib.so
.endif
.endif	# exists shlib_version

.endif	# ${MKPIC} != "no"

.include <bsd.lib.mk>
@


1.24
log
@Use double quotes to include the local ./Makefile.hash
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2020/04/05 12:31:02 roy Exp $
d25 2
d29 1
a29 1
COPTS.tparm.c = -Wno-format-nonliteral
@


1.23
log
@terminfo: Add guards to optionally build parts of libterminfo

Reading from a database is now optional.
Compiling terminfo descriptions (including from $TERMINFO) is now optional.
Compat support is now optional.

This removes 17k on amd64 from the binary size, which allows it to be used
again on space constrained ramdisks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2012/03/21 05:37:44 matt Exp $
d50 1
a50 1
.include <Makefile.hash>
@


1.22
log
@These directories default to WARNS?=5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2011/11/03 07:19:39 joerg Exp $
d13 1
a13 1
SRCS+=		compile.c hash.c
d17 10
@


1.22.32.1
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
d13 1
a13 1
SRCS+=		hash.c
a16 10
# For ramdisks there is no database to read from so remove compat
# and the need to read from them.
# While here, remove the ability to compile terminfo descriptions
# from $TERMINFO as well.
# This means the library requires any terminal needed built into it.
.if !defined(SMALLPROG)
CPPFLAGS+=	-DTERMINFO_COMPILE -DTERMINFO_DB -DTERMINFO_COMPAT
SRCS+=		compile.c
.endif

@


1.21
log
@Fix dependencies on generated files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2011/11/02 20:39:41 yamt Exp $
d8 1
a8 1
WARNS=		4
@


1.20
log
@use the tools version of utilities for other scripts, too
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2011/11/02 17:48:53 christos Exp $
a41 4
term.c: compiled_terms.c

termcap.c: termcap_hash.c

@


1.19
log
@Separate the generators out, so that they can be re-used by tools, and
don't play games with curdir/objdir.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2011/11/02 12:09:25 roy Exp $
d47 1
a47 1
terminfo.5: terminfo.5.in term.h termcap_map.c
d49 1
a49 1
		cd ${.CURDIR} && ${HOST_SH} ./genman >${.OBJDIR}/$@@
@


1.18
log
@Now that nbperf can generate the same file using the -p option,
there is no longer a need to store these files in CVS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2011/10/04 11:01:14 roy Exp $
d40 1
a40 16
# Generate our string and hash tables
hash.c: genhash term.h
		@@echo "Generating terminfo hash"
		cd ${.CURDIR} && ${HOST_SH} ./genhash >${.OBJDIR}/$@@

termcap_hash.c: genthash term.h
		@@echo "Generating termcap hash"
		cd ${.CURDIR} && ${HOST_SH} ./genthash >${.OBJDIR}/$@@


# Allow terminfo descriptions to be compiled into libterminfo
compiled_terms.c: genterms term.h ${NETBSDSRCDIR}/share/terminfo/terminfo
		@@echo "Generating compiled terminfo descriptions"
		cd ${.CURDIR} && ${HOST_SH} ./genterms >${.OBJDIR}/$@@

CLEANFILES+=	hash.c termcap_hash.c compiled_terms.c
@


1.18.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2011/11/02 12:09:25 roy Exp $
d40 20
a59 1
.include <Makefile.hash>
d62 1
a62 1
terminfo.5: genman terminfo.5.in term.h termcap_map.c
d64 1
a64 1
		${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
@


1.18.2.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18.2.1 2011/11/10 14:31:37 yamt Exp $
d8 1
a8 1
WARNS?=		5
@


1.17
log
@Move longname(3) from curses to terminfo, pre-cursor to fix PR/43386.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.16 2011/10/03 13:10:58 roy Exp $
d17 2
d38 2
d41 1
a41 1
hash:
d43 3
a45 1
		cd ${.CURDIR} && ${HOST_SH} ./genhash >hash.c
d47 13
a59 1
		cd ${.CURDIR} && ${HOST_SH} ./genthash >termcap_hash.c
a67 6
# Allow terminfo descriptions to be compiled into libterminfo
compiled_terms:
		@@echo "Generating compiled terminfo descriptions"
		cd ${.CURDIR} && ${HOST_SH} ./genterms >compiled_terms.c

COPTS.tparm.c = -Wno-format-nonliteral
a69 3
gen: hash compiled_terms man

.include <bsd.own.mk>
@


1.16
log
@Install correct man page links.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2011/10/03 12:31:51 roy Exp $
d18 1
a18 1
		terminfo.3 termname.3 \
@


1.15
log
@Correctly use ti_ instead of t_ for our extensions as per the man page.
Replace vtparm with tiparm.
tiparm is also non standard, but has been proposed at least.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2011/10/02 19:24:25 roy Exp $
d24 1
a24 1
		terminfo.3 t_parm.3 terminfo.3 t_tiparm.3 \
@


1.14
log
@Add termname(3) as defined by POSIX.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2011/08/16 10:36:30 christos Exp $
d24 1
a24 1
		terminfo.3 t_parm.3 terminfo.3 t_vparm.3 \
@


1.13
log
@document non-literal format strings
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2010/07/06 05:59:53 mrg Exp $
d18 1
@


1.12
log
@remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2010/02/22 23:05:39 roy Exp $
d52 1
@


1.11
log
@libterminfo can now compile a single terminfo description which allows
$TERMINFO to be a terminfo description as well as a file reference.

This enables the user to modify the terminfo description on read-only
media.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2010/02/19 13:53:17 njoly Exp $
a87 1
.if (${OBJECT_FMT} == "ELF")
d96 1
a96 1
	${LIBDIR}/libtermcap.so.0
a101 1
.endif
@


1.10
log
@Do clean generated terminfo.5 file.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2010/02/12 12:18:33 roy Exp $
d11 1
a11 1
SRCS+=		hash.c
@


1.9
log
@Store the generated compiled terminfo descriptions so that we can build
a consistent library just from source.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2010/02/11 14:49:56 roy Exp $
d45 2
@


1.8
log
@Include xterm.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2010/02/11 14:44:44 roy Exp $
d8 1
a8 1
CPPFLAGS+=	-I${.CURDIR} -I${.OBJDIR}
a14 8
.PHONY:	rescue.c

rescue.c:
		${TOOL_TIC} -Sx ${NETBSDSRCDIR}/share/terminfo/terminfo \
		    ansi dumb vt100 vt220 wsvt25 xterm >$@@

term.c: rescue.c

d45 5
d52 1
a52 1
gen: hash man
@


1.7
log
@Use $TOOL_TIC
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2010/02/11 13:11:47 roy Exp $
d19 1
a19 1
		    ansi dumb vt100 vt220 wsvt25 >$@@
@


1.6
log
@Use structures so we know how long each description is.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2010/02/11 00:27:09 roy Exp $
d18 1
a18 1
		tic -Sx ${NETBSDSRCDIR}/share/terminfo/terminfo \
@


1.5
log
@Embed ansi, dumb, vt100, vt220 and wsvt25 compiled terminal descriptions
into libterminfo.
Constify some foo.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2010/02/09 22:16:12 roy Exp $
d15 1
a15 1
.include <bsd.own.mk>
d17 3
a19 7
rescue.c: ${NETBSDSRCDIR}/share/terminfo/terminfo
		@@echo "static const char *rescue_terms[] = {" >$@@
		${TOOL_TIC} -Sx ${NETBSDSRCDIR}/share/terminfo/terminfo \
		    ansi dumb vt100 vt220 wsvt25 >>$@@
		@@echo "	NULL," >>$@@
		@@echo "	NULL" >>$@@
		@@echo "};" >>$@@
d57 1
@


1.4
log
@We should always generate terminfo.5 to save human error syncing.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2010/02/03 20:56:54 roy Exp $
d8 1
a8 1
CPPFLAGS+=	-I${.CURDIR}
d15 12
a60 1
.include <bsd.own.mk>
@


1.3
log
@Store our generated files in CVS and remove nbperf from the toolchain.
This allows us to build consistent libs without an ever changing hash.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2010/02/03 16:13:14 roy Exp $
d41 1
a41 1
man:
d43 3
a45 1
		cd ${.CURDIR} && ${HOST_SH} ./genman >terminfo.5
@


1.2
log
@Use $HOST_SH instead of calling directly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2010/02/03 15:16:32 roy Exp $
d8 2
a14 13
LIBTIDIR?=	${.CURDIR}
CPPFLAGS+=	-I${LIBTIDIR}

# Generate our string and hash tables
hash.c: genhash term.h
		@@echo "Generating terminfo hash"
		cd ${LIBTIDIR} && ${HOST_SH} ./genhash >${.OBJDIR}/$@@

# Update our man page with terminfo long names, short names and termcaps
terminfo.5: genman terminfo.5.in term.h termcap.c
		@@echo "Generating terminfo man pages"
		cd ${LIBTIDIR} && ${HOST_SH} ./genman >${.OBJDIR}/$@@

a15 1
CLEANFILES+=	terminfo.5 hash.c
a28 1
CPPFLAGS+=	-I${.OBJDIR}
a29 1
CLEANFILES+=	_termcap.c termcap_hash.c
d34 3
a36 1
termcap_hash.c:	genthash termcap_map.c
d38 6
a43 1
		cd ${LIBTIDIR} && ${HOST_SH} ./genthash >${.OBJDIR}/$@@
d45 1
a45 2
# Depend on our hash table
termcap.c:	termcap_hash.c
@


1.1
log
@Import my terminfo implementation.
This uses the ncurses terminal definitions.

OK: core@@, jdc@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2005/05/15 21:11:13 christos Exp $
d19 1
a19 1
		cd ${LIBTIDIR}; ./genhash >${.OBJDIR}/$@@
d24 1
a24 1
		cd ${LIBTIDIR}; ./genman >${.OBJDIR}/$@@
d50 1
a50 1
		cd ${LIBTIDIR}; ./genthash >${.OBJDIR}/$@@
@

