Changeset fa3e012 in rtems-libbsd for Makefile.todo


Ignore:
Timestamp:
Aug 28, 2018, 10:00:46 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, master
Children:
43a39b7
Parents:
100e66f
git-author:
Sebastian Huber <sebastian.huber@…> (08/28/18 10:00:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/28/18 10:02:41)
Message:

Update yacc and lex generated files

Use the FreeBSD 11.1 yacc and lex tools to generate the files.

Update #3472.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile.todo

    r100e66f rfa3e012  
    4242GENERATED += rtemsbsd/include/machine/rtems-bsd-regdomain.h
    4343GENERATED += rtemsbsd/rtems/rtems-bsd-regdomain.c
    44 GENERATED += freebsd/contrib/libpcap/grammar.h
    45 GENERATED += freebsd/contrib/libpcap/grammar.c
    4644GENERATED += freebsd/contrib/libpcap/pcap_version.h
    47 GENERATED += freebsd/contrib/libpcap/scanner.h
    48 GENERATED += freebsd/contrib/libpcap/scanner.c
    49 
    50 all: $(GENERATED)
     45
     46YACC_GENERATED =
     47LEX_GENERATED =
     48
     49YACC_GENERATED += freebsd/lib/libc/net/nsparser.h
     50YACC_GENERATED += freebsd/lib/libc/net/nsparser.c
     51LEX_GENERATED += freebsd/lib/libc/net/nslexer.c
     52
     53YACC_GENERATED += freebsd/sbin/pfctl/parse.h
     54YACC_GENERATED += freebsd/sbin/pfctl/parse.c
     55
     56YACC_GENERATED += freebsd/contrib/libpcap/grammar.h
     57YACC_GENERATED += freebsd/contrib/libpcap/grammar.c
     58LEX_GENERATED += freebsd/contrib/libpcap/scanner.h
     59LEX_GENERATED += freebsd/contrib/libpcap/scanner.c
     60
     61yacc: $(YACC_GENERATED)
     62
     63lex: $(LEX_GENERATED)
     64
     65all: yacc lex $(GENERATED)
    5166
    5267$(LOCAL_INC)/usbdevs.h: $(FREEBSD_SRC)/sys/dev/usb/usbdevs
     
    230245        rtems-bin2c -C $< $@
    231246
    232 freebsd/contrib/libpcap/grammar.h: freebsd/contrib/libpcap/grammar.c
    233 
    234 freebsd/contrib/libpcap/grammar.c: freebsd-org/contrib/libpcap/grammar.y
    235         cd freebsd-org/contrib/libpcap && yacc -p pcap_ -o grammar.c -d grammar.y
    236         mv freebsd-org/contrib/libpcap/grammar.h freebsd/contrib/libpcap/grammar.h
    237         mv freebsd-org/contrib/libpcap/grammar.c $@
    238 
    239247freebsd/contrib/libpcap/pcap_version.h: freebsd-org/contrib/libpcap/VERSION
    240248        freebsd-org/contrib/libpcap/gen_version_header.sh $< freebsd-org/contrib/libpcap/pcap_version.h.in $@
    241249
     250freebsd/lib/libc/net/nsparser.h: freebsd/lib/libc/net/nsparser.c
     251
     252freebsd/lib/libc/net/nsparser.c: freebsd/lib/libc/net/nsparser.y
     253        cd freebsd/lib/libc/net && yacc -p _nsyy -o nsparser.c -d nsparser.y
     254
     255freebsd/lib/libc/net/nslexer.c: freebsd/lib/libc/net/nslexer.l
     256        cd freebsd/lib/libc/net && lex -P _nsyy -DYY_BUF_SIZE=1024 -o nslexer.c nslexer.l
     257
     258freebsd/sbin/pfctl/parse.h: freebsd/sbin/pfctl/parse.c
     259
     260freebsd/sbin/pfctl/parse.c: freebsd/sbin/pfctl/parse.y
     261        cd freebsd/sbin/pfctl && yacc -p pfctly -o parse.c -d parse.y
     262
     263freebsd/contrib/libpcap/grammar.h: freebsd/contrib/libpcap/grammar.c
     264
     265freebsd/contrib/libpcap/grammar.c: freebsd/contrib/libpcap/grammar.y
     266        cd freebsd/contrib/libpcap && yacc -p pcap_ -o grammar.c -d grammar.y
     267
    242268freebsd/contrib/libpcap/scanner.h: freebsd/contrib/libpcap/scanner.c
    243269
    244 freebsd/contrib/libpcap/scanner.c: freebsd-org/contrib/libpcap/scanner.l
    245         cd freebsd-org/contrib/libpcap && lex -P pcap_ --header-file=scanner.h --nounput -o scanner.c scanner.l
    246         mv freebsd-org/contrib/libpcap/scanner.h freebsd/contrib/libpcap/scanner.h
    247         mv freebsd-org/contrib/libpcap/scanner.c $@
    248 
    249 clean:
     270freebsd/contrib/libpcap/scanner.c: freebsd/contrib/libpcap/scanner.l
     271        cd freebsd/contrib/libpcap && lex -P pcap_ --header-file=scanner.h --nounput -o scanner.c scanner.l
     272
     273clean-yacc:
     274        rm $(YACC_GENERATED)
     275
     276clean-lex:
     277        rm $(LEX_GENERATED)
     278
     279clean: clean-yacc clean-lex
    250280        rm $(GENERATED)
Note: See TracChangeset for help on using the changeset viewer.