xref: /minix3/lib/libterminfo/Makefile.hash (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1*84d9c625SLionel Sambuc#	$NetBSD: Makefile.hash,v 1.7 2013/01/24 14:17:40 roy Exp $
20c3ae37fSLionel Sambuc
30c3ae37fSLionel SambucSCRIPT_ENV=	\
4*84d9c625SLionel Sambuc	NETBSDSRCDIR=${NETBSDSRCDIR:Q} \
50c3ae37fSLionel Sambuc	TOOL_AWK=${TOOL_AWK:Q} \
60c3ae37fSLionel Sambuc	TOOL_NBPERF=${TOOL_NBPERF:Q} \
70c3ae37fSLionel Sambuc	TOOL_SED=${TOOL_SED:Q} \
80c3ae37fSLionel Sambuc	TOOL_SORT=${TOOL_SORT:Q} \
9*84d9c625SLionel Sambuc	TOOL_TIC=${TOOL_TIC:Q}
100c3ae37fSLionel Sambuc
110c3ae37fSLionel SambucPARSEDIR:=${.PARSEDIR}
120c3ae37fSLionel Sambuc# Generate our string and hash tables
130c3ae37fSLionel Sambuchash.c: genhash term.h
140c3ae37fSLionel Sambuc		@echo "Generating terminfo hash"
150c3ae37fSLionel Sambuc		${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
160c3ae37fSLionel Sambuc
170c3ae37fSLionel Sambuctermcap_hash.c: genthash termcap_map.c
180c3ae37fSLionel Sambuc		@echo "Generating termcap hash"
190c3ae37fSLionel Sambuc		${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
200c3ae37fSLionel Sambuc
210c3ae37fSLionel Sambuc# Allow terminfo descriptions to be compiled into libterminfo
220c3ae37fSLionel Sambuccompiled_terms.c: genterms term.h ${NETBSDSRCDIR}/share/terminfo/terminfo
230c3ae37fSLionel Sambuc		@echo "Generating compiled terminfo descriptions"
240c3ae37fSLionel Sambuc		${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}
250c3ae37fSLionel Sambuc
260c3ae37fSLionel Sambuc.if ${USETOOLS} == "yes"
270c3ae37fSLionel Sambuccompiled_terms.c: ${TOOL_TIC}
280c3ae37fSLionel Sambuc.endif
290c3ae37fSLionel Sambuc
300c3ae37fSLionel SambucDPSRCS+=	hash.c termcap_hash.c compiled_terms.c
310c3ae37fSLionel Sambuc
320c3ae37fSLionel SambucCLEANFILES+=	hash.c termcap_hash.c compiled_terms.c
33