Skip to content
Snippets Groups Projects
Commit 602170fd authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Get binaries building on MacOS.

parent b70b117e
No related branches found
No related tags found
No related merge requests found
packetdrill-ext-libs := -lpthread -lpcap
packetdrill-ext-libs := -pthread -lpcap
LDFLAGS =
include Makefile.common
all: binaries
CFLAGS = -g -Wall -Werror -Wno-unknown-warning-option -Wno-address-of-packed-member
LDFLAGS ?= -static
parser.o: parser.y
bison --output=parser.c --defines=parser.h --report=state parser.y
......@@ -35,7 +36,7 @@ packetdrill-lib := \
packetdrill-objs := packetdrill.o $(packetdrill-lib)
packetdrill: $(packetdrill-objs)
$(CC) -o packetdrill -g -static $(packetdrill-objs) $(packetdrill-ext-libs)
$(CC) -o packetdrill -g $(LDFLAGS) $(packetdrill-objs) $(packetdrill-ext-libs)
test-bins := checksum_test packet_parser_test packet_to_string_test
tests: $(test-bins)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment