# 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../libpcap/ -I../libpcap/bpf -I../libpcap/lbl -I../libpcap/Win32/Include -I../../common -I../Win32-Extensions -I../../../Airpcap_Devpack/include /ZI /nologo \
-DHAVE_ADDRINFO \
-DHAVE_DAG_API -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_WINDLL -D_MBCS /MD
LLDFLAGS =/INCREMENTAL /NOLOGO /SUBSYSTEM:console /DEF:"./Wpcap_no_extensions.def" /IMPLIB:"./wpcap.lib"
.c.obj:
$(cc) $(CFLAGS) /Fo"$@" -c $<
objs = ../Win32-Extensions/Win32-Extensions.obj
LIBS =kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib Advapi32.lib ws2_32.lib version.lib ../../WpdPack/Lib/packet.lib ../../WpdPack/Lib/libpcap.lib
wpcap.dll: $(objs)
$(link) /OUT:wpcap.dll /DLL $(LIBS) $(LLDFLAGS) $(objs)
clean:
rm $(objs)
rm wpcap.dll
install: wpcap.dll
cp wpcap.dll c:/windows/system32
阅读(1653) | 评论(0) | 转发(0) |