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