Makefile.hash revision 1.6
11.6Sjoerg# $NetBSD: Makefile.hash,v 1.6 2012/08/20 15:44:02 joerg Exp $ 21.3Syamt 31.3SyamtSCRIPT_ENV= \ 41.3Syamt TOOL_AWK=${TOOL_AWK:Q} \ 51.3Syamt TOOL_NBPERF=${TOOL_NBPERF:Q} \ 61.3Syamt TOOL_SED=${TOOL_SED:Q} \ 71.3Syamt TOOL_SORT=${TOOL_SORT:Q} \ 81.3Syamt TOOL_TIC=${TOOL_TIC:Q} 91.1Schristos 101.1SchristosPARSEDIR:=${.PARSEDIR} 111.1Schristos# Generate our string and hash tables 121.1Schristoshash.c: genhash term.h 131.1Schristos @echo "Generating terminfo hash" 141.3Syamt ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET} 151.1Schristos 161.1Schristostermcap_hash.c: genthash termcap_map.c 171.1Schristos @echo "Generating termcap hash" 181.3Syamt ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET} 191.1Schristos 201.1Schristos# Allow terminfo descriptions to be compiled into libterminfo 211.1Schristoscompiled_terms.c: genterms term.h ${NETBSDSRCDIR}/share/terminfo/terminfo 221.1Schristos @echo "Generating compiled terminfo descriptions" 231.3Syamt ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET} 241.1Schristos 251.6Sjoerg.if ${USETOOLS} == "yes" 261.5Sjoergcompiled_terms.c: ${TOOL_TIC} 271.6Sjoerg.endif 281.5Sjoerg 291.4SjoergDPSRCS+= hash.c termcap_hash.c compiled_terms.c 301.4Sjoerg 311.1SchristosCLEANFILES+= hash.c termcap_hash.c compiled_terms.c 32