Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: build: support mingw build #641

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Examples-pcap/UDPdump/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Makefile for cygwin gcc
# Loris Degioanni

PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include
CYGWIN_FLAGS = -mno-cygwin
PCAP_PATH = ../../Lib$(LIBARCH)
CFLAGS = -g -O $(CYGWIN_FLAGS) -I ../../Include

OBJS = udpdump.o
LIBS = -L ${PCAP_PATH} -lwpcap -lwsock32
LIBS = -L ${PCAP_PATH} -lwpcap -lws2_32

all: ${OBJS}
${CC} ${CFLAGS} -o udpdump.exe ${OBJS} ${LIBS}
Expand Down
5 changes: 3 additions & 2 deletions Examples-pcap/basic_dump/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Makefile for cygwin gcc
# Nate Lawson <[email protected]>

PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include
CYGWIN_FLAGS = -mno-cygwin
PCAP_PATH = ../../Lib$(LIBARCH)
CFLAGS = -g -O $(CYGWIN_FLAGS) -I ../../Include

OBJS = basic_dump.o
LIBS = -L ${PCAP_PATH} -lwpcap
Expand Down
5 changes: 3 additions & 2 deletions Examples-pcap/basic_dump_ex/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Makefile for cygwin gcc
# Nate Lawson <[email protected]>

PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include
CYGWIN_FLAGS = -mno-cygwin
PCAP_PATH = ../../Lib$(LIBARCH)
CFLAGS = -g -O $(CYGWIN_FLAGS) -I ../../Include

OBJS = basic_dump_ex.o
LIBS = -L ${PCAP_PATH} -lwpcap
Expand Down
7 changes: 4 additions & 3 deletions Examples-pcap/iflist/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Makefile for cygwin gcc
# Nate Lawson <[email protected]>

PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include
CYGWIN_FLAGS = -mno-cygwin
PCAP_PATH = ../../Lib$(LIBARCH)
CFLAGS = -g -O $(CYGWIN_FLAGS) -I ../../Include

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

all: ${OBJS}
${CC} ${CFLAGS} -o iflist.exe ${OBJS} ${LIBS}
Expand Down
5 changes: 3 additions & 2 deletions Examples-pcap/pcap_filter/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Makefile for cygwin gcc
# Nate Lawson <[email protected]>

PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include
CYGWIN_FLAGS = -mno-cygwin
PCAP_PATH = ../../Lib$(LIBARCH)
CFLAGS = -g -O $(CYGWIN_FLAGS) -I ../../Include

OBJS = pcap_filter.o
LIBS = -L ${PCAP_PATH} -lwpcap
Expand Down
5 changes: 3 additions & 2 deletions Examples-pcap/pktdump_ex/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include
CYGWIN_FLAGS = -mno-cygwin
PCAP_PATH = ../../Lib$(LIBARCH)
CFLAGS = -g -O $(CYGWIN_FLAGS) -I ../../Include

OBJS = pktdump_ex.o
LIBS = -L ${PCAP_PATH} -lwpcap
Expand Down
5 changes: 3 additions & 2 deletions Examples-pcap/readfile/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Makefile for cygwin gcc
# Nate Lawson <[email protected]>

PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include
CYGWIN_FLAGS = -mno-cygwin
PCAP_PATH = ../../Lib$(LIBARCH)
CFLAGS = -g -O $(CYGWIN_FLAGS) -I ../../Include

OBJS = readfile.o
LIBS = -L ${PCAP_PATH} -lwpcap
Expand Down
5 changes: 3 additions & 2 deletions Examples-pcap/readfile_ex/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Makefile for cygwin gcc
# Nate Lawson <[email protected]>

PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include
CYGWIN_FLAGS = -mno-cygwin
PCAP_PATH = ../../Lib$(LIBARCH)
CFLAGS = -g -O $(CYGWIN_FLAGS) -I ../../Include

OBJS = readfile_ex.o
LIBS = -L ${PCAP_PATH} -lwpcap
Expand Down
5 changes: 3 additions & 2 deletions Examples-pcap/savedump/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Makefile for cygwin gcc
# Nate Lawson <[email protected]>

PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include
CYGWIN_FLAGS = -mno-cygwin
PCAP_PATH = ../../Lib$(LIBARCH)
CFLAGS = -g -O $(CYGWIN_FLAGS) -I ../../Include

OBJS = savedump.o
LIBS = -L ${PCAP_PATH} -lwpcap
Expand Down
5 changes: 3 additions & 2 deletions Examples-pcap/sendpack/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Makefile for cygwin gcc
# Nate Lawson <[email protected]>

PCAP_PATH = ../../lib
CFLAGS = -g -O -mno-cygwin -I ../../include
CYGWIN_FLAGS = -mno-cygwin
PCAP_PATH = ../../Lib$(LIBARCH)
CFLAGS = -g -O $(CYGWIN_FLAGS) -I ../../Include

OBJS = sendpack.o
LIBS = -L ${PCAP_PATH} -lwpcap
Expand Down