summaryrefslogtreecommitdiffstats
path: root/Makefile.todo
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-09 09:59:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-09 13:58:08 +0200
commit97c5f8e8de8bfc039a48f504b71e2905b224b418 (patch)
treed9745c4479456b1a9c0a5e696f34fb19ec1de82f /Makefile.todo
parent67cbb9d6d4de7e6716eefa6bd344cf72bb4d5211 (diff)
downloadrtems-libbsd-97c5f8e8de8bfc039a48f504b71e2905b224b418.tar.bz2
Update libpcap to FreeBSD head 2017-04-04
Update libpcap from Git mirror commit 99a648a912e81e29d9c4c159cbbe263462f2d719 to 642b174daddbd0efd9bb5f242c43f4ab4db6869f.
Diffstat (limited to 'Makefile.todo')
-rw-r--r--Makefile.todo22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile.todo b/Makefile.todo
index 02152f52..c69908bf 100644
--- a/Makefile.todo
+++ b/Makefile.todo
@@ -37,6 +37,11 @@ GENERATED += $(LOCAL_SRC)/rtwn-rtl8188eufw.c
GENERATED += $(LOCAL_SRC)/runfw.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)
@@ -198,5 +203,22 @@ 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/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 $@
+
clean:
rm $(GENERATED)