Use toolchain awk to make them buildable on Solaris 10.

This commit is contained in:
nakayama 2012-03-17 12:42:31 +00:00
parent 7e093e0425
commit 83109d5c7b
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2011/08/02 09:11:38 mrg Exp $
# $NetBSD: Makefile,v 1.11 2012/03/17 12:42:31 nakayama Exp $
.include "../../../Makefile.serverlib"
.include "../../../Makefile.servermod"
@ -52,6 +52,6 @@ COPTS.loadmod.c= -Wno-error
.include <bsd.lib.mk>
sdksyms.c: sdksyms.sh
CPP='$(CPP)' AWK='$(AWK)' $(LOADERDIR)/sdksyms.sh $(X11SRCDIR.xorg-server) ${CFLAGS} ${CPPFLAGS}
CPP='$(CPP)' AWK='$(TOOL_AWK)' $(LOADERDIR)/sdksyms.sh $(X11SRCDIR.xorg-server) ${CFLAGS} ${CPPFLAGS}
sdksyms.d: sdksyms.c
CLEANFILES+= sdksyms.c

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.3 2012/01/20 15:06:47 tsutsui Exp $
# $Id: Makefile,v 1.4 2012/03/17 12:42:31 nakayama Exp $
.include <bsd.own.mk>
@ -16,7 +16,7 @@ CPPFLAGS+=-I$(.OBJDIR)
echo "extern const char " ${.TARGET:S,.h$,,} "[];" > ${.TARGET}
.plist.c:
${HOST_SH} ${.CURDIR}/plist_to_c ${.TARGET:S,.c$,,} < ${.IMPSRC} > ${.TARGET}
AWK=${TOOL_AWK:Q} ${HOST_SH} ${.CURDIR}/plist_to_c ${.TARGET:S,.c$,,} < ${.IMPSRC} > ${.TARGET}
CLEANFILES+=personnel.c personnel.h

View File

@ -12,7 +12,7 @@ if [ $# -ne 1 ]; then
fi
sed 's/\(["\]\)/\\\1/g' | \
awk -v sym=$1 '
${AWK:-awk} -v sym=$1 '
BEGIN { printf "const char " sym "[] = \""; }
{ printf $0 "\\n"; }
END { print "\";"; }'