Makefile.hash revision 1.6
1# $NetBSD: Makefile.hash,v 1.6 2012/08/20 15:44:02 joerg Exp $ 2 3SCRIPT_ENV= \ 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 10PARSEDIR:=${.PARSEDIR} 11# Generate our string and hash tables 12hash.c: genhash term.h 13 @echo "Generating terminfo hash" 14 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET} 15 16termcap_hash.c: genthash termcap_map.c 17 @echo "Generating termcap hash" 18 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET} 19 20# Allow terminfo descriptions to be compiled into libterminfo 21compiled_terms.c: genterms term.h ${NETBSDSRCDIR}/share/terminfo/terminfo 22 @echo "Generating compiled terminfo descriptions" 23 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET} 24 25.if ${USETOOLS} == "yes" 26compiled_terms.c: ${TOOL_TIC} 27.endif 28 29DPSRCS+= hash.c termcap_hash.c compiled_terms.c 30 31CLEANFILES+= hash.c termcap_hash.c compiled_terms.c 32