Changeset 8440506 in rtems-libbsd


Ignore:
Timestamp:
Jun 15, 2015, 7:42:23 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, 5283630d2c9d40deb0183696d278e02644fe4326, freebsd-9.3, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
7c8c0eb
Parents:
4517fa3
Message:

Add tcpdump and libpcap.

  • Update the file builder generator to handle generator specific cflags and includes. The tcpdump and libpcap have localised headers and need specific headers paths to see them. There are also module specific flags and these need to be passed to the lex and yacc generators.
  • Add the tcpdump support.
Files:
259 added
8 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r4517fa3 r8440506  
    108108LIB_C_FILES += freebsd/sys/cam/cam.c
    109109LIB_C_FILES += freebsd/sys/cam/scsi/scsi_all.c
     110LIB_C_FILES += freebsd/contrib/libpcap/scanner.c
     111freebsd/contrib/libpcap/scanner.c: freebsd/contrib/libpcap/scanner.l freebsd/contrib/libpcap/scanner.c
     112        ${LEX} -P pcap -t $< | sed -e '/YY_BUF_SIZE/s/16384/1024/' > $@
     113freebsd/contrib/libpcap/scanner.o: freebsd/contrib/libpcap/scanner.c
     114        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DNEED_YYPARSE_WRAPPER=1 -Dyylval=pcap_lval -c $< -o $@
     115LIB_C_FILES += freebsd/contrib/libpcap/grammar.c
     116freebsd/contrib/libpcap/grammar.c: freebsd/contrib/libpcap/grammar.y
     117        yacc -b -b pcap -d -p -b pcap $<
     118        sed -e /YY_BUF_SIZE/s/16384/1024/ < -b pcap.tab.c > $@
     119        rm -f -b pcap.tab.c
     120        mv -b pcap.tab.h freebsd/contrib/libpcap/tokdefs.h
     121freebsd/contrib/libpcap/grammar.o: freebsd/contrib/libpcap/grammar.c
     122        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DNEED_YYPARSE_WRAPPER=1 -Dyylval=pcap_lval -c $< -o $@
     123LIB_C_FILES += freebsd/contrib/libpcap/bpf_image.c
     124freebsd/contrib/libpcap/bpf_image.o: freebsd/contrib/libpcap/bpf_image.c
     125        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     126LIB_C_FILES += freebsd/contrib/libpcap/etherent.c
     127freebsd/contrib/libpcap/etherent.o: freebsd/contrib/libpcap/etherent.c
     128        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     129LIB_C_FILES += freebsd/contrib/libpcap/fad-getad.c
     130freebsd/contrib/libpcap/fad-getad.o: freebsd/contrib/libpcap/fad-getad.c
     131        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     132LIB_C_FILES += freebsd/contrib/libpcap/gencode.c
     133freebsd/contrib/libpcap/gencode.o: freebsd/contrib/libpcap/gencode.c
     134        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     135LIB_C_FILES += freebsd/contrib/libpcap/inet.c
     136freebsd/contrib/libpcap/inet.o: freebsd/contrib/libpcap/inet.c
     137        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     138LIB_C_FILES += freebsd/contrib/libpcap/pcap.c
     139freebsd/contrib/libpcap/pcap.o: freebsd/contrib/libpcap/pcap.c
     140        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     141LIB_C_FILES += freebsd/contrib/libpcap/pcap-bpf.c
     142freebsd/contrib/libpcap/pcap-bpf.o: freebsd/contrib/libpcap/pcap-bpf.c
     143        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     144LIB_C_FILES += freebsd/contrib/libpcap/pcap-common.c
     145freebsd/contrib/libpcap/pcap-common.o: freebsd/contrib/libpcap/pcap-common.c
     146        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     147LIB_C_FILES += freebsd/contrib/libpcap/optimize.c
     148freebsd/contrib/libpcap/optimize.o: freebsd/contrib/libpcap/optimize.c
     149        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     150LIB_C_FILES += freebsd/contrib/libpcap/nametoaddr.c
     151freebsd/contrib/libpcap/nametoaddr.o: freebsd/contrib/libpcap/nametoaddr.c
     152        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     153LIB_C_FILES += freebsd/contrib/libpcap/savefile.c
     154freebsd/contrib/libpcap/savefile.o: freebsd/contrib/libpcap/savefile.c
     155        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     156LIB_C_FILES += freebsd/contrib/libpcap/sf-pcap.c
     157freebsd/contrib/libpcap/sf-pcap.o: freebsd/contrib/libpcap/sf-pcap.c
     158        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
     159LIB_C_FILES += freebsd/contrib/libpcap/sf-pcap-ng.c
     160freebsd/contrib/libpcap/sf-pcap-ng.o: freebsd/contrib/libpcap/sf-pcap-ng.c
     161        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -D_U_=__attribute__((unused)) -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -c $< -o $@
    110162LIB_C_FILES += freebsd/sys/crypto/sha1.c
    111163LIB_C_FILES += freebsd/sys/crypto/sha2/sha2.c
     
    685737LIB_C_FILES += freebsd/lib/libc/net/nsparser.c
    686738freebsd/lib/libc/net/nsparser.c: freebsd/lib/libc/net/nsparser.y
    687         yacc -b _nsyy -d -p _nsyy $<
    688         sed -e /YY_BUF_SIZE/s/16384/1024/ < _nsyy.tab.c > $@
    689         rm -f _nsyy.tab.c
    690         mv _nsyy.tab.h freebsd/lib/libc/net/nsparser.h
     739        yacc -b -b _nsyy -d -p -b _nsyy $<
     740        sed -e /YY_BUF_SIZE/s/16384/1024/ < -b _nsyy.tab.c > $@
     741        rm -f -b _nsyy.tab.c
     742        mv -b _nsyy.tab.h freebsd/lib/libc/net/nsparser.h
    691743LIB_C_FILES += freebsd/lib/libipsec/policy_token.c
    692744freebsd/lib/libipsec/policy_token.c: freebsd/lib/libipsec/policy_token.l freebsd/lib/libipsec/policy_parse.c
     
    694746LIB_C_FILES += freebsd/lib/libipsec/policy_parse.c
    695747freebsd/lib/libipsec/policy_parse.c: freebsd/lib/libipsec/policy_parse.y
    696         yacc -b __libipsecyy -d -p __libipsecyy $<
    697         sed -e /YY_BUF_SIZE/s/16384/1024/ < __libipsecyy.tab.c > $@
    698         rm -f __libipsecyy.tab.c
    699         mv __libipsecyy.tab.h freebsd/lib/libipsec/y.tab.h
     748        yacc -b -b __libipsecyy -d -p -b __libipsecyy $<
     749        sed -e /YY_BUF_SIZE/s/16384/1024/ < -b __libipsecyy.tab.c > $@
     750        rm -f -b __libipsecyy.tab.c
     751        mv -b __libipsecyy.tab.h freebsd/lib/libipsec/y.tab.h
    700752
    701753TEST_FOOBARCLIENT = testsuite/foobarclient/foobarclient.exe
     
    15371589freebsd/usr.bin/netstat/unix.o: freebsd/usr.bin/netstat/unix.c
    15381590        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
     1591LIB_C_FILES += freebsd/contrib/tcpdump/addrtoname.c
     1592freebsd/contrib/tcpdump/addrtoname.o: freebsd/contrib/tcpdump/addrtoname.c
     1593        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1594LIB_C_FILES += freebsd/contrib/tcpdump/af.c
     1595freebsd/contrib/tcpdump/af.o: freebsd/contrib/tcpdump/af.c
     1596        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1597LIB_C_FILES += freebsd/contrib/tcpdump/bpf_dump.c
     1598freebsd/contrib/tcpdump/bpf_dump.o: freebsd/contrib/tcpdump/bpf_dump.c
     1599        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1600LIB_C_FILES += freebsd/contrib/tcpdump/checksum.c
     1601freebsd/contrib/tcpdump/checksum.o: freebsd/contrib/tcpdump/checksum.c
     1602        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1603LIB_C_FILES += freebsd/contrib/tcpdump/cpack.c
     1604freebsd/contrib/tcpdump/cpack.o: freebsd/contrib/tcpdump/cpack.c
     1605        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1606LIB_C_FILES += freebsd/contrib/tcpdump/gmpls.c
     1607freebsd/contrib/tcpdump/gmpls.o: freebsd/contrib/tcpdump/gmpls.c
     1608        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1609LIB_C_FILES += freebsd/contrib/tcpdump/gmt2local.c
     1610freebsd/contrib/tcpdump/gmt2local.o: freebsd/contrib/tcpdump/gmt2local.c
     1611        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1612LIB_C_FILES += freebsd/contrib/tcpdump/in_cksum.c
     1613freebsd/contrib/tcpdump/in_cksum.o: freebsd/contrib/tcpdump/in_cksum.c
     1614        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1615LIB_C_FILES += freebsd/contrib/tcpdump/ipproto.c
     1616freebsd/contrib/tcpdump/ipproto.o: freebsd/contrib/tcpdump/ipproto.c
     1617        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1618LIB_C_FILES += freebsd/contrib/tcpdump/machdep.c
     1619freebsd/contrib/tcpdump/machdep.o: freebsd/contrib/tcpdump/machdep.c
     1620        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1621LIB_C_FILES += freebsd/contrib/tcpdump/nlpid.c
     1622freebsd/contrib/tcpdump/nlpid.o: freebsd/contrib/tcpdump/nlpid.c
     1623        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1624LIB_C_FILES += freebsd/contrib/tcpdump/l2vpn.c
     1625freebsd/contrib/tcpdump/l2vpn.o: freebsd/contrib/tcpdump/l2vpn.c
     1626        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1627LIB_C_FILES += freebsd/contrib/tcpdump/oui.c
     1628freebsd/contrib/tcpdump/oui.o: freebsd/contrib/tcpdump/oui.c
     1629        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1630LIB_C_FILES += freebsd/contrib/tcpdump/parsenfsfh.c
     1631freebsd/contrib/tcpdump/parsenfsfh.o: freebsd/contrib/tcpdump/parsenfsfh.c
     1632        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1633LIB_C_FILES += freebsd/contrib/tcpdump/print-802_11.c
     1634freebsd/contrib/tcpdump/print-802_11.o: freebsd/contrib/tcpdump/print-802_11.c
     1635        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1636LIB_C_FILES += freebsd/contrib/tcpdump/print-802_15_4.c
     1637freebsd/contrib/tcpdump/print-802_15_4.o: freebsd/contrib/tcpdump/print-802_15_4.c
     1638        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1639LIB_C_FILES += freebsd/contrib/tcpdump/print-ah.c
     1640freebsd/contrib/tcpdump/print-ah.o: freebsd/contrib/tcpdump/print-ah.c
     1641        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1642LIB_C_FILES += freebsd/contrib/tcpdump/print-aodv.c
     1643freebsd/contrib/tcpdump/print-aodv.o: freebsd/contrib/tcpdump/print-aodv.c
     1644        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1645LIB_C_FILES += freebsd/contrib/tcpdump/print-ap1394.c
     1646freebsd/contrib/tcpdump/print-ap1394.o: freebsd/contrib/tcpdump/print-ap1394.c
     1647        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1648LIB_C_FILES += freebsd/contrib/tcpdump/print-arcnet.c
     1649freebsd/contrib/tcpdump/print-arcnet.o: freebsd/contrib/tcpdump/print-arcnet.c
     1650        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1651LIB_C_FILES += freebsd/contrib/tcpdump/print-arp.c
     1652freebsd/contrib/tcpdump/print-arp.o: freebsd/contrib/tcpdump/print-arp.c
     1653        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1654LIB_C_FILES += freebsd/contrib/tcpdump/print-ascii.c
     1655freebsd/contrib/tcpdump/print-ascii.o: freebsd/contrib/tcpdump/print-ascii.c
     1656        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1657LIB_C_FILES += freebsd/contrib/tcpdump/print-atalk.c
     1658freebsd/contrib/tcpdump/print-atalk.o: freebsd/contrib/tcpdump/print-atalk.c
     1659        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1660LIB_C_FILES += freebsd/contrib/tcpdump/print-atm.c
     1661freebsd/contrib/tcpdump/print-atm.o: freebsd/contrib/tcpdump/print-atm.c
     1662        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1663LIB_C_FILES += freebsd/contrib/tcpdump/print-babel.c
     1664freebsd/contrib/tcpdump/print-babel.o: freebsd/contrib/tcpdump/print-babel.c
     1665        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1666LIB_C_FILES += freebsd/contrib/tcpdump/print-beep.c
     1667freebsd/contrib/tcpdump/print-beep.o: freebsd/contrib/tcpdump/print-beep.c
     1668        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1669LIB_C_FILES += freebsd/contrib/tcpdump/print-bfd.c
     1670freebsd/contrib/tcpdump/print-bfd.o: freebsd/contrib/tcpdump/print-bfd.c
     1671        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1672LIB_C_FILES += freebsd/contrib/tcpdump/print-bgp.c
     1673freebsd/contrib/tcpdump/print-bgp.o: freebsd/contrib/tcpdump/print-bgp.c
     1674        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1675LIB_C_FILES += freebsd/contrib/tcpdump/print-bootp.c
     1676freebsd/contrib/tcpdump/print-bootp.o: freebsd/contrib/tcpdump/print-bootp.c
     1677        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1678LIB_C_FILES += freebsd/contrib/tcpdump/print-bt.c
     1679freebsd/contrib/tcpdump/print-bt.o: freebsd/contrib/tcpdump/print-bt.c
     1680        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1681LIB_C_FILES += freebsd/contrib/tcpdump/print-carp.c
     1682freebsd/contrib/tcpdump/print-carp.o: freebsd/contrib/tcpdump/print-carp.c
     1683        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1684LIB_C_FILES += freebsd/contrib/tcpdump/print-cdp.c
     1685freebsd/contrib/tcpdump/print-cdp.o: freebsd/contrib/tcpdump/print-cdp.c
     1686        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1687LIB_C_FILES += freebsd/contrib/tcpdump/print-cfm.c
     1688freebsd/contrib/tcpdump/print-cfm.o: freebsd/contrib/tcpdump/print-cfm.c
     1689        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1690LIB_C_FILES += freebsd/contrib/tcpdump/print-chdlc.c
     1691freebsd/contrib/tcpdump/print-chdlc.o: freebsd/contrib/tcpdump/print-chdlc.c
     1692        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1693LIB_C_FILES += freebsd/contrib/tcpdump/print-cip.c
     1694freebsd/contrib/tcpdump/print-cip.o: freebsd/contrib/tcpdump/print-cip.c
     1695        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1696LIB_C_FILES += freebsd/contrib/tcpdump/print-cnfp.c
     1697freebsd/contrib/tcpdump/print-cnfp.o: freebsd/contrib/tcpdump/print-cnfp.c
     1698        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1699LIB_C_FILES += freebsd/contrib/tcpdump/print-dccp.c
     1700freebsd/contrib/tcpdump/print-dccp.o: freebsd/contrib/tcpdump/print-dccp.c
     1701        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1702LIB_C_FILES += freebsd/contrib/tcpdump/print-decnet.c
     1703freebsd/contrib/tcpdump/print-decnet.o: freebsd/contrib/tcpdump/print-decnet.c
     1704        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1705LIB_C_FILES += freebsd/contrib/tcpdump/print-dhcp6.c
     1706freebsd/contrib/tcpdump/print-dhcp6.o: freebsd/contrib/tcpdump/print-dhcp6.c
     1707        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1708LIB_C_FILES += freebsd/contrib/tcpdump/print-domain.c
     1709freebsd/contrib/tcpdump/print-domain.o: freebsd/contrib/tcpdump/print-domain.c
     1710        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1711LIB_C_FILES += freebsd/contrib/tcpdump/print-dtp.c
     1712freebsd/contrib/tcpdump/print-dtp.o: freebsd/contrib/tcpdump/print-dtp.c
     1713        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1714LIB_C_FILES += freebsd/contrib/tcpdump/print-dvmrp.c
     1715freebsd/contrib/tcpdump/print-dvmrp.o: freebsd/contrib/tcpdump/print-dvmrp.c
     1716        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1717LIB_C_FILES += freebsd/contrib/tcpdump/print-eap.c
     1718freebsd/contrib/tcpdump/print-eap.o: freebsd/contrib/tcpdump/print-eap.c
     1719        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1720LIB_C_FILES += freebsd/contrib/tcpdump/print-egp.c
     1721freebsd/contrib/tcpdump/print-egp.o: freebsd/contrib/tcpdump/print-egp.c
     1722        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1723LIB_C_FILES += freebsd/contrib/tcpdump/print-eigrp.c
     1724freebsd/contrib/tcpdump/print-eigrp.o: freebsd/contrib/tcpdump/print-eigrp.c
     1725        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1726LIB_C_FILES += freebsd/contrib/tcpdump/print-enc.c
     1727freebsd/contrib/tcpdump/print-enc.o: freebsd/contrib/tcpdump/print-enc.c
     1728        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1729LIB_C_FILES += freebsd/contrib/tcpdump/print-esp.c
     1730freebsd/contrib/tcpdump/print-esp.o: freebsd/contrib/tcpdump/print-esp.c
     1731        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1732LIB_C_FILES += freebsd/contrib/tcpdump/print-ether.c
     1733freebsd/contrib/tcpdump/print-ether.o: freebsd/contrib/tcpdump/print-ether.c
     1734        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1735LIB_C_FILES += freebsd/contrib/tcpdump/print-fddi.c
     1736freebsd/contrib/tcpdump/print-fddi.o: freebsd/contrib/tcpdump/print-fddi.c
     1737        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1738LIB_C_FILES += freebsd/contrib/tcpdump/print-forces.c
     1739freebsd/contrib/tcpdump/print-forces.o: freebsd/contrib/tcpdump/print-forces.c
     1740        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1741LIB_C_FILES += freebsd/contrib/tcpdump/print-fr.c
     1742freebsd/contrib/tcpdump/print-fr.o: freebsd/contrib/tcpdump/print-fr.c
     1743        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1744LIB_C_FILES += freebsd/contrib/tcpdump/print-frag6.c
     1745freebsd/contrib/tcpdump/print-frag6.o: freebsd/contrib/tcpdump/print-frag6.c
     1746        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1747LIB_C_FILES += freebsd/contrib/tcpdump/print-gre.c
     1748freebsd/contrib/tcpdump/print-gre.o: freebsd/contrib/tcpdump/print-gre.c
     1749        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1750LIB_C_FILES += freebsd/contrib/tcpdump/print-hsrp.c
     1751freebsd/contrib/tcpdump/print-hsrp.o: freebsd/contrib/tcpdump/print-hsrp.c
     1752        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1753LIB_C_FILES += freebsd/contrib/tcpdump/print-icmp.c
     1754freebsd/contrib/tcpdump/print-icmp.o: freebsd/contrib/tcpdump/print-icmp.c
     1755        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1756LIB_C_FILES += freebsd/contrib/tcpdump/print-icmp6.c
     1757freebsd/contrib/tcpdump/print-icmp6.o: freebsd/contrib/tcpdump/print-icmp6.c
     1758        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1759LIB_C_FILES += freebsd/contrib/tcpdump/print-igmp.c
     1760freebsd/contrib/tcpdump/print-igmp.o: freebsd/contrib/tcpdump/print-igmp.c
     1761        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1762LIB_C_FILES += freebsd/contrib/tcpdump/print-igrp.c
     1763freebsd/contrib/tcpdump/print-igrp.o: freebsd/contrib/tcpdump/print-igrp.c
     1764        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1765LIB_C_FILES += freebsd/contrib/tcpdump/print-ip.c
     1766freebsd/contrib/tcpdump/print-ip.o: freebsd/contrib/tcpdump/print-ip.c
     1767        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1768LIB_C_FILES += freebsd/contrib/tcpdump/print-ip6.c
     1769freebsd/contrib/tcpdump/print-ip6.o: freebsd/contrib/tcpdump/print-ip6.c
     1770        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1771LIB_C_FILES += freebsd/contrib/tcpdump/print-ip6opts.c
     1772freebsd/contrib/tcpdump/print-ip6opts.o: freebsd/contrib/tcpdump/print-ip6opts.c
     1773        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1774LIB_C_FILES += freebsd/contrib/tcpdump/print-ipcomp.c
     1775freebsd/contrib/tcpdump/print-ipcomp.o: freebsd/contrib/tcpdump/print-ipcomp.c
     1776        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1777LIB_C_FILES += freebsd/contrib/tcpdump/print-ipfc.c
     1778freebsd/contrib/tcpdump/print-ipfc.o: freebsd/contrib/tcpdump/print-ipfc.c
     1779        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1780LIB_C_FILES += freebsd/contrib/tcpdump/print-ipnet.c
     1781freebsd/contrib/tcpdump/print-ipnet.o: freebsd/contrib/tcpdump/print-ipnet.c
     1782        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1783LIB_C_FILES += freebsd/contrib/tcpdump/print-ipx.c
     1784freebsd/contrib/tcpdump/print-ipx.o: freebsd/contrib/tcpdump/print-ipx.c
     1785        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1786LIB_C_FILES += freebsd/contrib/tcpdump/print-isakmp.c
     1787freebsd/contrib/tcpdump/print-isakmp.o: freebsd/contrib/tcpdump/print-isakmp.c
     1788        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1789LIB_C_FILES += freebsd/contrib/tcpdump/print-isoclns.c
     1790freebsd/contrib/tcpdump/print-isoclns.o: freebsd/contrib/tcpdump/print-isoclns.c
     1791        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1792LIB_C_FILES += freebsd/contrib/tcpdump/print-juniper.c
     1793freebsd/contrib/tcpdump/print-juniper.o: freebsd/contrib/tcpdump/print-juniper.c
     1794        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1795LIB_C_FILES += freebsd/contrib/tcpdump/print-krb.c
     1796freebsd/contrib/tcpdump/print-krb.o: freebsd/contrib/tcpdump/print-krb.c
     1797        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1798LIB_C_FILES += freebsd/contrib/tcpdump/print-l2tp.c
     1799freebsd/contrib/tcpdump/print-l2tp.o: freebsd/contrib/tcpdump/print-l2tp.c
     1800        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1801LIB_C_FILES += freebsd/contrib/tcpdump/print-lane.c
     1802freebsd/contrib/tcpdump/print-lane.o: freebsd/contrib/tcpdump/print-lane.c
     1803        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1804LIB_C_FILES += freebsd/contrib/tcpdump/print-ldp.c
     1805freebsd/contrib/tcpdump/print-ldp.o: freebsd/contrib/tcpdump/print-ldp.c
     1806        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1807LIB_C_FILES += freebsd/contrib/tcpdump/print-llc.c
     1808freebsd/contrib/tcpdump/print-llc.o: freebsd/contrib/tcpdump/print-llc.c
     1809        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1810LIB_C_FILES += freebsd/contrib/tcpdump/print-lldp.c
     1811freebsd/contrib/tcpdump/print-lldp.o: freebsd/contrib/tcpdump/print-lldp.c
     1812        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1813LIB_C_FILES += freebsd/contrib/tcpdump/print-lmp.c
     1814freebsd/contrib/tcpdump/print-lmp.o: freebsd/contrib/tcpdump/print-lmp.c
     1815        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1816LIB_C_FILES += freebsd/contrib/tcpdump/print-lspping.c
     1817freebsd/contrib/tcpdump/print-lspping.o: freebsd/contrib/tcpdump/print-lspping.c
     1818        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1819LIB_C_FILES += freebsd/contrib/tcpdump/print-lwapp.c
     1820freebsd/contrib/tcpdump/print-lwapp.o: freebsd/contrib/tcpdump/print-lwapp.c
     1821        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1822LIB_C_FILES += freebsd/contrib/tcpdump/print-lwres.c
     1823freebsd/contrib/tcpdump/print-lwres.o: freebsd/contrib/tcpdump/print-lwres.c
     1824        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1825LIB_C_FILES += freebsd/contrib/tcpdump/print-mobile.c
     1826freebsd/contrib/tcpdump/print-mobile.o: freebsd/contrib/tcpdump/print-mobile.c
     1827        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1828LIB_C_FILES += freebsd/contrib/tcpdump/print-mobility.c
     1829freebsd/contrib/tcpdump/print-mobility.o: freebsd/contrib/tcpdump/print-mobility.c
     1830        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1831LIB_C_FILES += freebsd/contrib/tcpdump/print-mpcp.c
     1832freebsd/contrib/tcpdump/print-mpcp.o: freebsd/contrib/tcpdump/print-mpcp.c
     1833        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1834LIB_C_FILES += freebsd/contrib/tcpdump/print-mpls.c
     1835freebsd/contrib/tcpdump/print-mpls.o: freebsd/contrib/tcpdump/print-mpls.c
     1836        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1837LIB_C_FILES += freebsd/contrib/tcpdump/print-msdp.c
     1838freebsd/contrib/tcpdump/print-msdp.o: freebsd/contrib/tcpdump/print-msdp.c
     1839        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1840LIB_C_FILES += freebsd/contrib/tcpdump/print-msnlb.c
     1841freebsd/contrib/tcpdump/print-msnlb.o: freebsd/contrib/tcpdump/print-msnlb.c
     1842        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1843LIB_C_FILES += freebsd/contrib/tcpdump/print-netbios.c
     1844freebsd/contrib/tcpdump/print-netbios.o: freebsd/contrib/tcpdump/print-netbios.c
     1845        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1846LIB_C_FILES += freebsd/contrib/tcpdump/print-nfs.c
     1847freebsd/contrib/tcpdump/print-nfs.o: freebsd/contrib/tcpdump/print-nfs.c
     1848        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1849LIB_C_FILES += freebsd/contrib/tcpdump/print-ntp.c
     1850freebsd/contrib/tcpdump/print-ntp.o: freebsd/contrib/tcpdump/print-ntp.c
     1851        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1852LIB_C_FILES += freebsd/contrib/tcpdump/print-null.c
     1853freebsd/contrib/tcpdump/print-null.o: freebsd/contrib/tcpdump/print-null.c
     1854        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1855LIB_C_FILES += freebsd/contrib/tcpdump/print-olsr.c
     1856freebsd/contrib/tcpdump/print-olsr.o: freebsd/contrib/tcpdump/print-olsr.c
     1857        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1858LIB_C_FILES += freebsd/contrib/tcpdump/print-ospf.c
     1859freebsd/contrib/tcpdump/print-ospf.o: freebsd/contrib/tcpdump/print-ospf.c
     1860        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1861LIB_C_FILES += freebsd/contrib/tcpdump/print-ospf6.c
     1862freebsd/contrib/tcpdump/print-ospf6.o: freebsd/contrib/tcpdump/print-ospf6.c
     1863        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1864LIB_C_FILES += freebsd/contrib/tcpdump/print-otv.c
     1865freebsd/contrib/tcpdump/print-otv.o: freebsd/contrib/tcpdump/print-otv.c
     1866        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1867LIB_C_FILES += freebsd/contrib/tcpdump/print-pflog.c
     1868freebsd/contrib/tcpdump/print-pflog.o: freebsd/contrib/tcpdump/print-pflog.c
     1869        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1870LIB_C_FILES += freebsd/contrib/tcpdump/print-pfsync.c
     1871freebsd/contrib/tcpdump/print-pfsync.o: freebsd/contrib/tcpdump/print-pfsync.c
     1872        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1873LIB_C_FILES += freebsd/contrib/tcpdump/print-pgm.c
     1874freebsd/contrib/tcpdump/print-pgm.o: freebsd/contrib/tcpdump/print-pgm.c
     1875        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1876LIB_C_FILES += freebsd/contrib/tcpdump/print-pim.c
     1877freebsd/contrib/tcpdump/print-pim.o: freebsd/contrib/tcpdump/print-pim.c
     1878        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1879LIB_C_FILES += freebsd/contrib/tcpdump/print-ppi.c
     1880freebsd/contrib/tcpdump/print-ppi.o: freebsd/contrib/tcpdump/print-ppi.c
     1881        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1882LIB_C_FILES += freebsd/contrib/tcpdump/print-ppp.c
     1883freebsd/contrib/tcpdump/print-ppp.o: freebsd/contrib/tcpdump/print-ppp.c
     1884        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1885LIB_C_FILES += freebsd/contrib/tcpdump/print-pppoe.c
     1886freebsd/contrib/tcpdump/print-pppoe.o: freebsd/contrib/tcpdump/print-pppoe.c
     1887        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1888LIB_C_FILES += freebsd/contrib/tcpdump/print-pptp.c
     1889freebsd/contrib/tcpdump/print-pptp.o: freebsd/contrib/tcpdump/print-pptp.c
     1890        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1891LIB_C_FILES += freebsd/contrib/tcpdump/print-radius.c
     1892freebsd/contrib/tcpdump/print-radius.o: freebsd/contrib/tcpdump/print-radius.c
     1893        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1894LIB_C_FILES += freebsd/contrib/tcpdump/print-raw.c
     1895freebsd/contrib/tcpdump/print-raw.o: freebsd/contrib/tcpdump/print-raw.c
     1896        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1897LIB_C_FILES += freebsd/contrib/tcpdump/print-rip.c
     1898freebsd/contrib/tcpdump/print-rip.o: freebsd/contrib/tcpdump/print-rip.c
     1899        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1900LIB_C_FILES += freebsd/contrib/tcpdump/print-ripng.c
     1901freebsd/contrib/tcpdump/print-ripng.o: freebsd/contrib/tcpdump/print-ripng.c
     1902        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1903LIB_C_FILES += freebsd/contrib/tcpdump/print-rpki-rtr.c
     1904freebsd/contrib/tcpdump/print-rpki-rtr.o: freebsd/contrib/tcpdump/print-rpki-rtr.c
     1905        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1906LIB_C_FILES += freebsd/contrib/tcpdump/print-rrcp.c
     1907freebsd/contrib/tcpdump/print-rrcp.o: freebsd/contrib/tcpdump/print-rrcp.c
     1908        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1909LIB_C_FILES += freebsd/contrib/tcpdump/print-rsvp.c
     1910freebsd/contrib/tcpdump/print-rsvp.o: freebsd/contrib/tcpdump/print-rsvp.c
     1911        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1912LIB_C_FILES += freebsd/contrib/tcpdump/print-rt6.c
     1913freebsd/contrib/tcpdump/print-rt6.o: freebsd/contrib/tcpdump/print-rt6.c
     1914        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1915LIB_C_FILES += freebsd/contrib/tcpdump/print-rx.c
     1916freebsd/contrib/tcpdump/print-rx.o: freebsd/contrib/tcpdump/print-rx.c
     1917        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1918LIB_C_FILES += freebsd/contrib/tcpdump/print-sctp.c
     1919freebsd/contrib/tcpdump/print-sctp.o: freebsd/contrib/tcpdump/print-sctp.c
     1920        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1921LIB_C_FILES += freebsd/contrib/tcpdump/print-sflow.c
     1922freebsd/contrib/tcpdump/print-sflow.o: freebsd/contrib/tcpdump/print-sflow.c
     1923        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1924LIB_C_FILES += freebsd/contrib/tcpdump/print-sip.c
     1925freebsd/contrib/tcpdump/print-sip.o: freebsd/contrib/tcpdump/print-sip.c
     1926        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1927LIB_C_FILES += freebsd/contrib/tcpdump/print-sl.c
     1928freebsd/contrib/tcpdump/print-sl.o: freebsd/contrib/tcpdump/print-sl.c
     1929        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1930LIB_C_FILES += freebsd/contrib/tcpdump/print-sll.c
     1931freebsd/contrib/tcpdump/print-sll.o: freebsd/contrib/tcpdump/print-sll.c
     1932        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1933LIB_C_FILES += freebsd/contrib/tcpdump/print-slow.c
     1934freebsd/contrib/tcpdump/print-slow.o: freebsd/contrib/tcpdump/print-slow.c
     1935        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1936LIB_C_FILES += freebsd/contrib/tcpdump/print-smb.c
     1937freebsd/contrib/tcpdump/print-smb.o: freebsd/contrib/tcpdump/print-smb.c
     1938        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1939LIB_C_FILES += freebsd/contrib/tcpdump/print-snmp.c
     1940freebsd/contrib/tcpdump/print-snmp.o: freebsd/contrib/tcpdump/print-snmp.c
     1941        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1942LIB_C_FILES += freebsd/contrib/tcpdump/print-stp.c
     1943freebsd/contrib/tcpdump/print-stp.o: freebsd/contrib/tcpdump/print-stp.c
     1944        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1945LIB_C_FILES += freebsd/contrib/tcpdump/print-sunatm.c
     1946freebsd/contrib/tcpdump/print-sunatm.o: freebsd/contrib/tcpdump/print-sunatm.c
     1947        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1948LIB_C_FILES += freebsd/contrib/tcpdump/print-symantec.c
     1949freebsd/contrib/tcpdump/print-symantec.o: freebsd/contrib/tcpdump/print-symantec.c
     1950        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1951LIB_C_FILES += freebsd/contrib/tcpdump/print-syslog.c
     1952freebsd/contrib/tcpdump/print-syslog.o: freebsd/contrib/tcpdump/print-syslog.c
     1953        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1954LIB_C_FILES += freebsd/contrib/tcpdump/print-tcp.c
     1955freebsd/contrib/tcpdump/print-tcp.o: freebsd/contrib/tcpdump/print-tcp.c
     1956        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1957LIB_C_FILES += freebsd/contrib/tcpdump/print-telnet.c
     1958freebsd/contrib/tcpdump/print-telnet.o: freebsd/contrib/tcpdump/print-telnet.c
     1959        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1960LIB_C_FILES += freebsd/contrib/tcpdump/print-tftp.c
     1961freebsd/contrib/tcpdump/print-tftp.o: freebsd/contrib/tcpdump/print-tftp.c
     1962        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1963LIB_C_FILES += freebsd/contrib/tcpdump/print-timed.c
     1964freebsd/contrib/tcpdump/print-timed.o: freebsd/contrib/tcpdump/print-timed.c
     1965        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1966LIB_C_FILES += freebsd/contrib/tcpdump/print-tipc.c
     1967freebsd/contrib/tcpdump/print-tipc.o: freebsd/contrib/tcpdump/print-tipc.c
     1968        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1969LIB_C_FILES += freebsd/contrib/tcpdump/print-token.c
     1970freebsd/contrib/tcpdump/print-token.o: freebsd/contrib/tcpdump/print-token.c
     1971        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1972LIB_C_FILES += freebsd/contrib/tcpdump/print-udld.c
     1973freebsd/contrib/tcpdump/print-udld.o: freebsd/contrib/tcpdump/print-udld.c
     1974        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1975LIB_C_FILES += freebsd/contrib/tcpdump/print-udp.c
     1976freebsd/contrib/tcpdump/print-udp.o: freebsd/contrib/tcpdump/print-udp.c
     1977        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1978LIB_C_FILES += freebsd/contrib/tcpdump/print-usb.c
     1979freebsd/contrib/tcpdump/print-usb.o: freebsd/contrib/tcpdump/print-usb.c
     1980        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1981LIB_C_FILES += freebsd/contrib/tcpdump/print-vjc.c
     1982freebsd/contrib/tcpdump/print-vjc.o: freebsd/contrib/tcpdump/print-vjc.c
     1983        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1984LIB_C_FILES += freebsd/contrib/tcpdump/print-vqp.c
     1985freebsd/contrib/tcpdump/print-vqp.o: freebsd/contrib/tcpdump/print-vqp.c
     1986        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1987LIB_C_FILES += freebsd/contrib/tcpdump/print-vrrp.c
     1988freebsd/contrib/tcpdump/print-vrrp.o: freebsd/contrib/tcpdump/print-vrrp.c
     1989        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1990LIB_C_FILES += freebsd/contrib/tcpdump/print-vtp.c
     1991freebsd/contrib/tcpdump/print-vtp.o: freebsd/contrib/tcpdump/print-vtp.c
     1992        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1993LIB_C_FILES += freebsd/contrib/tcpdump/print-vxlan.c
     1994freebsd/contrib/tcpdump/print-vxlan.o: freebsd/contrib/tcpdump/print-vxlan.c
     1995        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1996LIB_C_FILES += freebsd/contrib/tcpdump/print-wb.c
     1997freebsd/contrib/tcpdump/print-wb.o: freebsd/contrib/tcpdump/print-wb.c
     1998        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     1999LIB_C_FILES += freebsd/contrib/tcpdump/print-zephyr.c
     2000freebsd/contrib/tcpdump/print-zephyr.o: freebsd/contrib/tcpdump/print-zephyr.c
     2001        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     2002LIB_C_FILES += freebsd/contrib/tcpdump/print-zeromq.c
     2003freebsd/contrib/tcpdump/print-zeromq.o: freebsd/contrib/tcpdump/print-zeromq.c
     2004        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     2005LIB_C_FILES += freebsd/contrib/tcpdump/setsignal.c
     2006freebsd/contrib/tcpdump/setsignal.o: freebsd/contrib/tcpdump/setsignal.c
     2007        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     2008LIB_C_FILES += freebsd/contrib/tcpdump/signature.c
     2009freebsd/contrib/tcpdump/signature.o: freebsd/contrib/tcpdump/signature.c
     2010        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     2011LIB_C_FILES += freebsd/contrib/tcpdump/smbutil.c
     2012freebsd/contrib/tcpdump/smbutil.o: freebsd/contrib/tcpdump/smbutil.c
     2013        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     2014LIB_C_FILES += freebsd/contrib/tcpdump/tcpdump.c
     2015freebsd/contrib/tcpdump/tcpdump.o: freebsd/contrib/tcpdump/tcpdump.c
     2016        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
     2017LIB_C_FILES += freebsd/contrib/tcpdump/util.c
     2018freebsd/contrib/tcpdump/util.o: freebsd/contrib/tcpdump/util.c
     2019        $(CC) $(CPPFLAGS) $(CFLAGS) freebsd/contrib/tcpdump freebsd/usr.sbin/tcpdump/tcpdump-DINET6 -D_U_=__attribute__((unused)) -DHAVE_CONFIG_H=1 -DHAVE_NET_PFVAR_H=1 -c $< -o $@
    15392020
    15402021ifeq ($(NEED_DUMMY_PIC_IRQ),yes)
  • builder.py

    r4517fa3 r8440506  
    8989            '-Ifreebsd/lib/libmemstat',
    9090            '-Ifreebsd/lib/libipsec',
     91            '-Ifreebsd/contrib/libpcap',
    9192            '-Irtemsbsd/sys',
    9293            '-ImDNSResponder/mDNSCore',
     
    303304
    304305class BuildSystemFragmentComposer(object):
     306    def __init__(self, includes = None):
     307        if type(includes) is not list:
     308            self.includes = [includes]
     309        else:
     310            self.includes = includes
     311
    305312    def compose(self, path):
    306313        return ''
  • freebsd-to-rtems.py

    r4517fa3 r8440506  
    143143    sys.exit(0)
    144144
    145 makefile_gen = makefile.ModuleManager()
    146 waf_gen = waf_generator.ModuleManager()
     145try:
     146    makefile_gen = makefile.ModuleManager()
     147    waf_gen = waf_generator.ModuleManager()
    147148
    148 libbsd.sources(makefile_gen)
    149 libbsd.sources(waf_gen)
     149    libbsd.sources(makefile_gen)
     150    libbsd.sources(waf_gen)
    150151
    151 # Perform the actual file manipulation
    152 if isForward:
    153     if not isOnlyMakefile:
    154         makefile_gen.copyFromFreeBSDToRTEMS()
    155     makefile_gen.generate()
    156     waf_gen.generate()
    157 else:
    158     makefile_gen.copyFromRTEMSToFreeBSD()
    159 
    160 # Print a summary if changing files
    161 if builder.isDiffMode == False:
    162     print '%d file(s) were changed.' % (builder.filesProcessed)
     152    # Perform the actual file manipulation
     153    if isForward:
     154        if not isOnlyMakefile:
     155            makefile_gen.copyFromFreeBSDToRTEMS()
     156        makefile_gen.generate()
     157        waf_gen.generate()
     158    else:
     159        makefile_gen.copyFromRTEMSToFreeBSD()
     160    # Print a summary if changing files
     161    if builder.isDiffMode == False:
     162        print '%d file(s) were changed.' % (builder.filesProcessed)
     163except IOError, ioe:
     164    print 'error: %s' % (ioe)
  • libbsd.py

    r4517fa3 r8440506  
    138138                                     mm.generator['no-convert'](),
    139139                                     mm.generator['no-convert'](),
    140                                      mm.generator['kvm-symbols']()))
     140                                     mm.generator['kvm-symbols'](includes = 'rtemsbsd/rtems')))
    141141    mod.addFile(mm.generator['file']('lib/libc/net/nslexer.l',
    142142                                     mm.generator['freebsd-path'](),
     
    18571857            'sbin/ifconfig/ifconfig.h',
    18581858            'sbin/ifconfig/regdomain.h',
    1859             'usr.bin/netstat/netstat.h',
     1859            'usr.bin/netstat/netstat.h'
    18601860        ]
    18611861    )
     
    18721872    mod.addUserSpaceSourceFiles(
    18731873        [
    1874                 'lib/libc/db/btree/bt_close.c',
     1874            'lib/libc/db/btree/bt_close.c',
    18751875            'lib/libc/db/btree/bt_conv.c',
    18761876            'lib/libc/db/btree/bt_debug.c',
     
    20452045
    20462046#
     2047# Contrib libpcap
     2048#
     2049def contrib_libpcap(mm):
     2050    mod = builder.Module('contrib_libpcap')
     2051    cflags = ['-DINET6',
     2052              '-D_U_=__attribute__((unused))',
     2053              '-DHAVE_INTTYPES=1',
     2054              '-DHAVE_STDINT=1',
     2055              '-DHAVE_STRERROR=1',
     2056              '-DHAVE_STRLCPY=1',
     2057              '-DHAVE_SNPRINTF=1',
     2058              '-DHAVE_VSNPRINTF=1']
     2059    mod.addUserSpaceHeaderFiles(
     2060        [
     2061            'contrib/libpcap/arcnet.h',
     2062            'contrib/libpcap/atmuni31.h',
     2063            'contrib/libpcap/ethertype.h',
     2064            'contrib/libpcap/gencode.h',
     2065            'contrib/libpcap/ieee80211.h',
     2066            'contrib/libpcap/llc.h',
     2067            'contrib/libpcap/nlpid.h',
     2068            'contrib/libpcap/pcap-common.h',
     2069            'contrib/libpcap/pcap-int.h',
     2070            'contrib/libpcap/pcap-namedb.h',
     2071            'contrib/libpcap/pcap.h',
     2072            'contrib/libpcap/pcap/ipnet.h',
     2073            'contrib/libpcap/pcap/namedb.h',
     2074            'contrib/libpcap/pcap/pcap.h',
     2075            'contrib/libpcap/pcap/sll.h',
     2076            'contrib/libpcap/pcap/usb.h',
     2077            'contrib/libpcap/ppp.h',
     2078            'contrib/libpcap/sf-pcap-ng.h',
     2079            'contrib/libpcap/sf-pcap.h',
     2080            'contrib/libpcap/sunatmpos.h',
     2081        ]
     2082    )
     2083    gen_cflags = cflags + ['-DNEED_YYPARSE_WRAPPER=1',
     2084                           '-Dyylval=pcap_lval']
     2085    mod.addFile(mm.generator['file']('contrib/libpcap/scanner.l',
     2086                                     mm.generator['freebsd-path'](),
     2087                                     mm.generator['convert'](),
     2088                                     mm.generator['convert'](),
     2089                                     mm.generator['lex']('pcap',
     2090                                                         'scanner.c',
     2091                                                         gen_cflags)))
     2092    mod.addFile(mm.generator['file']('contrib/libpcap/grammar.y',
     2093                                     mm.generator['freebsd-path'](),
     2094                                     mm.generator['convert'](),
     2095                                     mm.generator['convert'](),
     2096                                     mm.generator['yacc']('pcap',
     2097                                                          'tokdefs.h',
     2098                                                          gen_cflags)))
     2099    mod.addUserSpaceSourceFiles(
     2100        [
     2101            'contrib/libpcap/bpf_image.c',
     2102            'contrib/libpcap/etherent.c',
     2103            'contrib/libpcap/fad-getad.c',
     2104            'contrib/libpcap/gencode.c',
     2105            'contrib/libpcap/inet.c',
     2106            'contrib/libpcap/pcap.c',
     2107            'contrib/libpcap/pcap-bpf.c',
     2108            'contrib/libpcap/pcap-common.c',
     2109            'contrib/libpcap/optimize.c',
     2110            'contrib/libpcap/nametoaddr.c',
     2111            'contrib/libpcap/savefile.c',
     2112            'contrib/libpcap/sf-pcap.c',
     2113            'contrib/libpcap/sf-pcap-ng.c',
     2114        ],
     2115        mm.generator['source'](cflags)
     2116    )
     2117    return mod
     2118
     2119#
     2120# /usr/sbin/tcpdump
     2121#
     2122def usr_sbin_tcpdump(mm):
     2123    mod = builder.Module('usr_sbin_tcpdump')
     2124    mod.addUserSpaceHeaderFiles(
     2125        [
     2126            'contrib/tcpdump/addrtoname.h',
     2127            'contrib/tcpdump/af.h',
     2128            'contrib/tcpdump/ah.h',
     2129            'contrib/tcpdump/aodv.h',
     2130            'contrib/tcpdump/appletalk.h',
     2131            'contrib/tcpdump/arcnet.h',
     2132            'contrib/tcpdump/atm.h',
     2133            'contrib/tcpdump/bgp.h',
     2134            'contrib/tcpdump/bootp.h',
     2135            'contrib/tcpdump/chdlc.h',
     2136            'contrib/tcpdump/cpack.h',
     2137            'contrib/tcpdump/dccp.h',
     2138            'contrib/tcpdump/decnet.h',
     2139            'contrib/tcpdump/decode_prefix.h',
     2140            'contrib/tcpdump/enc.h',
     2141            'contrib/tcpdump/esp.h',
     2142            'contrib/tcpdump/ether.h',
     2143            'contrib/tcpdump/ethertype.h',
     2144            'contrib/tcpdump/extract.h',
     2145            'contrib/tcpdump/fddi.h',
     2146            'contrib/tcpdump/forces.h',
     2147            'contrib/tcpdump/gmpls.h',
     2148            'contrib/tcpdump/gmt2local.h',
     2149            'contrib/tcpdump/icmp6.h',
     2150            'contrib/tcpdump/ieee802_11.h',
     2151            'contrib/tcpdump/ieee802_11_radio.h',
     2152            'contrib/tcpdump/igrp.h',
     2153            'contrib/tcpdump/interface.h',
     2154            'contrib/tcpdump/ip.h',
     2155            'contrib/tcpdump/ip6.h',
     2156            'contrib/tcpdump/ipfc.h',
     2157            'contrib/tcpdump/ipnet.h',
     2158            'contrib/tcpdump/ipproto.h',
     2159            'contrib/tcpdump/ipsec_doi.h',
     2160            'contrib/tcpdump/ipx.h',
     2161            'contrib/tcpdump/isakmp.h',
     2162            'contrib/tcpdump/l2tp.h',
     2163            'contrib/tcpdump/l2vpn.h',
     2164            'contrib/tcpdump/lane.h',
     2165            'contrib/tcpdump/llc.h',
     2166            'contrib/tcpdump/machdep.h',
     2167            'contrib/tcpdump/mib.h',
     2168            'contrib/tcpdump/mpls.h',
     2169            'contrib/tcpdump/nameser.h',
     2170            'contrib/tcpdump/netbios.h',
     2171            'contrib/tcpdump/netdissect.h',
     2172            'contrib/tcpdump/nfs.h',
     2173            'contrib/tcpdump/nfsfh.h',
     2174            'contrib/tcpdump/nlpid.h',
     2175            'contrib/tcpdump/ntp.h',
     2176            'contrib/tcpdump/oakley.h',
     2177            'contrib/tcpdump/ospf.h',
     2178            'contrib/tcpdump/ospf6.h',
     2179            'contrib/tcpdump/oui.h',
     2180            'contrib/tcpdump/pcap-missing.h',
     2181            'contrib/tcpdump/pmap_prot.h',
     2182            'contrib/tcpdump/ppi.h',
     2183            'contrib/tcpdump/ppp.h',
     2184            'contrib/tcpdump/route6d.h',
     2185            'contrib/tcpdump/rpc_auth.h',
     2186            'contrib/tcpdump/rpc_msg.h',
     2187            'contrib/tcpdump/rx.h',
     2188            'contrib/tcpdump/sctpConstants.h',
     2189            'contrib/tcpdump/sctpHeader.h',
     2190            'contrib/tcpdump/setsignal.h',
     2191            'contrib/tcpdump/signature.h',
     2192            'contrib/tcpdump/slcompress.h',
     2193            'contrib/tcpdump/slip.h',
     2194            'contrib/tcpdump/sll.h',
     2195            'contrib/tcpdump/smb.h',
     2196            'contrib/tcpdump/tcp.h',
     2197            'contrib/tcpdump/tcpdump-stdinc.h',
     2198            'contrib/tcpdump/telnet.h',
     2199            'contrib/tcpdump/tftp.h',
     2200            'contrib/tcpdump/timed.h',
     2201            'contrib/tcpdump/token.h',
     2202            'contrib/tcpdump/udp.h',
     2203            'usr.sbin/tcpdump/tcpdump/config.h',
     2204        ]
     2205    )
     2206    mod.addUserSpaceSourceFiles(
     2207        [
     2208            'contrib/tcpdump/addrtoname.c',
     2209            'contrib/tcpdump/af.c',
     2210            'contrib/tcpdump/bpf_dump.c',
     2211            'contrib/tcpdump/checksum.c',
     2212            'contrib/tcpdump/cpack.c',
     2213            'contrib/tcpdump/gmpls.c',
     2214            'contrib/tcpdump/gmt2local.c',
     2215            'contrib/tcpdump/in_cksum.c',
     2216            'contrib/tcpdump/ipproto.c',
     2217            'contrib/tcpdump/machdep.c',
     2218            'contrib/tcpdump/nlpid.c',
     2219            'contrib/tcpdump/l2vpn.c',
     2220            'contrib/tcpdump/oui.c',
     2221            'contrib/tcpdump/parsenfsfh.c',
     2222            'contrib/tcpdump/print-802_11.c',
     2223            'contrib/tcpdump/print-802_15_4.c',
     2224            'contrib/tcpdump/print-ah.c',
     2225            'contrib/tcpdump/print-aodv.c',
     2226            'contrib/tcpdump/print-ap1394.c',
     2227            'contrib/tcpdump/print-arcnet.c',
     2228            'contrib/tcpdump/print-arp.c',
     2229            'contrib/tcpdump/print-ascii.c',
     2230            'contrib/tcpdump/print-atalk.c',
     2231            'contrib/tcpdump/print-atm.c',
     2232            'contrib/tcpdump/print-babel.c',
     2233            'contrib/tcpdump/print-beep.c',
     2234            'contrib/tcpdump/print-bfd.c',
     2235            'contrib/tcpdump/print-bgp.c',
     2236            'contrib/tcpdump/print-bootp.c',
     2237            'contrib/tcpdump/print-bt.c',
     2238            'contrib/tcpdump/print-carp.c',
     2239            'contrib/tcpdump/print-cdp.c',
     2240            'contrib/tcpdump/print-cfm.c',
     2241            'contrib/tcpdump/print-chdlc.c',
     2242            'contrib/tcpdump/print-cip.c',
     2243            'contrib/tcpdump/print-cnfp.c',
     2244            'contrib/tcpdump/print-dccp.c',
     2245            'contrib/tcpdump/print-decnet.c',
     2246            'contrib/tcpdump/print-dhcp6.c',
     2247            'contrib/tcpdump/print-domain.c',
     2248            'contrib/tcpdump/print-dtp.c',
     2249            'contrib/tcpdump/print-dvmrp.c',
     2250            'contrib/tcpdump/print-eap.c',
     2251            'contrib/tcpdump/print-egp.c',
     2252            'contrib/tcpdump/print-eigrp.c',
     2253            'contrib/tcpdump/print-enc.c',
     2254            'contrib/tcpdump/print-esp.c',
     2255            'contrib/tcpdump/print-ether.c',
     2256            'contrib/tcpdump/print-fddi.c',
     2257            'contrib/tcpdump/print-forces.c',
     2258            'contrib/tcpdump/print-fr.c',
     2259            'contrib/tcpdump/print-frag6.c',
     2260            'contrib/tcpdump/print-gre.c',
     2261            'contrib/tcpdump/print-hsrp.c',
     2262            'contrib/tcpdump/print-icmp.c',
     2263            'contrib/tcpdump/print-icmp6.c',
     2264            'contrib/tcpdump/print-igmp.c',
     2265            'contrib/tcpdump/print-igrp.c',
     2266            'contrib/tcpdump/print-ip.c',
     2267            'contrib/tcpdump/print-ip6.c',
     2268            'contrib/tcpdump/print-ip6opts.c',
     2269            'contrib/tcpdump/print-ipcomp.c',
     2270            'contrib/tcpdump/print-ipfc.c',
     2271            'contrib/tcpdump/print-ipnet.c',
     2272            'contrib/tcpdump/print-ipx.c',
     2273            'contrib/tcpdump/print-isakmp.c',
     2274            'contrib/tcpdump/print-isoclns.c',
     2275            'contrib/tcpdump/print-juniper.c',
     2276            'contrib/tcpdump/print-krb.c',
     2277            'contrib/tcpdump/print-l2tp.c',
     2278            'contrib/tcpdump/print-lane.c',
     2279            'contrib/tcpdump/print-ldp.c',
     2280            'contrib/tcpdump/print-llc.c',
     2281            'contrib/tcpdump/print-lldp.c',
     2282            'contrib/tcpdump/print-lmp.c',
     2283            'contrib/tcpdump/print-lspping.c',
     2284            'contrib/tcpdump/print-lwapp.c',
     2285            'contrib/tcpdump/print-lwres.c',
     2286            'contrib/tcpdump/print-mobile.c',
     2287            'contrib/tcpdump/print-mobility.c',
     2288            'contrib/tcpdump/print-mpcp.c',
     2289            'contrib/tcpdump/print-mpls.c',
     2290            'contrib/tcpdump/print-msdp.c',
     2291            'contrib/tcpdump/print-msnlb.c',
     2292            'contrib/tcpdump/print-netbios.c',
     2293            'contrib/tcpdump/print-nfs.c',
     2294            'contrib/tcpdump/print-ntp.c',
     2295            'contrib/tcpdump/print-null.c',
     2296            'contrib/tcpdump/print-olsr.c',
     2297            'contrib/tcpdump/print-ospf.c',
     2298            'contrib/tcpdump/print-ospf6.c',
     2299            'contrib/tcpdump/print-otv.c',
     2300            'contrib/tcpdump/print-pflog.c',
     2301            'contrib/tcpdump/print-pfsync.c',
     2302            'contrib/tcpdump/print-pgm.c',
     2303            'contrib/tcpdump/print-pim.c',
     2304            'contrib/tcpdump/print-ppi.c',
     2305            'contrib/tcpdump/print-ppp.c',
     2306            'contrib/tcpdump/print-pppoe.c',
     2307            'contrib/tcpdump/print-pptp.c',
     2308            'contrib/tcpdump/print-radius.c',
     2309            'contrib/tcpdump/print-raw.c',
     2310            'contrib/tcpdump/print-rip.c',
     2311            'contrib/tcpdump/print-ripng.c',
     2312            'contrib/tcpdump/print-rpki-rtr.c',
     2313            'contrib/tcpdump/print-rrcp.c',
     2314            'contrib/tcpdump/print-rsvp.c',
     2315            'contrib/tcpdump/print-rt6.c',
     2316            'contrib/tcpdump/print-rx.c',
     2317            'contrib/tcpdump/print-sctp.c',
     2318            'contrib/tcpdump/print-sflow.c',
     2319            'contrib/tcpdump/print-sip.c',
     2320            'contrib/tcpdump/print-sl.c',
     2321            'contrib/tcpdump/print-sll.c',
     2322            'contrib/tcpdump/print-slow.c',
     2323            'contrib/tcpdump/print-smb.c',
     2324            'contrib/tcpdump/print-snmp.c',
     2325            'contrib/tcpdump/print-stp.c',
     2326            'contrib/tcpdump/print-sunatm.c',
     2327            #'contrib/tcpdump/print-sunrpc.c',
     2328            'contrib/tcpdump/print-symantec.c',
     2329            'contrib/tcpdump/print-syslog.c',
     2330            'contrib/tcpdump/print-tcp.c',
     2331            'contrib/tcpdump/print-telnet.c',
     2332            'contrib/tcpdump/print-tftp.c',
     2333            'contrib/tcpdump/print-timed.c',
     2334            'contrib/tcpdump/print-tipc.c',
     2335            'contrib/tcpdump/print-token.c',
     2336            'contrib/tcpdump/print-udld.c',
     2337            'contrib/tcpdump/print-udp.c',
     2338            'contrib/tcpdump/print-usb.c',
     2339            'contrib/tcpdump/print-vjc.c',
     2340            'contrib/tcpdump/print-vqp.c',
     2341            'contrib/tcpdump/print-vrrp.c',
     2342            'contrib/tcpdump/print-vtp.c',
     2343            'contrib/tcpdump/print-vxlan.c',
     2344            'contrib/tcpdump/print-wb.c',
     2345            'contrib/tcpdump/print-zephyr.c',
     2346            'contrib/tcpdump/print-zeromq.c',
     2347            'contrib/tcpdump/setsignal.c',
     2348            'contrib/tcpdump/signature.c',
     2349            'contrib/tcpdump/smbutil.c',
     2350            'contrib/tcpdump/tcpdump.c',
     2351            'contrib/tcpdump/util.c',
     2352        ],
     2353        mm.generator['source'](['-DINET6',
     2354                                '-D_U_=__attribute__((unused))',
     2355                                '-DHAVE_CONFIG_H=1',
     2356                                '-DHAVE_NET_PFVAR_H=1'],
     2357                               ['freebsd/contrib/tcpdump',
     2358                                'freebsd/usr.sbin/tcpdump/tcpdump'])
     2359    )
     2360    return mod
     2361
     2362#
    20472363# in_chksum Module
    20482364#
     
    22902606
    22912607    mm.addModule(user_space(mm))
     2608    mm.addModule(contrib_libpcap(mm))
     2609    mm.addModule(usr_sbin_tcpdump(mm))
    22922610
    22932611    mm.addModule(tests(mm))
  • makefile.py

    r4517fa3 r8440506  
    3939class SourceFileFragmentComposer(builder.BuildSystemFragmentComposer):
    4040
    41     def __init__(self, cflags = None):
     41    def __init__(self, cflags = None, includes = None):
    4242        self.cflags = cflags
     43        self.includes = includes
    4344
    4445    def compose(self, path):
    4546        fragment = 'LIB_C_FILES += ' + path + '\n'
     47        cflags = ''
     48        if self.includes != None:
     49            if type(self.includes) is list:
     50                cflags += ' '.join(self.includes)
     51            else:
     52                cflags += self.includes
    4653        if self.cflags != None:
     54            if type(self.cflags) is list:
     55                cflags += ' '.join(self.cflags)
     56            else:
     57                cflags += self.cflags
     58        if len(cflags) > 0:
    4759            fragment = fragment + path[:-1] + 'o: ' + path + '\n' \
    48                        + '\t$(CC) $(CPPFLAGS) $(CFLAGS) ' + self.cflags + ' -c $< -o $@\n'
     60                       + '\t$(CC) $(CPPFLAGS) $(CFLAGS) ' + cflags + ' -c $< -o $@\n'
    4961        return fragment
    5062
     
    112124class LexFragmentComposer(builder.BuildSystemFragmentComposer):
    113125
    114     def __init__(self, sym, dep):
     126    def __init__(self, sym, dep, cflags = None, includes = None):
    115127        self.sym = sym
    116128        self.dep = dep
     129        self.cflags = ''
     130        if cflags is not None:
     131            self.cflags += ' '.join(cflags)
     132        if includes is not None:
     133            self.cflags += ' -I'.join(includes)
    117134
    118135    def compose(self, path):
    119136        src = path[:-2] + '.c'
    120137        dep = path[:path.rfind('/')] + '/' + self.dep
    121         return 'LIB_C_FILES += ' + src + '\n' \
     138        fragment = 'LIB_C_FILES += ' + src + '\n' \
    122139            + src + ': ' + path + ' ' + dep + '\n' \
    123140            '\t${LEX} -P ' + self.sym + ' -t $< | sed -e \'/YY_BUF_SIZE/s/16384/1024/\' > $@\n'
     141        if len(self.cflags) > 0:
     142            fragment = fragment + src[:-1] + 'o: ' + src + '\n' \
     143                       + '\t$(CC) $(CPPFLAGS) $(CFLAGS) ' + self.cflags + ' -c $< -o $@\n'
     144        return fragment
    124145
    125146class YaccFragmentComposer(builder.BuildSystemFragmentComposer):
    126147
    127     def __init__(self, sym, header):
     148    def __init__(self, sym, header, cflags = None, includes = None):
    128149        self.sym = sym
    129150        self.header = header
     151        self.cflags = ''
     152        if cflags is not None:
     153            self.cflags += ' '.join(cflags)
     154        if includes is not None:
     155            self.cflags += ' -I'.join(includes)
    130156
    131157    def compose(self, path):
    132158        src = path[:-2] + '.c'
    133159        hdr = path[:path.rfind('/')] + '/' + self.header
    134         return 'LIB_C_FILES += ' + src + '\n' \
     160        if self.sym is not None:
     161            sym = '-b %s' % (self.sym)
     162        else:
     163            sym = os.path.basename(src)[:-2]
     164        fragment = 'LIB_C_FILES += ' + src + '\n' \
    135165            + src + ': ' + path + '\n' \
    136             '\tyacc -b ' + self.sym + ' -d -p ' + self.sym + ' $<\n' \
    137             '\tsed -e ''/YY_BUF_SIZE/s/16384/1024/'' < ' + self.sym + '.tab.c > $@\n' \
    138             '\trm -f ' + self.sym + '.tab.c\n' \
    139             '\tmv ' + self.sym + '.tab.h ' + hdr + '\n'
     166            '\tyacc -b ' + sym + ' -d -p ' + sym + ' $<\n' \
     167            '\tsed -e ''/YY_BUF_SIZE/s/16384/1024/'' < ' + sym + '.tab.c > $@\n' \
     168            '\trm -f ' + sym + '.tab.c\n' \
     169            '\tmv ' + sym + '.tab.h ' + hdr + '\n'
     170        if len(self.cflags) > 0:
     171            fragment = fragment + src[:-1] + 'o: ' + src + '\n' \
     172                       + '\t$(CC) $(CPPFLAGS) $(CFLAGS) ' + self.cflags + ' -c $< -o $@\n'
     173        return fragment
    140174
    141175# Module Manager - Collection of Modules
  • rtemsbsd/include/machine/rtems-bsd-commands.h

    r4517fa3 r8440506  
    5959int rtems_bsd_command_dhcpcd(int argc, char **argv);
    6060
     61int rtems_bsd_command_tcpdump(int argc, char **argv);
     62
    6163__END_DECLS
    6264
  • waf_generator.py

    r4517fa3 r8440506  
    4949    data[name] += files
    5050
     51def _clfags_includes(cflags, includes):
     52    if type(cflags) is not list:
     53        if cflags is not None:
     54            _cflags = cflags.split(' ')
     55        else:
     56            _cflags = [None]
     57    else:
     58        _cflags = cflags
     59    if type(includes) is not list:
     60        _includes = [includes]
     61    else:
     62        _includes = includes
     63    return _cflags, _includes
     64
    5165class SourceFileFragmentComposer(builder.BuildSystemFragmentComposer):
    5266
    53     def __init__(self, cflags = "default"):
    54         self.cflags = cflags
    55 
    56     def compose(self, path):
    57         return ['sources', self.cflags], [path]
     67    def __init__(self, cflags = "default", includes = None):
     68        self.cflags, self.includes = _clfags_includes(cflags, includes)
     69
     70    def compose(self, path):
     71        if None in self.includes:
     72            return ['sources', self.cflags], [path], self.cflags, self.includes
     73        return ['sources', self.cflags + self.includes], [path], self.cflags, self.includes
    5874
    5975class TestFragementComposer(builder.BuildSystemFragmentComposer):
     
    7389
    7490    def compose(self, path):
    75         return ['KVMSymbols', 'files'], [path]
     91        return ['KVMSymbols', 'files'], [path], self.includes
    7692
    7793class RPCGENFragmentComposer(builder.BuildSystemFragmentComposer):
     
    87103class LexFragmentComposer(builder.BuildSystemFragmentComposer):
    88104
    89     def __init__(self, sym, dep):
     105    def __init__(self, sym, dep, cflags = None, includes = None):
    90106        self.sym = sym
    91107        self.dep = dep
    92 
    93     def compose(self, path):
    94         return ['lex', path], { 'file': path,
    95                                 'sym': self.sym,
    96                                 'dep': self.dep }
     108        self.cflags, self.includes = _clfags_includes(cflags, includes)
     109
     110    def compose(self, path):
     111        d = { 'file': path,
     112              'sym': self.sym,
     113              'dep': self.dep }
     114        if None not in self.cflags:
     115            d['cflags'] = self.cflags
     116        if None not in self.includes:
     117            d['includes'] = self.includes
     118        return ['lex', path], d
    97119
    98120class YaccFragmentComposer(builder.BuildSystemFragmentComposer):
    99121
    100     def __init__(self, sym, header):
     122    def __init__(self, sym, header, cflags = None, includes = None):
    101123        self.sym = sym
    102124        self.header = header
    103 
    104     def compose(self, path):
    105         return ['yacc', path], { 'file': path,
    106                                  'sym': self.sym,
    107                                  'header': self.header }
     125        self.cflags, self.includes = _clfags_includes(cflags, includes)
     126
     127    def compose(self, path):
     128        d = { 'file': path,
     129              'sym': self.sym,
     130              'header': self.header }
     131        if None not in self.cflags:
     132            d['cflags'] = self.cflags
     133        if None not in self.includes:
     134            d['includes'] = self.includes
     135        return ['yacc', path], d
    108136
    109137# Module Manager - Collection of Modules
     
    175203            #
    176204            if type(frag) is not str:
     205                # Start at the top of the tree
    177206                d = data
    178                 for p in frag[0]:
    179                     if p not in d:
    180                         d[p] = {}
    181                     d = d[p]
     207                path = frag[0]
     208                if path[0] not in d:
     209                    d[path[0]] = {}
     210                # Select the sub-part of the tree as the compile options
     211                # specialise how files are built.
     212                d = d[path[0]]
     213                if type(path[1]) is list:
     214                    p = ' '.join(path[1])
     215                else:
     216                    p = path[1]
     217                if p not in d:
     218                    d[p] = {}
     219                d = d[p]
     220                if cpu not in d:
     221                    d[cpu] = []
    182222                if type(frag[1]) is list:
    183                     if cpu not in d:
    184                         d[cpu] = []
    185223                    d[cpu] += frag[1]
    186224                else:
    187225                    d[cpu] = frag[1]
     226                if len(frag) > 3:
     227                    if 'cflags' not in d[cpu]:
     228                        d['cflags'] = []
     229                    d['cflags'] += frag[2]
     230                if len(frag) >= 3 and None not in frag[-1]:
     231                    if 'includes' not in d[cpu]:
     232                        d['includes'] = []
     233                    d['includes'] += frag[-1]
    188234
    189235        data = { }
     
    274320        self.add('')
    275321        self.add('    # Include paths')
    276         self.add('    includes = []')
     322        self.add('    includes = ["."]')
    277323        for i in builder.includes():
    278324            self.add('    includes += ["%s"]' % (i[2:]))
     
    339385        if 'KVMSymbols' in data:
    340386            kvmsymbols = data['KVMSymbols']
     387            if 'includes' in kvmsymbols['files']:
     388                includes = kvmsymbols['files']['includes']
     389            else:
     390                includes = []
    341391            self.add('    # KVM Symbols')
    342392            self.add('    bld(target = "%s",' % (kvmsymbols['files']['all'][0]))
     
    347397            self.add('                features = "c",')
    348398            self.add('                cflags = cflags,')
    349             self.add('                includes = includes + ["rtemsbsd/rtems"],')
     399            self.add('                includes = %r + includes,' % (includes))
    350400            self.add('                source = "%s")' % (kvmsymbols['files']['all'][0]))
    351401            self.add('    libbsd_use += ["kvmsymbols"]')
     
    383433            for l in lexes:
    384434                lex = lexes[l]['all']
     435                if 'cflags' in lex:
     436                    lex_defines = [d[2:] for d in lex['cflags']]
     437                else:
     438                    lex_defines = []
     439                if 'includes' in lex:
     440                    lex_includes = lex['includes']
     441                else:
     442                    lex_includes = []
    385443                self.add('    if bld.env.AUTO_REGEN:')
    386444                self.add('        bld(target = "%s.c",' % (lex['file'][:-2]))
     
    391449                self.add('                features = "c",')
    392450                self.add('                cflags = cflags,')
    393                 self.add('                includes = includes,')
     451                self.add('                includes = %r + includes,' % (lex_includes))
     452                self.add('                defines = %r,' % (lex_defines))
    394453                self.add('                source = "%s.c")' % (lex['file'][:-2]))
    395454                self.add('    libbsd_use += ["lex_%s"]' % (lex['sym']))
     
    402461                yacc = yaccs[y]['all']
    403462                yacc_file = yacc['file']
    404                 yacc_sym = yacc['sym']
     463                if yacc['sym'] is not None:
     464                    yacc_sym = yacc['sym']
     465                else:
     466                    yacc_sym = os.path.basename(yacc_file)[:-2]
    405467                yacc_header = '%s/%s' % (os.path.dirname(yacc_file), yacc['header'])
     468                if 'cflags' in yacc:
     469                    yacc_defines = [d[2:] for d in yacc['cflags']]
     470                else:
     471                    yacc_defines = []
     472                if 'includes' in yacc:
     473                    yacc_includes = yacc['includes']
     474                else:
     475                    yacc_includes = []
    406476                self.add('    if bld.env.AUTO_REGEN:')
    407477                self.add('        bld(target = "%s.c",' % (yacc_file[:-2]))
     
    413483                self.add('                features = "c",')
    414484                self.add('                cflags = cflags,')
    415                 self.add('                includes = includes,')
     485                self.add('                includes = %r + includes,' % (yacc_includes))
     486                self.add('                defines = %r,' % (yacc_defines))
    416487                self.add('                source = "%s.c")' % (yacc_file[:-2]))
    417488                self.add('    libbsd_use += ["yacc_%s"]' % (yacc_sym))
     
    424495        objs = 0
    425496        self.add('    # Objects built with different CFLAGS')
    426         for cflags in sorted(data['sources']):
    427             if cflags is not 'default':
     497        for flags in sorted(data['sources']):
     498            if flags is not 'default':
    428499                objs += 1
    429                 _source_list('    objs%02d_source' % objs, sorted(data['sources'][cflags]['all']))
    430                 archs = sorted(data['sources'][cflags])
     500                _source_list('    objs%02d_source' % objs, sorted(data['sources'][flags]['all']))
     501                archs = sorted(data['sources'][flags])
    431502                for arch in archs:
    432                     if arch is not 'all':
     503                    if arch not in ['all', 'cflags', 'includes']:
    433504                        self.add('    if bld.get_env()["RTEMS_ARCH"] == "%s":' % arch)
    434505                        _source_list('        objs%02d_source' % objs,
    435                                      sorted(data['sources'][cflags][arch]),
     506                                     sorted(data['sources'][flags][arch]),
    436507                                     append = True)
    437                 defines = [d[2:] for d in cflags.split(' ')]
     508                if 'cflags' in data['sources'][flags]:
     509                    defines = [d[2:] for d in data['sources'][flags]['cflags']]
     510                else:
     511                    defines = []
     512                if 'includes' in data['sources'][flags]:
     513                    includes = data['sources'][flags]['includes']
     514                else:
     515                    includes = []
    438516                self.add('    bld.objects(target = "objs%02d",' % (objs))
    439517                self.add('                features = "c",')
    440518                self.add('                cflags = cflags,')
    441                 self.add('                includes = includes,')
     519                self.add('                includes = %r + includes,' % (includes))
    442520                self.add('                defines = %r,' % (defines))
    443521                self.add('                source = objs%02d_source)' % objs)
  • wscript

    r4517fa3 r8440506  
    7171
    7272    # Include paths
    73     includes = []
     73    includes = ["."]
    7474    includes += ["rtemsbsd/include"]
    7575    includes += ["freebsd/sys"]
     
    8484    includes += ["freebsd/lib/libmemstat"]
    8585    includes += ["freebsd/lib/libipsec"]
     86    includes += ["freebsd/contrib/libpcap"]
    8687    includes += ["rtemsbsd/sys"]
    8788    includes += ["mDNSResponder/mDNSCore"]
     
    143144                features = "c",
    144145                cflags = cflags,
    145                 includes = includes + ["rtemsbsd/rtems"],
     146                includes = ['rtemsbsd/rtems'] + includes,
    146147                source = "rtemsbsd/rtems/rtems-kvm-symbols.c")
    147148    libbsd_use += ["kvmsymbols"]
     
    169170                features = "c",
    170171                cflags = cflags,
    171                 includes = includes,
     172                includes = [] + includes,
     173                defines = [],
    172174                source = "freebsd/lib/libc/net/nslexer.c")
    173175    libbsd_use += ["lex__nsyy"]
     
    180182                features = "c",
    181183                cflags = cflags,
    182                 includes = includes,
     184                includes = [] + includes,
     185                defines = [],
    183186                source = "freebsd/lib/libipsec/policy_token.c")
    184187    libbsd_use += ["lex___libipsecyy"]
     188
     189    if bld.env.AUTO_REGEN:
     190        bld(target = "freebsd/contrib/libpcap/scanner.c",
     191            source = "freebsd/contrib/libpcap/scanner.l",
     192            rule = "${LEX} -P pcap -t ${SRC} | sed -e '/YY_BUF_SIZE/s/16384/1024/' > ${TGT}")
     193    bld.objects(target = "lex_pcap",
     194                features = "c",
     195                cflags = cflags,
     196                includes = [] + includes,
     197                defines = ['INET6', '_U_=__attribute__((unused))', 'HAVE_INTTYPES=1', 'HAVE_STDINT=1', 'HAVE_STRERROR=1', 'HAVE_STRLCPY=1', 'HAVE_SNPRINTF=1', 'HAVE_VSNPRINTF=1', 'NEED_YYPARSE_WRAPPER=1', 'yylval=pcap_lval'],
     198                source = "freebsd/contrib/libpcap/scanner.c")
     199    libbsd_use += ["lex_pcap"]
    185200
    186201    # Yacc
     
    192207                features = "c",
    193208                cflags = cflags,
    194                 includes = includes,
     209                includes = [] + includes,
     210                defines = [],
    195211                source = "freebsd/lib/libipsec/policy_parse.c")
    196212    libbsd_use += ["yacc___libipsecyy"]
     
    202218                features = "c",
    203219                cflags = cflags,
    204                 includes = includes,
     220                includes = [] + includes,
     221                defines = [],
    205222                source = "freebsd/lib/libc/net/nsparser.c")
    206223    libbsd_use += ["yacc__nsyy"]
     224    if bld.env.AUTO_REGEN:
     225        bld(target = "freebsd/contrib/libpcap/grammar.c",
     226            source = "freebsd/contrib/libpcap/grammar.y",
     227            rule = "${YACC} -b pcap -d -p pcap ${SRC} && sed -e '/YY_BUF_SIZE/s/16384/1024/' < pcap.tab.c > ${TGT} && rm -f pcap.tab.c && mv pcap.tab.h freebsd/contrib/libpcap/tokdefs.h")
     228    bld.objects(target = "yacc_pcap",
     229                features = "c",
     230                cflags = cflags,
     231                includes = [] + includes,
     232                defines = ['INET6', '_U_=__attribute__((unused))', 'HAVE_INTTYPES=1', 'HAVE_STDINT=1', 'HAVE_STRERROR=1', 'HAVE_STRLCPY=1', 'HAVE_SNPRINTF=1', 'HAVE_VSNPRINTF=1', 'NEED_YYPARSE_WRAPPER=1', 'yylval=pcap_lval'],
     233                source = "freebsd/contrib/libpcap/grammar.c")
     234    libbsd_use += ["yacc_pcap"]
    207235
    208236    # Objects built with different CFLAGS
     
    348376                features = "c",
    349377                cflags = cflags,
    350                 includes = includes,
     378                includes = [] + includes,
    351379                defines = ['INET6'],
    352380                source = objs01_source)
    353381    libbsd_use += ["objs01"]
    354382
    355     objs02_source = ['rtemsbsd/mghttpd/mongoose.c']
     383    objs02_source = ['freebsd/contrib/tcpdump/addrtoname.c',
     384                     'freebsd/contrib/tcpdump/af.c',
     385                     'freebsd/contrib/tcpdump/bpf_dump.c',
     386                     'freebsd/contrib/tcpdump/checksum.c',
     387                     'freebsd/contrib/tcpdump/cpack.c',
     388                     'freebsd/contrib/tcpdump/gmpls.c',
     389                     'freebsd/contrib/tcpdump/gmt2local.c',
     390                     'freebsd/contrib/tcpdump/in_cksum.c',
     391                     'freebsd/contrib/tcpdump/ipproto.c',
     392                     'freebsd/contrib/tcpdump/l2vpn.c',
     393                     'freebsd/contrib/tcpdump/machdep.c',
     394                     'freebsd/contrib/tcpdump/nlpid.c',
     395                     'freebsd/contrib/tcpdump/oui.c',
     396                     'freebsd/contrib/tcpdump/parsenfsfh.c',
     397                     'freebsd/contrib/tcpdump/print-802_11.c',
     398                     'freebsd/contrib/tcpdump/print-802_15_4.c',
     399                     'freebsd/contrib/tcpdump/print-ah.c',
     400                     'freebsd/contrib/tcpdump/print-aodv.c',
     401                     'freebsd/contrib/tcpdump/print-ap1394.c',
     402                     'freebsd/contrib/tcpdump/print-arcnet.c',
     403                     'freebsd/contrib/tcpdump/print-arp.c',
     404                     'freebsd/contrib/tcpdump/print-ascii.c',
     405                     'freebsd/contrib/tcpdump/print-atalk.c',
     406                     'freebsd/contrib/tcpdump/print-atm.c',
     407                     'freebsd/contrib/tcpdump/print-babel.c',
     408                     'freebsd/contrib/tcpdump/print-beep.c',
     409                     'freebsd/contrib/tcpdump/print-bfd.c',
     410                     'freebsd/contrib/tcpdump/print-bgp.c',
     411                     'freebsd/contrib/tcpdump/print-bootp.c',
     412                     'freebsd/contrib/tcpdump/print-bt.c',
     413                     'freebsd/contrib/tcpdump/print-carp.c',
     414                     'freebsd/contrib/tcpdump/print-cdp.c',
     415                     'freebsd/contrib/tcpdump/print-cfm.c',
     416                     'freebsd/contrib/tcpdump/print-chdlc.c',
     417                     'freebsd/contrib/tcpdump/print-cip.c',
     418                     'freebsd/contrib/tcpdump/print-cnfp.c',
     419                     'freebsd/contrib/tcpdump/print-dccp.c',
     420                     'freebsd/contrib/tcpdump/print-decnet.c',
     421                     'freebsd/contrib/tcpdump/print-dhcp6.c',
     422                     'freebsd/contrib/tcpdump/print-domain.c',
     423                     'freebsd/contrib/tcpdump/print-dtp.c',
     424                     'freebsd/contrib/tcpdump/print-dvmrp.c',
     425                     'freebsd/contrib/tcpdump/print-eap.c',
     426                     'freebsd/contrib/tcpdump/print-egp.c',
     427                     'freebsd/contrib/tcpdump/print-eigrp.c',
     428                     'freebsd/contrib/tcpdump/print-enc.c',
     429                     'freebsd/contrib/tcpdump/print-esp.c',
     430                     'freebsd/contrib/tcpdump/print-ether.c',
     431                     'freebsd/contrib/tcpdump/print-fddi.c',
     432                     'freebsd/contrib/tcpdump/print-forces.c',
     433                     'freebsd/contrib/tcpdump/print-fr.c',
     434                     'freebsd/contrib/tcpdump/print-frag6.c',
     435                     'freebsd/contrib/tcpdump/print-gre.c',
     436                     'freebsd/contrib/tcpdump/print-hsrp.c',
     437                     'freebsd/contrib/tcpdump/print-icmp.c',
     438                     'freebsd/contrib/tcpdump/print-icmp6.c',
     439                     'freebsd/contrib/tcpdump/print-igmp.c',
     440                     'freebsd/contrib/tcpdump/print-igrp.c',
     441                     'freebsd/contrib/tcpdump/print-ip.c',
     442                     'freebsd/contrib/tcpdump/print-ip6.c',
     443                     'freebsd/contrib/tcpdump/print-ip6opts.c',
     444                     'freebsd/contrib/tcpdump/print-ipcomp.c',
     445                     'freebsd/contrib/tcpdump/print-ipfc.c',
     446                     'freebsd/contrib/tcpdump/print-ipnet.c',
     447                     'freebsd/contrib/tcpdump/print-ipx.c',
     448                     'freebsd/contrib/tcpdump/print-isakmp.c',
     449                     'freebsd/contrib/tcpdump/print-isoclns.c',
     450                     'freebsd/contrib/tcpdump/print-juniper.c',
     451                     'freebsd/contrib/tcpdump/print-krb.c',
     452                     'freebsd/contrib/tcpdump/print-l2tp.c',
     453                     'freebsd/contrib/tcpdump/print-lane.c',
     454                     'freebsd/contrib/tcpdump/print-ldp.c',
     455                     'freebsd/contrib/tcpdump/print-llc.c',
     456                     'freebsd/contrib/tcpdump/print-lldp.c',
     457                     'freebsd/contrib/tcpdump/print-lmp.c',
     458                     'freebsd/contrib/tcpdump/print-lspping.c',
     459                     'freebsd/contrib/tcpdump/print-lwapp.c',
     460                     'freebsd/contrib/tcpdump/print-lwres.c',
     461                     'freebsd/contrib/tcpdump/print-mobile.c',
     462                     'freebsd/contrib/tcpdump/print-mobility.c',
     463                     'freebsd/contrib/tcpdump/print-mpcp.c',
     464                     'freebsd/contrib/tcpdump/print-mpls.c',
     465                     'freebsd/contrib/tcpdump/print-msdp.c',
     466                     'freebsd/contrib/tcpdump/print-msnlb.c',
     467                     'freebsd/contrib/tcpdump/print-netbios.c',
     468                     'freebsd/contrib/tcpdump/print-nfs.c',
     469                     'freebsd/contrib/tcpdump/print-ntp.c',
     470                     'freebsd/contrib/tcpdump/print-null.c',
     471                     'freebsd/contrib/tcpdump/print-olsr.c',
     472                     'freebsd/contrib/tcpdump/print-ospf.c',
     473                     'freebsd/contrib/tcpdump/print-ospf6.c',
     474                     'freebsd/contrib/tcpdump/print-otv.c',
     475                     'freebsd/contrib/tcpdump/print-pflog.c',
     476                     'freebsd/contrib/tcpdump/print-pfsync.c',
     477                     'freebsd/contrib/tcpdump/print-pgm.c',
     478                     'freebsd/contrib/tcpdump/print-pim.c',
     479                     'freebsd/contrib/tcpdump/print-ppi.c',
     480                     'freebsd/contrib/tcpdump/print-ppp.c',
     481                     'freebsd/contrib/tcpdump/print-pppoe.c',
     482                     'freebsd/contrib/tcpdump/print-pptp.c',
     483                     'freebsd/contrib/tcpdump/print-radius.c',
     484                     'freebsd/contrib/tcpdump/print-raw.c',
     485                     'freebsd/contrib/tcpdump/print-rip.c',
     486                     'freebsd/contrib/tcpdump/print-ripng.c',
     487                     'freebsd/contrib/tcpdump/print-rpki-rtr.c',
     488                     'freebsd/contrib/tcpdump/print-rrcp.c',
     489                     'freebsd/contrib/tcpdump/print-rsvp.c',
     490                     'freebsd/contrib/tcpdump/print-rt6.c',
     491                     'freebsd/contrib/tcpdump/print-rx.c',
     492                     'freebsd/contrib/tcpdump/print-sctp.c',
     493                     'freebsd/contrib/tcpdump/print-sflow.c',
     494                     'freebsd/contrib/tcpdump/print-sip.c',
     495                     'freebsd/contrib/tcpdump/print-sl.c',
     496                     'freebsd/contrib/tcpdump/print-sll.c',
     497                     'freebsd/contrib/tcpdump/print-slow.c',
     498                     'freebsd/contrib/tcpdump/print-smb.c',
     499                     'freebsd/contrib/tcpdump/print-snmp.c',
     500                     'freebsd/contrib/tcpdump/print-stp.c',
     501                     'freebsd/contrib/tcpdump/print-sunatm.c',
     502                     'freebsd/contrib/tcpdump/print-symantec.c',
     503                     'freebsd/contrib/tcpdump/print-syslog.c',
     504                     'freebsd/contrib/tcpdump/print-tcp.c',
     505                     'freebsd/contrib/tcpdump/print-telnet.c',
     506                     'freebsd/contrib/tcpdump/print-tftp.c',
     507                     'freebsd/contrib/tcpdump/print-timed.c',
     508                     'freebsd/contrib/tcpdump/print-tipc.c',
     509                     'freebsd/contrib/tcpdump/print-token.c',
     510                     'freebsd/contrib/tcpdump/print-udld.c',
     511                     'freebsd/contrib/tcpdump/print-udp.c',
     512                     'freebsd/contrib/tcpdump/print-usb.c',
     513                     'freebsd/contrib/tcpdump/print-vjc.c',
     514                     'freebsd/contrib/tcpdump/print-vqp.c',
     515                     'freebsd/contrib/tcpdump/print-vrrp.c',
     516                     'freebsd/contrib/tcpdump/print-vtp.c',
     517                     'freebsd/contrib/tcpdump/print-vxlan.c',
     518                     'freebsd/contrib/tcpdump/print-wb.c',
     519                     'freebsd/contrib/tcpdump/print-zephyr.c',
     520                     'freebsd/contrib/tcpdump/print-zeromq.c',
     521                     'freebsd/contrib/tcpdump/setsignal.c',
     522                     'freebsd/contrib/tcpdump/signature.c',
     523                     'freebsd/contrib/tcpdump/smbutil.c',
     524                     'freebsd/contrib/tcpdump/tcpdump.c',
     525                     'freebsd/contrib/tcpdump/util.c']
    356526    bld.objects(target = "objs02",
    357527                features = "c",
    358528                cflags = cflags,
    359                 includes = includes,
    360                 defines = ['NO_SSL', 'NO_POPEN', 'NO_CGI', 'USE_WEBSOCKET'],
     529                includes = ['freebsd/contrib/tcpdump', 'freebsd/usr.sbin/tcpdump/tcpdump'] + includes,
     530                defines = ['INET6', '_U_=__attribute__((unused))', 'HAVE_CONFIG_H=1', 'HAVE_NET_PFVAR_H=1'],
    361531                source = objs02_source)
    362532    libbsd_use += ["objs02"]
    363533
    364     objs03_source = ['freebsd/lib/libc/db/btree/bt_close.c',
     534    objs03_source = ['freebsd/contrib/libpcap/bpf_image.c',
     535                     'freebsd/contrib/libpcap/etherent.c',
     536                     'freebsd/contrib/libpcap/fad-getad.c',
     537                     'freebsd/contrib/libpcap/gencode.c',
     538                     'freebsd/contrib/libpcap/inet.c',
     539                     'freebsd/contrib/libpcap/nametoaddr.c',
     540                     'freebsd/contrib/libpcap/optimize.c',
     541                     'freebsd/contrib/libpcap/pcap-bpf.c',
     542                     'freebsd/contrib/libpcap/pcap-common.c',
     543                     'freebsd/contrib/libpcap/pcap.c',
     544                     'freebsd/contrib/libpcap/savefile.c',
     545                     'freebsd/contrib/libpcap/sf-pcap-ng.c',
     546                     'freebsd/contrib/libpcap/sf-pcap.c']
     547    bld.objects(target = "objs03",
     548                features = "c",
     549                cflags = cflags,
     550                includes = [] + includes,
     551                defines = ['INET6', '_U_=__attribute__((unused))', 'HAVE_INTTYPES=1', 'HAVE_STDINT=1', 'HAVE_STRERROR=1', 'HAVE_STRLCPY=1', 'HAVE_SNPRINTF=1', 'HAVE_VSNPRINTF=1'],
     552                source = objs03_source)
     553    libbsd_use += ["objs03"]
     554
     555    objs04_source = ['rtemsbsd/mghttpd/mongoose.c']
     556    bld.objects(target = "objs04",
     557                features = "c",
     558                cflags = cflags,
     559                includes = [] + includes,
     560                defines = ['NO_SSL', 'NO_POPEN', 'NO_CGI', 'USE_WEBSOCKET'],
     561                source = objs04_source)
     562    libbsd_use += ["objs04"]
     563
     564    objs05_source = ['freebsd/lib/libc/db/btree/bt_close.c',
    365565                     'freebsd/lib/libc/db/btree/bt_conv.c',
    366566                     'freebsd/lib/libc/db/btree/bt_debug.c',
     
    386586                     'freebsd/lib/libc/db/recno/rec_seq.c',
    387587                     'freebsd/lib/libc/db/recno/rec_utils.c']
    388     bld.objects(target = "objs03",
     588    bld.objects(target = "objs05",
    389589                features = "c",
    390590                cflags = cflags,
    391                 includes = includes,
     591                includes = [] + includes,
    392592                defines = ['__DBINTERFACE_PRIVATE', 'INET6'],
    393                 source = objs03_source)
    394     libbsd_use += ["objs03"]
    395 
    396     objs04_source = ['dhcpcd/arp.c',
     593                source = objs05_source)
     594    libbsd_use += ["objs05"]
     595
     596    objs06_source = ['dhcpcd/arp.c',
    397597                     'dhcpcd/auth.c',
    398598                     'dhcpcd/bpf.c',
     
    416616                     'dhcpcd/net.c',
    417617                     'dhcpcd/platform-bsd.c']
    418     bld.objects(target = "objs04",
     618    bld.objects(target = "objs06",
    419619                features = "c",
    420620                cflags = cflags,
    421                 includes = includes,
     621                includes = [] + includes,
    422622                defines = ['__FreeBSD__', 'THERE_IS_NO_FORK', 'MASTER_ONLY', 'INET', 'INET6'],
    423                 source = objs04_source)
    424     libbsd_use += ["objs04"]
     623                source = objs06_source)
     624    libbsd_use += ["objs06"]
    425625
    426626    source = ['freebsd/sys/arm/xilinx/zy7_slcr.c',
     
    8621062                   'freebsd/sys/bfin/bfin/legacy.c',
    8631063                   'freebsd/sys/bfin/pci/pci_bus.c']
     1064    if bld.get_env()["RTEMS_ARCH"] == "cflags":
     1065        source += ['default']
    8641066    if bld.get_env()["RTEMS_ARCH"] == "h8300":
    8651067        source += ['freebsd/sys/h8300/h8300/in_cksum.c',
Note: See TracChangeset for help on using the changeset viewer.