Home | History | Annotate | Download | only in prj
      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 	../../missing/getopt_long.o \
     43 	../../machdep.o \
     44 	../../oui.o \
     45 	../../parsenfsfh.o \
     46 	../../print-802_11.o \
     47 	../../print-ah.o \
     48 	../../print-aodv.o \
     49 	../../print-ap1394.o \
     50 	../../print-arcnet.o \
     51 	../../print-arp.o \
     52 	../../print-ascii.o \
     53 	../../print-atalk.o \
     54 	../../print-atm.o \
     55 	../../print-beep.o \
     56 	../../print-bfd.o \
     57 	../../print-bgp.o \
     58 	../../print-bootp.o \
     59 	../../print-cdp.o \
     60 	../../print-cfm.o \
     61 	../../print-chdlc.o \
     62 	../../print-cip.o \
     63 	../../print-cnfp.o \
     64 	../../print-decnet.o \
     65 	../../print-dhcp6.o \
     66 	../../print-domain.o \
     67 	../../print-dtp.o \
     68 	../../print-dvmrp.o \
     69 	../../print-egp.o \
     70 	../../print-enc.o \
     71 	../../print-esp.o \
     72 	../../print-ether.o \
     73 	../../print-fddi.o \
     74 	../../print-fr.o \
     75 	../../print-frag6.o \
     76 	../../print-gre.o \
     77 	../../print-hsrp.o \
     78 	../../print-icmp.o \
     79 	../../print-icmp6.o \
     80 	../../print-igmp.o \
     81 	../../print-igrp.o \
     82 	../../print-ip.o \
     83 	../../print-ip6.o \
     84 	../../print-ip6opts.o \
     85 	../../print-ipcomp.o \
     86 	../../print-ipfc.o \
     87 	../../print-ipx.o \
     88 	../../print-isakmp.o \
     89 	../../print-isoclns.o \
     90 	../../print-krb.o \
     91 	../../print-l2tp.o \
     92 	../../print-lane.o \
     93 	../../print-ldp.o \
     94 	../../print-lldp.o \
     95 	../../print-llc.o \
     96 	../../print-lwapp.o \
     97 	../../print-lwres.o \
     98 	../../print-mobile.o \
     99 	../../print-mobility.o \
    100 	../../print-mpcp.o \
    101 	../../print-mpls.o \
    102 	../../print-msdp.o \
    103 	../../print-nfs.o \
    104 	../../print-ntp.o \
    105 	../../print-null.o \
    106 	../../print-olsr.o \
    107 	../../print-ospf.o \
    108 	../../print-ospf6.o \
    109 	../../print-pim.o \
    110 	../../print-pgm.o \
    111 	../../print-ppp.o \
    112 	../../print-pppoe.o \
    113 	../../print-pptp.o \
    114 	../../print-radius.o \
    115 	../../print-raw.o \
    116 	../../print-rrcp.o \
    117 	../../print-rip.o \
    118 	../../print-ripng.o \
    119 	../../print-rsvp.o \
    120 	../../print-rt6.o \
    121 	../../print-rx.o \
    122 	../../print-sctp.o \
    123 	../../print-sflow.o \
    124 	../../print-sl.o \
    125 	../../print-sll.o \
    126 	../../print-slow.o \
    127 	../../print-smb.o \
    128 	../../print-snmp.o \
    129 	../../print-stp.o \
    130 	../../print-sunatm.o \
    131 	../../print-sunrpc.o \
    132 	../../print-symantec.o \
    133 	../../print-tcp.o \
    134 	../../print-telnet.o \
    135 	../../print-tftp.o \
    136 	../../print-timed.o \
    137 	../../print-token.o \
    138 	../../print-udld.o \
    139 	../../print-udp.o \
    140 	../../print-vjc.o \
    141 	../../print-vqp.o \
    142 	../../print-vrrp.o \
    143         ../../print-vtp.o \
    144 	../../print-wb.o \
    145 	../../print-zephyr.o \
    146 	../../setsignal.o \
    147 	../../smbutil.o \
    148 	../../tcpdump.o \
    149 	../../util.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