Makefile.hash revision 1.7
11.7Sroy# $NetBSD: Makefile.hash,v 1.7 2013/01/24 14:17:40 roy Exp $ 21.3Syamt 31.3SyamtSCRIPT_ENV= \ 41.7Sroy NETBSDSRCDIR=${NETBSDSRCDIR:Q} \ 51.3Syamt TOOL_AWK=${TOOL_AWK:Q} \ 61.3Syamt TOOL_NBPERF=${TOOL_NBPERF:Q} \ 71.3Syamt TOOL_SED=${TOOL_SED:Q} \ 81.3Syamt TOOL_SORT=${TOOL_SORT:Q} \ 91.3Syamt TOOL_TIC=${TOOL_TIC:Q} 101.1Schristos 111.1SchristosPARSEDIR:=${.PARSEDIR} 121.1Schristos# Generate our string and hash tables 131.1Schristoshash.c: genhash term.h 141.1Schristos @echo "Generating terminfo hash" 151.3Syamt ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET} 161.1Schristos 171.1Schristostermcap_hash.c: genthash termcap_map.c 181.1Schristos @echo "Generating termcap hash" 191.3Syamt ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET} 201.1Schristos 211.1Schristos# Allow terminfo descriptions to be compiled into libterminfo 221.1Schristoscompiled_terms.c: genterms term.h ${NETBSDSRCDIR}/share/terminfo/terminfo 231.1Schristos @echo "Generating compiled terminfo descriptions" 241.3Syamt ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET} 251.1Schristos 261.6Sjoerg.if ${USETOOLS} == "yes" 271.5Sjoergcompiled_terms.c: ${TOOL_TIC} 281.6Sjoerg.endif 291.5Sjoerg 301.4SjoergDPSRCS+= hash.c termcap_hash.c compiled_terms.c 311.4Sjoerg 321.1SchristosCLEANFILES+= hash.c termcap_hash.c compiled_terms.c 33