1 # $NetBSD: Makefile,v 1.1.2.2 2011/03/06 15:07:57 bouyer Exp $ 2 3 HOSTPROGNAME= ${_TOOL_PREFIX}clang 4 HOSTPROG_CXX= ${_TOOL_PREFIX}clang 5 HOST_SRCDIR= external/bsd/llvm/bin/clang 6 7 .include "${.CURDIR}/../Makefile.host" 8 9 install.host: ${HOST_BINDIR}/${_TOOL_PREFIX}clang++ ${HOST_BINDIR}/${_TOOL_PREFIX}clang-cpp 10 11 ${HOST_BINDIR}/${_TOOL_PREFIX}clang++: 12 ${_MKTARGET_INSTALL} 13 mkdir -p ${HOST_BINDIR} 14 ${HOST_INSTALL_SYMLINK} ${HOSTPROGNAME} ${.TARGET} 15 16 ${HOST_BINDIR}/${_TOOL_PREFIX}clang-cpp: 17 ${_MKTARGET_INSTALL} 18 mkdir -p ${HOST_BINDIR} 19 printf '#!/bin/sh\nexec ${HOST_BINDIR}/${_TOOL_PREFIX}clang -x c -E "$$@"' > ${.TARGET} 20 chmod a+x ${.TARGET} 21