1 # $NetBSD: Makefile.hash,v 1.6 2012/08/20 15:44:02 joerg Exp $
4 TOOL_AWK=${TOOL_AWK:Q} \
5 TOOL_NBPERF=${TOOL_NBPERF:Q} \
6 TOOL_SED=${TOOL_SED:Q} \
7 TOOL_SORT=${TOOL_SORT:Q} \
8 TOOL_TIC=${TOOL_TIC:Q} \
9 TERMINFO=${NETBSDSRCDIR}/share/terminfo/terminfo
11 PARSEDIR:=${.PARSEDIR}
12 # Generate our string and hash tables
13 hash.c: genhash term.h
14 @echo "Generating terminfo hash"
15 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
17 termcap_hash.c: genthash termcap_map.c
18 @echo "Generating termcap hash"
19 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
21 # Allow terminfo descriptions to be compiled into libterminfo
22 compiled_terms.c: genterms term.h ${NETBSDSRCDIR}/share/terminfo/terminfo
23 @echo "Generating compiled terminfo descriptions"
24 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
26 .if ${USETOOLS} == "yes"
27 compiled_terms.c: ${TOOL_TIC}
30 DPSRCS+= hash.c termcap_hash.c compiled_terms.c
32 CLEANFILES+= hash.c termcap_hash.c compiled_terms.c