Chinaunix首页 | 论坛 | 博客
  • 博客访问: 184716
  • 博文数量: 43
  • 博客积分: 1150
  • 博客等级: 少尉
  • 技术积分: 450
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-29 15:52
文章分类

全部博文(43)

文章存档

2012年(18)

2011年(24)

2008年(1)

分类: WINDOWS

2011-10-24 17:33:26

# 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) |
0

上一篇:makefile for wpcap vs2010

下一篇:reverse表

给主人留下些什么吧!~~