The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 1 | # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 |
| 2 | # The Regents of the University of California. All rights reserved. |
| 3 | # |
| 4 | # Redistribution and use in source and binary forms, with or without |
| 5 | # modification, are permitted provided that: (1) source code distributions |
| 6 | # retain the above copyright notice and this paragraph in its entirety, (2) |
| 7 | # distributions including binary code include the above copyright notice and |
| 8 | # this paragraph in its entirety in the documentation or other materials |
| 9 | # provided with the distribution, and (3) all advertising materials mentioning |
| 10 | # features or use of this software display the following acknowledgement: |
| 11 | # ``This product includes software developed by the University of California, |
| 12 | # Lawrence Berkeley Laboratory and its contributors.'' Neither the name of |
| 13 | # the University nor the names of its contributors may be used to endorse |
| 14 | # or promote products derived from this software without specific prior |
| 15 | # written permission. |
| 16 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED |
| 17 | # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF |
| 18 | # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 19 | |
| 20 | # |
| 21 | # Various configurable paths (remember to edit Makefile.in, not Makefile) |
| 22 | # |
| 23 | |
| 24 | # Top level hierarchy |
| 25 | prefix = @prefix@ |
| 26 | exec_prefix = @exec_prefix@ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 27 | datarootdir = @datarootdir@ |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 28 | # Pathname of directory to install the binary |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 29 | bindir = @bindir@ |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 30 | # Pathname of directory to install the man page |
| 31 | mandir = @mandir@ |
| 32 | |
| 33 | # VPATH |
| 34 | srcdir = @srcdir@ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 35 | top_srcdir = @top_srcdir@ |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 36 | VPATH = @srcdir@ |
| 37 | |
| 38 | # |
| 39 | # You shouldn't need to edit anything below here. |
| 40 | # |
| 41 | |
| 42 | CC = @CC@ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 43 | AR = @AR@ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 44 | MKDEP = @MKDEP@ |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 45 | PROG = tcpdump |
| 46 | CCOPT = @V_CCOPT@ |
| 47 | INCLS = -I. @V_INCLS@ |
| 48 | DEFS = @DEFS@ @CPPFLAGS@ @V_DEFS@ |
| 49 | |
| 50 | # Standard CFLAGS |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 51 | CFLAGS = @CFLAGS@ |
| 52 | FULL_CFLAGS = $(CCOPT) $(DEFS) $(INCLS) $(CFLAGS) |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 53 | |
| 54 | # Standard LDFLAGS |
| 55 | LDFLAGS = @LDFLAGS@ |
| 56 | |
| 57 | # Standard LIBS |
| 58 | LIBS = @LIBS@ |
| 59 | |
| 60 | INSTALL = @INSTALL@ |
| 61 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 62 | INSTALL_DATA = @INSTALL_DATA@ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 63 | RANLIB = @RANLIB@ |
| 64 | |
| 65 | DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@ |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 66 | |
| 67 | # Explicitly define compilation rule since SunOS 4's make doesn't like gcc. |
| 68 | # Also, gcc does not remove the .o before forking 'as', which can be a |
| 69 | # problem if you don't own the file but can write to the directory. |
| 70 | .c.o: |
| 71 | @rm -f $@ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 72 | $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 73 | |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 74 | CSRC = fptype.c tcpdump.c |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 75 | |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 76 | LIBNETDISSECT_SRC=\ |
| 77 | addrtoname.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 78 | addrtostr.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 79 | af.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 80 | ascii_strcasecmp.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 81 | checksum.c \ |
| 82 | cpack.c \ |
| 83 | gmpls.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 84 | in_cksum.c \ |
| 85 | ipproto.c \ |
| 86 | l2vpn.c \ |
| 87 | machdep.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 88 | netdissect.c \ |
| 89 | netdissect-alloc.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 90 | nlpid.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 91 | ntp.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 92 | oui.c \ |
| 93 | parsenfsfh.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 94 | print.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 95 | print-802_11.c \ |
| 96 | print-802_15_4.c \ |
| 97 | print-ah.c \ |
| 98 | print-ahcp.c \ |
| 99 | print-aodv.c \ |
| 100 | print-aoe.c \ |
| 101 | print-ap1394.c \ |
| 102 | print-arcnet.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 103 | print-arista.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 104 | print-arp.c \ |
| 105 | print-ascii.c \ |
| 106 | print-atalk.c \ |
| 107 | print-atm.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 108 | print-babel.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 109 | print-bcm-li.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 110 | print-beep.c \ |
| 111 | print-bfd.c \ |
| 112 | print-bgp.c \ |
| 113 | print-bootp.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 114 | print-brcmtag.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 115 | print-bt.c \ |
| 116 | print-calm-fast.c \ |
| 117 | print-carp.c \ |
| 118 | print-cdp.c \ |
| 119 | print-cfm.c \ |
| 120 | print-chdlc.c \ |
| 121 | print-cip.c \ |
| 122 | print-cnfp.c \ |
| 123 | print-dccp.c \ |
| 124 | print-decnet.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 125 | print-dhcp6.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 126 | print-domain.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 127 | print-dsa.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 128 | print-dtp.c \ |
| 129 | print-dvmrp.c \ |
| 130 | print-eap.c \ |
| 131 | print-egp.c \ |
| 132 | print-eigrp.c \ |
| 133 | print-enc.c \ |
| 134 | print-esp.c \ |
| 135 | print-ether.c \ |
| 136 | print-fddi.c \ |
| 137 | print-forces.c \ |
| 138 | print-fr.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 139 | print-frag6.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 140 | print-ftp.c \ |
| 141 | print-geneve.c \ |
| 142 | print-geonet.c \ |
| 143 | print-gre.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 144 | print-hncp.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 145 | print-hsrp.c \ |
| 146 | print-http.c \ |
| 147 | print-icmp.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 148 | print-icmp6.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 149 | print-igmp.c \ |
| 150 | print-igrp.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 151 | print-ip-demux.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 152 | print-ip.c \ |
| 153 | print-ip6.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 154 | print-ip6opts.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 155 | print-ipcomp.c \ |
| 156 | print-ipfc.c \ |
| 157 | print-ipnet.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 158 | print-ipoib.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 159 | print-ipx.c \ |
| 160 | print-isakmp.c \ |
| 161 | print-isoclns.c \ |
| 162 | print-juniper.c \ |
| 163 | print-krb.c \ |
| 164 | print-l2tp.c \ |
| 165 | print-lane.c \ |
| 166 | print-ldp.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 167 | print-lisp.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 168 | print-llc.c \ |
| 169 | print-lldp.c \ |
| 170 | print-lmp.c \ |
| 171 | print-loopback.c \ |
| 172 | print-lspping.c \ |
| 173 | print-lwapp.c \ |
| 174 | print-lwres.c \ |
| 175 | print-m3ua.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 176 | print-macsec.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 177 | print-mobile.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 178 | print-mobility.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 179 | print-mpcp.c \ |
| 180 | print-mpls.c \ |
| 181 | print-mptcp.c \ |
| 182 | print-msdp.c \ |
| 183 | print-msnlb.c \ |
| 184 | print-nflog.c \ |
| 185 | print-nfs.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 186 | print-nsh.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 187 | print-ntp.c \ |
| 188 | print-null.c \ |
| 189 | print-olsr.c \ |
| 190 | print-openflow-1.0.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 191 | print-openflow-1.3.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 192 | print-openflow.c \ |
| 193 | print-ospf.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 194 | print-ospf6.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 195 | print-otv.c \ |
| 196 | print-pgm.c \ |
| 197 | print-pim.c \ |
| 198 | print-pktap.c \ |
| 199 | print-ppi.c \ |
| 200 | print-ppp.c \ |
| 201 | print-pppoe.c \ |
| 202 | print-pptp.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 203 | print-ptp.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 204 | print-radius.c \ |
| 205 | print-raw.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 206 | print-resp.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 207 | print-rip.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 208 | print-ripng.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 209 | print-rpki-rtr.c \ |
| 210 | print-rrcp.c \ |
| 211 | print-rsvp.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 212 | print-rt6.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 213 | print-rtsp.c \ |
| 214 | print-rx.c \ |
| 215 | print-sctp.c \ |
| 216 | print-sflow.c \ |
| 217 | print-sip.c \ |
| 218 | print-sl.c \ |
| 219 | print-sll.c \ |
| 220 | print-slow.c \ |
| 221 | print-smtp.c \ |
| 222 | print-snmp.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 223 | print-someip.c \ |
| 224 | print-ssh.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 225 | print-stp.c \ |
| 226 | print-sunatm.c \ |
| 227 | print-sunrpc.c \ |
| 228 | print-symantec.c \ |
| 229 | print-syslog.c \ |
| 230 | print-tcp.c \ |
| 231 | print-telnet.c \ |
| 232 | print-tftp.c \ |
| 233 | print-timed.c \ |
| 234 | print-tipc.c \ |
| 235 | print-token.c \ |
| 236 | print-udld.c \ |
| 237 | print-udp.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 238 | print-unsupported.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 239 | print-usb.c \ |
| 240 | print-vjc.c \ |
| 241 | print-vqp.c \ |
| 242 | print-vrrp.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 243 | print-vsock.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 244 | print-vtp.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 245 | print-vxlan-gpe.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 246 | print-vxlan.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 247 | print-wb.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 248 | print-zep.c \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 249 | print-zephyr.c \ |
| 250 | print-zeromq.c \ |
| 251 | signature.c \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 252 | strtoaddr.c \ |
| 253 | util-print.c |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 254 | |
| 255 | LOCALSRC = @LOCALSRC@ |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 256 | LIBOBJS = @LIBOBJS@ |
| 257 | |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 258 | LIBNETDISSECT_OBJ=$(LIBNETDISSECT_SRC:.c=.o) ${LOCALSRC:.c=.o} ${LIBOBJS} |
| 259 | LIBNETDISSECT=libnetdissect.a |
| 260 | |
| 261 | |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 262 | SRC = $(CSRC) $(LOCALSRC) |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 263 | |
| 264 | # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot |
| 265 | # hack the extra indirection |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 266 | OBJ = $(CSRC:.c=.o) |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 267 | HDR = \ |
| 268 | addrtoname.h \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 269 | addrtostr.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 270 | af.h \ |
| 271 | ah.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 272 | appletalk.h \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 273 | ascii_strcasecmp.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 274 | atm.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 275 | chdlc.h \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 276 | compiler-tests.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 277 | cpack.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 278 | ethertype.h \ |
| 279 | extract.h \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 280 | fptype.h \ |
| 281 | ftmacros.h \ |
Elliott Hughes | cec480a | 2017-12-19 16:54:57 -0800 | [diff] [blame] | 282 | funcattrs.h \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 283 | getservent.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 284 | gmpls.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 285 | interface.h \ |
| 286 | ip.h \ |
| 287 | ip6.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 288 | ipproto.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 289 | l2vpn.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 290 | llc.h \ |
| 291 | machdep.h \ |
| 292 | mib.h \ |
| 293 | mpls.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 294 | nameser.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 295 | netdissect.h \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 296 | netdissect-alloc.h \ |
| 297 | netdissect-ctype.h \ |
| 298 | netdissect-stdinc.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 299 | nfs.h \ |
| 300 | nfsfh.h \ |
| 301 | nlpid.h \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 302 | ntp.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 303 | openflow.h \ |
| 304 | ospf.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 305 | oui.h \ |
| 306 | pcap-missing.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 307 | ppp.h \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 308 | print.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 309 | rpc_auth.h \ |
| 310 | rpc_msg.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 311 | signature.h \ |
| 312 | slcompress.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 313 | smb.h \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 314 | status-exit-codes.h \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 315 | strtoaddr.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 316 | tcp.h \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 317 | timeval-operations.h \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 318 | udp.h \ |
| 319 | varattrs.h |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 320 | |
| 321 | TAGHDR = \ |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 322 | /usr/include/netinet/if_ether.h \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 323 | /usr/include/netinet/in.h |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 324 | |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 325 | TAGFILES = $(SRC) $(HDR) $(TAGHDR) $(LIBNETDISSECT_SRC) \ |
| 326 | print-pflog.c print-smb.c smbutil.c |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 327 | |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 328 | CLEANFILES = $(PROG) $(OBJ) $(LIBNETDISSECT_OBJ) |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 329 | |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 330 | EXTRA_DIST = \ |
| 331 | CHANGES \ |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 332 | CONTRIBUTING \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 333 | CREDITS \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 334 | CMakeLists.txt \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 335 | INSTALL.txt \ |
| 336 | LICENSE \ |
| 337 | Makefile.in \ |
| 338 | Makefile-devel-adds \ |
| 339 | README.md \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 340 | VERSION \ |
| 341 | aclocal.m4 \ |
| 342 | atime.awk \ |
| 343 | bpf_dump.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 344 | cmake_uninstall.cmake.in \ |
| 345 | cmakeconfig.h.in \ |
| 346 | cmake/Modules/FindCRYPTO.cmake \ |
| 347 | cmake/Modules/FindPCAP.cmake \ |
| 348 | cmake/Modules/FindSMI.cmake \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 349 | config.guess \ |
| 350 | config.h.in \ |
| 351 | config.sub \ |
| 352 | configure \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 353 | configure.ac \ |
| 354 | doc/README.Win32.md \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 355 | install-sh \ |
| 356 | lbl/os-osf4.h \ |
| 357 | lbl/os-solaris2.h \ |
| 358 | lbl/os-sunos4.h \ |
| 359 | lbl/os-ultrix4.h \ |
| 360 | makemib \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 361 | missing/dlnames.c \ |
| 362 | missing/datalinks.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 363 | missing/getopt_long.h \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 364 | missing/getopt_long.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 365 | missing/getservent.c \ |
| 366 | missing/pcap_dump_ftell.c \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 367 | missing/snprintf.c \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 368 | missing/strdup.c \ |
| 369 | missing/strlcat.c \ |
| 370 | missing/strlcpy.c \ |
| 371 | missing/strsep.c \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 372 | missing/win_ether_ntohost.c \ |
| 373 | missing/win_ether_ntohost.h \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 374 | mkdep \ |
| 375 | packetdat.awk \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 376 | print-pflog.c \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 377 | print-smb.c \ |
| 378 | send-ack.awk \ |
| 379 | smbutil.c \ |
| 380 | stime.awk \ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 381 | tcpdump.1.in |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 382 | |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 383 | TEST_DIST= `git ls-files tests | grep -v 'tests/\..*'` |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 384 | |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 385 | all: $(PROG) |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 386 | |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 387 | $(PROG): $(OBJ) @V_PCAPDEP@ $(LIBNETDISSECT) |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 388 | @rm -f $@ |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 389 | $(CC) $(FULL_CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBNETDISSECT) $(LIBS) |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 390 | |
| 391 | $(LIBNETDISSECT): $(LIBNETDISSECT_OBJ) |
| 392 | @rm -f $@ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 393 | $(AR) cr $@ $(LIBNETDISSECT_OBJ) |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 394 | $(RANLIB) $@ |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 395 | |
| 396 | datalinks.o: $(srcdir)/missing/datalinks.c |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 397 | $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/datalinks.c |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 398 | dlnames.o: $(srcdir)/missing/dlnames.c |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 399 | $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/dlnames.c |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 400 | getservent.o: $(srcdir)/missing/getservent.c |
| 401 | $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/getservent.c |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 402 | getopt_long.o: $(srcdir)/missing/getopt_long.c |
| 403 | $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/getopt_long.c |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 404 | snprintf.o: $(srcdir)/missing/snprintf.c |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 405 | $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/snprintf.c |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 406 | strdup.o: $(srcdir)/missing/strdup.c |
| 407 | $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strdup.c |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 408 | strlcat.o: $(srcdir)/missing/strlcat.c |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 409 | $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strlcat.c |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 410 | strlcpy.o: $(srcdir)/missing/strlcpy.c |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 411 | $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strlcpy.c |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 412 | strsep.o: $(srcdir)/missing/strsep.c |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 413 | $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strsep.c |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 414 | pcap_dump_ftell.o: $(srcdir)/missing/pcap_dump_ftell.c |
| 415 | $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/pcap_dump_ftell.c |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 416 | |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 417 | install: all |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 418 | [ -d $(DESTDIR)$(bindir) ] || \ |
| 419 | (mkdir -p $(DESTDIR)$(bindir); chmod 755 $(DESTDIR)$(bindir)) |
| 420 | $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(bindir)/$(PROG) |
| 421 | $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(bindir)/$(PROG).`cat ${srcdir}/VERSION` |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 422 | [ -d $(DESTDIR)$(mandir)/man1 ] || \ |
| 423 | (mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755 $(DESTDIR)$(mandir)/man1) |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 424 | $(INSTALL_DATA) $(PROG).1 $(DESTDIR)$(mandir)/man1/$(PROG).1 |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 425 | |
| 426 | uninstall: |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 427 | rm -f $(DESTDIR)$(bindir)/$(PROG) |
| 428 | rm -f $(DESTDIR)$(bindir)/$(PROG).`cat ${srcdir}/VERSION` |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 429 | rm -f $(DESTDIR)$(mandir)/man1/$(PROG).1 |
| 430 | |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 431 | lint: |
| 432 | lint -hbxn $(SRC) $(LIBNETDISSECT_SRC) | \ |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 433 | grep -v 'struct/union .* never defined' | \ |
| 434 | grep -v 'possible pointer alignment problem' |
| 435 | |
| 436 | clean: |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 437 | rm -f $(CLEANFILES) $(PROG)-`cat ${srcdir}/VERSION`.tar.gz |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 438 | |
| 439 | distclean: |
| 440 | rm -f $(CLEANFILES) Makefile config.cache config.log config.status \ |
Elliott Hughes | 892a68b | 2015-10-19 14:43:53 -0700 | [diff] [blame] | 441 | config.h gnuc.h os-proto.h stamp-h stamp-h.in $(PROG).1 \ |
| 442 | libnetdissect.a tests/.failed tests/.passed \ |
| 443 | tests/failure-outputs.txt |
| 444 | rm -rf autom4te.cache tests/DIFF tests/NEW |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 445 | |
| 446 | check: tcpdump |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 447 | $(srcdir)/tests/TESTrun |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 448 | |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 449 | extags: $(TAGFILES) |
| 450 | ctags $(TAGFILES) |
| 451 | |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 452 | tags: $(TAGFILES) |
| 453 | ctags -wtd $(TAGFILES) |
| 454 | |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 455 | TAGS: $(TAGFILES) |
| 456 | etags $(TAGFILES) |
| 457 | |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 458 | releasetar: |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 459 | @autoreconf -f; \ |
| 460 | name=$(PROG)-`cat VERSION` ; \ |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 461 | mkdir $$name; \ |
| 462 | tar cf - $(CSRC) $(HDR) $(LIBNETDISSECT_SRC) $(EXTRA_DIST) $(TEST_DIST) | (cd $$name; tar xf -); \ |
| 463 | tar -c -z -f $$name.tar.gz $$name; \ |
| 464 | rm -rf $$name |
| 465 | |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 466 | rc1 rc2 rc3 rc4 rc5: |
| 467 | @VER=`cat $(srcdir)/VERSION`; \ |
| 468 | sed -i "s/$$VER/$${VER}$@/" VERSION ; \ |
| 469 | make releasetar; \ |
| 470 | git checkout VERSION configure |
| 471 | |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 472 | testlist: |
| 473 | echo $(TEST_DIST) |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 474 | |
Elliott Hughes | 820eced | 2021-08-20 18:00:50 -0700 | [diff] [blame] | 475 | depend: |
| 476 | $(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(DEFS) $(INCLS) $(SRC) $(LIBNETDISSECT_SRC) |
| 477 | |
| 478 | shellcheck: |
| 479 | shellcheck -f gcc build.sh build_matrix.sh |