Userspace Makefile: Clean up yacc/lex handling to avoid conflicts

This commit is contained in:
Joel Sherrill
2012-10-11 17:28:30 -05:00
parent 05519817fb
commit 82e1c695b6
8 changed files with 41 additions and 3020 deletions

View File

@@ -0,0 +1,12 @@
# lib/libc/net Yacc and lex files
nslexer.c: nslexer.l
${LEX} -P _nsyy -t $^ | \
sed -e '/YY_BUF_SIZE/s/16384/1024/' >$@
nsparser.c: nsparser.y
yacc -d -p_nsyy -o nsparser.i $^
cat nsparser.i | \
sed -e '/YY_BUF_SIZE/s/16384/1024/' >$@
rm -f nsparser.i