summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/winpcap/Examples-pcap/readfile_ex/GNUmakefile
blob: 3eaba96148d1d9a9f81c2ef49ab923c9cf0ab23f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Makefile for cygwin gcc
# Nate Lawson <nate@rootlabs.com>

PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include

OBJS = readfile_ex.o
LIBS = -L ${PCAP_PATH} -lwpcap

all: ${OBJS}
	${CC} ${CFLAGS} -o readfile_ex.exe ${OBJS} ${LIBS}

clean:
	rm -f ${OBJS} readfile_ex.exe

.c.o:
	${CC} ${CFLAGS} -c -o $*.o $<