# Makefile for cygwin gcc
# Nate Lawson <>
include
# OPTFLAGS = -g -DDBG
OPTFLAGS=
# I am suspicious of -O2 since it hosed wpcap.dll. To be safe, use -O only
CFLAGS =-I../../ -I../../bpf -I../../lbl -I../Include -I../../../../common -I../../../Airpcap_Devpack/include -I../../../Win32-Extensions/ /ZI /nologo \
-DHAVE_ADDRINFO -D_U_= \
-DYY_NEVER_INTERACTIVE \
-Dyylval=pcap_lval -D_USRDLL \
-DLIBPCAP_EXPORTS -DHAVE_STRERROR -D__STDC__ \
-DINET6 -D_WINDOWS -DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 \
-DWPCAP -DHAVE_SNPRINTF -DHAVE_VSNPRINTF \
-DWIN32 -DHAVE_AIRPCAP_API -D_VC80_UPGRADE=0x0600 -D_MBCS /MT
LLDFLAGS =/INCREMENTAL /NOLOGO /SUBSYSTEM:console /DEF:"./Wpcap_no_extensions.def" /IMPLIB:"./wpcap.lib" /DYNAMICBASE
.c.obj:
$(cc) $(CFLAGS) /Fo"$@" -c $<
objs = ../../bpf_dump.obj \
../../bpf/net/bpf_filter.obj \
../../bpf_image.obj \
../../etherent.obj \
../../fad-win32.obj \
../../win32/src/ffs.obj \
../../gencode.obj \
../../grammar.obj \
../../win32/src/getnetbynm.obj \
../../win32/src/getnetent.obj \
../../win32/src/getservent.obj \
../../inet.obj \
../../win32/src/inet_net.obj \
../../win32/src/inet_aton.obj \
../../win32/src/inet_pton.obj \
../../nametoaddr.obj \
../../optimize.obj \
../../pcap-win32.obj \
../../pcap.obj \
../../scanner.obj \
../../savefile.obj \
LIBS =ws2_32.lib ../../../../WpdPack/Lib/packet.lib
libpcap.lib: $(objs)
$(link) -lib /OUT:libpcap.lib /DLL $(objs) $(LIBS)
clean:
rm $(objs)
阅读(1534) | 评论(0) | 转发(0) |