trafgen: l2: Add VLAN header generation
[netsniff-ng-new.git] / netsniff-ng / Makefile
blob6f9d0b2e2e24dcf53182cdf2c3f06a2b808b617d
1 netsniff-ng-libs = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs libnl-3.0) \
2 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs libnl-genl-3.0) \
3 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs libnl-route-3.0) \
4 -lpthread
6 ifeq ($(CONFIG_LIBPCAP), 1)
7 netsniff-ng-libs += -lpcap
8 endif
9 ifeq ($(CONFIG_GEOIP), 1)
10 netsniff-ng-libs += -lGeoIP \
11 -lz
12 endif
14 netsniff-ng-objs = dissector.o \
15 dissector_sll.o \
16 dissector_eth.o \
17 dissector_80211.o \
18 dissector_netlink.o \
19 lookup.o \
20 proto_arp.o \
21 proto_ethernet.o \
22 proto_icmpv4.o \
23 proto_icmpv6.o \
24 proto_igmp.o \
25 proto_ip_authentication_hdr.o \
26 proto_ip_esp.o \
27 proto_ipv4.o \
28 proto_ipv6.o \
29 proto_ipv6_dest_opts.o \
30 proto_ipv6_fragm.o \
31 proto_ipv6_hop_by_hop.o \
32 proto_ipv6_in_ipv4.o \
33 proto_ipv6_mobility_hdr.o \
34 proto_ipv6_no_nxt_hdr.o \
35 proto_ipv6_routing.o \
36 proto_lldp.o \
37 proto_nlmsg.o \
38 proto_none.o \
39 proto_tcp.o \
40 proto_udp.o \
41 proto_vlan.o \
42 proto_vlan_q_in_q.o \
43 proto_mpls_unicast.o \
44 proto_80211_mac_hdr.o \
45 privs.o \
46 proc.o \
47 dev.o \
48 str.o \
49 sig.o \
50 sock.o \
51 irq.o \
52 iosched.o \
53 ioops.o \
54 link.o \
55 xmalloc.o \
56 hash.o \
57 bpf.o \
58 pcap_rw.o \
59 pcap_sg.o \
60 pcap_mm.o \
61 ring_rx.o \
62 ring_tx.o \
63 ring.o \
64 tprintf.o \
65 timer.o \
66 mac80211.o \
67 die.o \
68 sysctl.o \
69 netsniff-ng.o
71 ifeq ($(CONFIG_LIBPCAP), 1)
72 netsniff-ng-objs += bpf_comp.o
73 endif
74 ifeq ($(CONFIG_GEOIP), 1)
75 netsniff-ng-objs += geoip.o
76 endif
77 ifeq ($(CONFIG_HWTSTAMP), 1)
78 netsniff-ng-objs += tstamping.o
79 endif
81 netsniff-ng-eflags = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --cflags libnl-3.0) \
82 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --cflags libnl-genl-3.0) \
83 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --cflags libnl-route-3.0) \
84 -DNEED_TCPDUMP_LIKE_FILTER
86 netsniff-ng-confs = ether.conf \
87 tcp.conf \
88 udp.conf \
89 oui.conf \
90 geoip.conf