• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:= $(call my-dir)
2
3# Based on the tcpdump Makefile...
4
5# CSRC
6tcpdump_src_files := setsignal.c tcpdump.c
7
8# LIBNETDISSECT_SRC
9tcpdump_src_files += \
10        addrtoname.c \
11        addrtostr.c \
12        af.c \
13        ascii_strcasecmp.c \
14        checksum.c \
15        cpack.c \
16        gmpls.c \
17        gmt2local.c \
18        in_cksum.c \
19        ipproto.c \
20        l2vpn.c \
21        machdep.c \
22        nlpid.c \
23        oui.c \
24        parsenfsfh.c \
25        print.c \
26        print-802_11.c \
27        print-802_15_4.c \
28        print-ah.c \
29        print-ahcp.c \
30        print-aodv.c \
31        print-aoe.c \
32        print-ap1394.c \
33        print-arcnet.c \
34        print-arp.c \
35        print-ascii.c \
36        print-atalk.c \
37        print-atm.c \
38        print-babel.c \
39        print-beep.c \
40        print-bfd.c \
41        print-bgp.c \
42        print-bootp.c \
43        print-bt.c \
44        print-calm-fast.c \
45        print-carp.c \
46        print-cdp.c \
47        print-cfm.c \
48        print-chdlc.c \
49        print-cip.c \
50        print-cnfp.c \
51        print-dccp.c \
52        print-decnet.c \
53        print-dhcp6.c \
54        print-domain.c \
55        print-dtp.c \
56        print-dvmrp.c \
57        print-eap.c \
58        print-egp.c \
59        print-eigrp.c \
60        print-enc.c \
61        print-esp.c \
62        print-ether.c \
63        print-fddi.c \
64        print-forces.c \
65        print-fr.c \
66        print-frag6.c \
67        print-ftp.c \
68        print-geneve.c \
69        print-geonet.c \
70        print-gre.c \
71        print-hncp.c \
72        print-hsrp.c \
73        print-http.c \
74        print-icmp.c \
75        print-icmp6.c \
76        print-igmp.c \
77        print-igrp.c \
78        print-ip.c \
79        print-ip6.c \
80        print-ip6opts.c \
81        print-ipcomp.c \
82        print-ipfc.c \
83        print-ipnet.c \
84        print-ipx.c \
85        print-isakmp.c \
86        print-isoclns.c \
87        print-juniper.c \
88        print-krb.c \
89        print-l2tp.c \
90        print-lane.c \
91        print-ldp.c \
92        print-lisp.c \
93        print-llc.c \
94        print-lldp.c \
95        print-lmp.c \
96        print-loopback.c \
97        print-lspping.c \
98        print-lwapp.c \
99        print-lwres.c \
100        print-m3ua.c \
101        print-medsa.c \
102        print-mobile.c \
103        print-mobility.c \
104        print-mpcp.c \
105        print-mpls.c \
106        print-mptcp.c \
107        print-msdp.c \
108        print-msnlb.c \
109        print-nflog.c \
110        print-nfs.c \
111        print-nsh.c \
112        print-ntp.c \
113        print-null.c \
114        print-olsr.c \
115        print-openflow-1.0.c \
116        print-openflow.c \
117        print-ospf.c \
118        print-ospf6.c \
119        print-otv.c \
120        print-pgm.c \
121        print-pim.c \
122        print-pktap.c \
123        print-ppi.c \
124        print-ppp.c \
125        print-pppoe.c \
126        print-pptp.c \
127        print-radius.c \
128        print-raw.c \
129        print-resp.c \
130        print-rip.c \
131        print-ripng.c \
132        print-rpki-rtr.c \
133        print-rrcp.c \
134        print-rsvp.c \
135        print-rt6.c \
136        print-rtsp.c \
137        print-rx.c \
138        print-sctp.c \
139        print-sflow.c \
140        print-sip.c \
141        print-sl.c \
142        print-sll.c \
143        print-slow.c \
144        print-smtp.c \
145        print-snmp.c \
146        print-stp.c \
147        print-sunatm.c \
148        print-sunrpc.c \
149        print-symantec.c \
150        print-syslog.c \
151        print-tcp.c \
152        print-telnet.c \
153        print-tftp.c \
154        print-timed.c \
155        print-tipc.c \
156        print-token.c \
157        print-udld.c \
158        print-udp.c \
159        print-usb.c \
160        print-vjc.c \
161        print-vqp.c \
162        print-vrrp.c \
163        print-vtp.c \
164        print-vxlan.c \
165        print-vxlan-gpe.c \
166        print-wb.c \
167        print-zephyr.c \
168        print-zeromq.c \
169        netdissect.c \
170        signature.c \
171        strtoaddr.c \
172        util-print.c \
173
174# LOCALSRC
175tcpdump_src_files += print-smb.c smbutil.c
176
177# GENSRC
178tcpdump_src_files += version.c
179
180include $(CLEAR_VARS)
181LOCAL_SRC_FILES := $(tcpdump_src_files)
182LOCAL_CFLAGS += -D_BSD_SOURCE
183LOCAL_CFLAGS += -DHAVE_CONFIG_H
184LOCAL_CFLAGS += -D_U_="__attribute__((unused))"
185LOCAL_CFLAGS += -Werror
186# http://b/33566695
187LOCAL_CFLAGS += -Wno-address-of-packed-member
188LOCAL_CFLAGS += -Wno-sign-compare
189LOCAL_CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers
190LOCAL_SHARED_LIBRARIES += libssl libcrypto libpcap
191LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
192LOCAL_MODULE_TAGS := debug
193LOCAL_MODULE := tcpdump
194include $(BUILD_EXECUTABLE)
195