1 # Makefile for cygwin gcc 2 # Nate Lawson <nate (at] rootlabs.oom> 3 4 # Location of your pcap src tree, build it first 5 PCAP_DIR = ../../../winpcap 6 7 # OPTFLAGS = -g 8 OPTFLAGS = -O 9 # -O2 may break things. Use at your own risk. 10 11 CFLAGS = -I ${PCAP_DIR}/wpcap/libpcap/bpf \ 12 -I ${PCAP_DIR}/wpcap/libpcap \ 13 -I ${PCAP_DIR}/wpcap/libpcap/Win32/Include \ 14 -I ${PCAP_DIR}/wpcap/libpcap/Win32/Include/net \ 15 -I ../../Win32/Include -I ../../linux-Include \ 16 -I ../../lbl -I../.. \ 17 -DWIN32 -DINET6 -DHAVE_ADDRINFO=1 -DHAVE_SOCKADDR_STORAGE=1 \ 18 -DHAVE_PCAP_LIST_DATALINKS=1 -DHAVE_PCAP_SET_DATALINK=1 \ 19 -DHAVE_PCAP_DATALINK_NAME_TO_VAL=1 \ 20 -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION=1 \ 21 -DHAVE_PCAP_DUMP_FTELL=1 -DHAVE_BPF_DUMP=1 \ 22 -DHAVE_PCAP_DUMP_FLUSH=1 -DHAVE_PCAP_FINDALLDEVS=1 \ 23 -DHAVE_PCAP_IF_T=1 -DHAVE_PCAP_LIB_VERSION=1 \ 24 -D_U_="__attribute__((unused))" \ 25 -D_WIN32_WINNT=0x0501 \ 26 -mno-cygwin ${OPTFLAGS} 27 LDFLAGS = 28 LIBS = -L ${PCAP_DIR}/WPCAP/LIB -lwpcap -lws2_32 29 OBJS = \ 30 ../../addrtoname.o \ 31 ../../af.o \ 32 ../../checksum.o \ 33 ../../gmpls.o \ 34 ../../gmt2local.o \ 35 ../../missing/inet_aton.o \ 36 ../../missing/inet_ntop.o \ 37 ../../missing/strlcpy.o \ 38 ../../missing/dlnames.o \ 39 ../../missing/datalinks.o \ 40 ../../missing/strsep.o \ 41 ../../missing/inet_pton.o \ 42 ../../machdep.o \ 43 ../../oui.o \ 44 ../../parsenfsfh.o \ 45 ../../print-802_11.o \ 46 ../../print-ah.o \ 47 ../../print-aodv.o \ 48 ../../print-ap1394.o \ 49 ../../print-arcnet.o \ 50 ../../print-arp.o \ 51 ../../print-ascii.o \ 52 ../../print-atalk.o \ 53 ../../print-atm.o \ 54 ../../print-beep.o \ 55 ../../print-bfd.o \ 56 ../../print-bgp.o \ 57 ../../print-bootp.o \ 58 ../../print-cdp.o \ 59 ../../print-cfm.o \ 60 ../../print-chdlc.o \ 61 ../../print-cip.o \ 62 ../../print-cnfp.o \ 63 ../../print-decnet.o \ 64 ../../print-dhcp6.o \ 65 ../../print-domain.o \ 66 ../../print-dtp.o \ 67 ../../print-dvmrp.o \ 68 ../../print-egp.o \ 69 ../../print-enc.o \ 70 ../../print-esp.o \ 71 ../../print-ether.o \ 72 ../../print-fddi.o \ 73 ../../print-fr.o \ 74 ../../print-frag6.o \ 75 ../../print-gre.o \ 76 ../../print-hsrp.o \ 77 ../../print-icmp.o \ 78 ../../print-icmp6.o \ 79 ../../print-igmp.o \ 80 ../../print-igrp.o \ 81 ../../print-ip.o \ 82 ../../print-ip6.o \ 83 ../../print-ip6opts.o \ 84 ../../print-ipcomp.o \ 85 ../../print-ipfc.o \ 86 ../../print-ipx.o \ 87 ../../print-isakmp.o \ 88 ../../print-isoclns.o \ 89 ../../print-krb.o \ 90 ../../print-l2tp.o \ 91 ../../print-lane.o \ 92 ../../print-ldp.o \ 93 ../../print-lldp.o \ 94 ../../print-llc.o \ 95 ../../print-lwapp.o \ 96 ../../print-lwres.o \ 97 ../../print-mobile.o \ 98 ../../print-mobility.o \ 99 ../../print-mpcp.o \ 100 ../../print-mpls.o \ 101 ../../print-msdp.o \ 102 ../../print-nfs.o \ 103 ../../print-ntp.o \ 104 ../../print-null.o \ 105 ../../print-olsr.o \ 106 ../../print-ospf.o \ 107 ../../print-ospf6.o \ 108 ../../print-pim.o \ 109 ../../print-pgm.o \ 110 ../../print-ppp.o \ 111 ../../print-pppoe.o \ 112 ../../print-pptp.o \ 113 ../../print-radius.o \ 114 ../../print-raw.o \ 115 ../../print-rrcp.o \ 116 ../../print-rip.o \ 117 ../../print-ripng.o \ 118 ../../print-rsvp.o \ 119 ../../print-rt6.o \ 120 ../../print-rx.o \ 121 ../../print-sctp.o \ 122 ../../print-sflow.o \ 123 ../../print-sl.o \ 124 ../../print-sll.o \ 125 ../../print-slow.o \ 126 ../../print-smb.o \ 127 ../../print-snmp.o \ 128 ../../print-stp.o \ 129 ../../print-sunatm.o \ 130 ../../print-sunrpc.o \ 131 ../../print-symantec.o \ 132 ../../print-tcp.o \ 133 ../../print-telnet.o \ 134 ../../print-tftp.o \ 135 ../../print-timed.o \ 136 ../../print-token.o \ 137 ../../print-udld.o \ 138 ../../print-udp.o \ 139 ../../print-vjc.o \ 140 ../../print-vqp.o \ 141 ../../print-vrrp.o \ 142 ../../print-vtp.o \ 143 ../../print-wb.o \ 144 ../../print-zephyr.o \ 145 ../../setsignal.o \ 146 ../../smbutil.o \ 147 ../../tcpdump.o \ 148 ../../util.o \ 149 ../../Win32/src/getopt.o \ 150 ../../cpack.o \ 151 ../../ipproto.o \ 152 ../../l2vpn.o \ 153 ../../nlpid.o \ 154 ../../print-eigrp.o \ 155 ../../print-juniper.o \ 156 ../../print-lspping.o \ 157 ../../print-sip.o \ 158 ../../print-eap.o \ 159 ../../print-lmp.o \ 160 ../../print-syslog.o \ 161 ../../print-dccp.o \ 162 ../../print-bt.o \ 163 ../../signature.o 164 165 main: ${OBJS} 166 ${CC} ${CFLAGS} ${LDFLAGS} -o windump.exe ${OBJS} ${LIBS} 167 168 install: windump.exe 169 cp windump.exe c:/windows 170 171 clean: 172 rm -f ${OBJS} windump.exe 173 174 .c.o: 175 ${CC} ${CFLAGS} -o $*.o -c $< 176