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

Refactor CFLAGS handling to allow non clang/gcc compilers.

The Solaris Studio compiler uses different flags...
parent 3bcf3065
No related branches found
No related tags found
No related merge requests found
packetdrill-ext-libs := -lpcap
CFLAGS = -D__APPLE_USE_RFC_3542
CFLAGS = -D__APPLE_USE_RFC_3542 -Wall -Werror -Wno-unknown-warning-option -Wno-address-of-packed-member
LDFLAGS =
ifneq ("$(wildcard /usr/lib/libsctp.dylib)","")
packetdrill-ext-libs += -lsctp
......
packetdrill-ext-libs := -lprocstat -lutil -lkvm -lelf -lpthread -lpcap
CFLAGS = -Wall -Werror -Wno-unknown-warning-option -Wno-address-of-packed-member
.include "Makefile.common"
packetdrill-ext-libs := -lpthread -lrt -ldl -lsctp -static
CFLAGS = -Wall -Werror -Wno-unknown-warning-option -Wno-address-of-packed-member
include Makefile.common
packetdrill-ext-libs := -lpthread -lpcap
CFLAGS = -Wall -Werror -Wno-unknown-warning-option -Wno-address-of-packed-member
.include "Makefile.common"
packetdrill-ext-libs := -lpthread -lpcap
CFLAGS = -Wall -Werror -Wno-unknown-warning-option -Wno-address-of-packed-member
.include "Makefile.common"
all: binaries
CFLAGS += -g -Wall -Werror -Wno-unknown-warning-option -Wno-address-of-packed-member
CFLAGS += -g
parser.o: parser.y
bison --output=parser.c --defines=parser.h --report=state parser.y
......@@ -8,7 +8,7 @@ parser.o: parser.y
lexer.o: lexer.l parser.o
flex -olexer.c lexer.l
$(CC) -O2 -g -Wall -Wno-unknown-warning-option -Wno-address-of-packed-member -c lexer.c
$(CC) -O2 $(CFLAGS) -c lexer.c
packetdrill-lib := \
checksum.o code.o config.o hash.o hash_map.o ip_address.o ip_prefix.o \
......
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