2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile.hash,v 1.7 2013/01/24 14:17:40 roy Exp $
|
2012-12-04 11:42:24 +01:00
|
|
|
|
|
|
|
SCRIPT_ENV= \
|
2013-12-06 12:04:52 +01:00
|
|
|
NETBSDSRCDIR=${NETBSDSRCDIR:Q} \
|
2012-12-04 11:42:24 +01:00
|
|
|
TOOL_AWK=${TOOL_AWK:Q} \
|
|
|
|
TOOL_NBPERF=${TOOL_NBPERF:Q} \
|
|
|
|
TOOL_SED=${TOOL_SED:Q} \
|
|
|
|
TOOL_SORT=${TOOL_SORT:Q} \
|
2013-12-06 12:04:52 +01:00
|
|
|
TOOL_TIC=${TOOL_TIC:Q}
|
2012-12-04 11:42:24 +01:00
|
|
|
|
|
|
|
PARSEDIR:=${.PARSEDIR}
|
|
|
|
# Generate our string and hash tables
|
|
|
|
hash.c: genhash term.h
|
|
|
|
@echo "Generating terminfo hash"
|
|
|
|
${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
termcap_hash.c: genthash termcap_map.c
|
|
|
|
@echo "Generating termcap hash"
|
|
|
|
${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
# Allow terminfo descriptions to be compiled into libterminfo
|
|
|
|
compiled_terms.c: genterms term.h ${NETBSDSRCDIR}/share/terminfo/terminfo
|
|
|
|
@echo "Generating compiled terminfo descriptions"
|
|
|
|
${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
.if ${USETOOLS} == "yes"
|
|
|
|
compiled_terms.c: ${TOOL_TIC}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DPSRCS+= hash.c termcap_hash.c compiled_terms.c
|
|
|
|
|
|
|
|
CLEANFILES+= hash.c termcap_hash.c compiled_terms.c
|