summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/ido.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/mk/compiler/ido.mk b/mk/compiler/ido.mk
index 6c2e08f3cd5..1e33d6b2d44 100644
--- a/mk/compiler/ido.mk
+++ b/mk/compiler/ido.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ido.mk,v 1.2 2005/10/30 10:33:23 schwarz Exp $
+# $NetBSD: ido.mk,v 1.3 2006/08/06 18:59:41 schwarz Exp $
.if !defined(COMPILER_IDO_MK)
COMPILER_IDO_MK= defined
@@ -22,6 +22,13 @@ _ALIASES.CC= cc
CCPATH= ${IDOBASE}/bin/cc
PKG_CC:= ${_IDO_CC}
.endif
+.if exists(${IDOBASE}/lib/cpp)
+_IDO_VARS+= CPP
+_IDO_CPP= ${_IDO_DIR}/bin/cpp
+_ALIASES.CPP= cpp
+CPPPATH= ${IDOBASE}/lib/cpp
+PKG_CPP:= ${_IDO_CPP}
+.endif
_COMPILER_STRIP_VARS+= ${_IDO_VARS}
CC_VERSION?= ${LOWER_OPSYS} ido cc
@@ -53,7 +60,7 @@ ${_IDO_${_var_}}:
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
${_PKG_SILENT}${_PKG_DEBUG} \
(${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'exec ${IDOBASE}/bin/${.TARGET:T} "$$@"'; \
+ ${ECHO} 'exec ${${_var_}PATH} "$$@"'; \
) > ${.TARGET}
${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}