mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 09:28:35 +08:00
Userspace Makefile: Clean up yacc/lex handling to avoid conflicts
This commit is contained in:
12
freebsd-userspace/lib/libc/net/Makefile
Normal file
12
freebsd-userspace/lib/libc/net/Makefile
Normal 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
|
||||
|
Reference in New Issue
Block a user