summaryrefslogtreecommitdiffstats
path: root/Makefile.todo
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-28 12:00:46 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-28 12:02:41 +0200
commitfa3e012fc6b9c0b83e19881d6bfc987db1d4705a (patch)
tree7f47048277a183481b480f8af39aa6866cf78340 /Makefile.todo
parent100e66f56082d8a7a509bc77973eb10d633bf1b5 (diff)
downloadrtems-libbsd-fa3e012fc6b9c0b83e19881d6bfc987db1d4705a.tar.bz2
Update yacc and lex generated files
Use the FreeBSD 11.1 yacc and lex tools to generate the files. Update #3472.
Diffstat (limited to 'Makefile.todo')
-rw-r--r--Makefile.todo64
1 files changed, 47 insertions, 17 deletions
diff --git a/Makefile.todo b/Makefile.todo
index 8890fd2e..02756895 100644
--- a/Makefile.todo
+++ b/Makefile.todo
@@ -41,13 +41,28 @@ GENERATED += $(LOCAL_INC)/gpiobus_if.h
GENERATED += $(LOCAL_SRC)/gpiobus_if.c
GENERATED += rtemsbsd/include/machine/rtems-bsd-regdomain.h
GENERATED += rtemsbsd/rtems/rtems-bsd-regdomain.c
-GENERATED += freebsd/contrib/libpcap/grammar.h
-GENERATED += freebsd/contrib/libpcap/grammar.c
GENERATED += freebsd/contrib/libpcap/pcap_version.h
-GENERATED += freebsd/contrib/libpcap/scanner.h
-GENERATED += freebsd/contrib/libpcap/scanner.c
-all: $(GENERATED)
+YACC_GENERATED =
+LEX_GENERATED =
+
+YACC_GENERATED += freebsd/lib/libc/net/nsparser.h
+YACC_GENERATED += freebsd/lib/libc/net/nsparser.c
+LEX_GENERATED += freebsd/lib/libc/net/nslexer.c
+
+YACC_GENERATED += freebsd/sbin/pfctl/parse.h
+YACC_GENERATED += freebsd/sbin/pfctl/parse.c
+
+YACC_GENERATED += freebsd/contrib/libpcap/grammar.h
+YACC_GENERATED += freebsd/contrib/libpcap/grammar.c
+LEX_GENERATED += freebsd/contrib/libpcap/scanner.h
+LEX_GENERATED += freebsd/contrib/libpcap/scanner.c
+
+yacc: $(YACC_GENERATED)
+
+lex: $(LEX_GENERATED)
+
+all: yacc lex $(GENERATED)
$(LOCAL_INC)/usbdevs.h: $(FREEBSD_SRC)/sys/dev/usb/usbdevs
awk -f $(TOOLS)/usbdevs2h.awk $< -h
@@ -229,22 +244,37 @@ rtemsbsd/include/machine/rtems-bsd-regdomain.h: $(FREEBSD_SRC)/etc/regdomain.xml
rtemsbsd/rtems/rtems-bsd-regdomain.c: $(FREEBSD_SRC)/etc/regdomain.xml
rtems-bin2c -C $< $@
-freebsd/contrib/libpcap/grammar.h: freebsd/contrib/libpcap/grammar.c
-
-freebsd/contrib/libpcap/grammar.c: freebsd-org/contrib/libpcap/grammar.y
- cd freebsd-org/contrib/libpcap && yacc -p pcap_ -o grammar.c -d grammar.y
- mv freebsd-org/contrib/libpcap/grammar.h freebsd/contrib/libpcap/grammar.h
- mv freebsd-org/contrib/libpcap/grammar.c $@
-
freebsd/contrib/libpcap/pcap_version.h: freebsd-org/contrib/libpcap/VERSION
freebsd-org/contrib/libpcap/gen_version_header.sh $< freebsd-org/contrib/libpcap/pcap_version.h.in $@
+freebsd/lib/libc/net/nsparser.h: freebsd/lib/libc/net/nsparser.c
+
+freebsd/lib/libc/net/nsparser.c: freebsd/lib/libc/net/nsparser.y
+ cd freebsd/lib/libc/net && yacc -p _nsyy -o nsparser.c -d nsparser.y
+
+freebsd/lib/libc/net/nslexer.c: freebsd/lib/libc/net/nslexer.l
+ cd freebsd/lib/libc/net && lex -P _nsyy -DYY_BUF_SIZE=1024 -o nslexer.c nslexer.l
+
+freebsd/sbin/pfctl/parse.h: freebsd/sbin/pfctl/parse.c
+
+freebsd/sbin/pfctl/parse.c: freebsd/sbin/pfctl/parse.y
+ cd freebsd/sbin/pfctl && yacc -p pfctly -o parse.c -d parse.y
+
+freebsd/contrib/libpcap/grammar.h: freebsd/contrib/libpcap/grammar.c
+
+freebsd/contrib/libpcap/grammar.c: freebsd/contrib/libpcap/grammar.y
+ cd freebsd/contrib/libpcap && yacc -p pcap_ -o grammar.c -d grammar.y
+
freebsd/contrib/libpcap/scanner.h: freebsd/contrib/libpcap/scanner.c
-freebsd/contrib/libpcap/scanner.c: freebsd-org/contrib/libpcap/scanner.l
- cd freebsd-org/contrib/libpcap && lex -P pcap_ --header-file=scanner.h --nounput -o scanner.c scanner.l
- mv freebsd-org/contrib/libpcap/scanner.h freebsd/contrib/libpcap/scanner.h
- mv freebsd-org/contrib/libpcap/scanner.c $@
+freebsd/contrib/libpcap/scanner.c: freebsd/contrib/libpcap/scanner.l
+ cd freebsd/contrib/libpcap && lex -P pcap_ --header-file=scanner.h --nounput -o scanner.c scanner.l
+
+clean-yacc:
+ rm $(YACC_GENERATED)
+
+clean-lex:
+ rm $(LEX_GENERATED)
-clean:
+clean: clean-yacc clean-lex
rm $(GENERATED)