Files
scylladb/build.mk
Avi Kivity 3aec580cbe Add L3 test
Listen for ARP packets and print something out when we see them.
2014-08-31 13:29:54 +03:00

48 lines
923 B
Makefile

S = $(src)
VPATH = $(src)
sanitize.debug = -fsanitize=address -fsanitize=leak -fsanitize=undefined
sanitize.release =
opt.debug = -O0
opt.release = -O2 -flto
sanitize = $(sanitize.$(mode))
opt = $(opt.$(mode))
libs = -laio -ltcmalloc
CXXFLAGS = -std=gnu++1y -g -Wall -Werror $(opt) -MD -MT $@ -MP $(sanitize) -fvisibility=hidden $(libs)
CXXFLAGS += -pthread
# Ubuntu fails without this, see https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1228201
CXXFLAGS += -Wl,--no-as-needed
tests = test-reactor fileiotest virtiotest l3_test
link = $(CXX) $(CXXFLAGS) -o $@ $^
%: %.o
$(link)
all: seastar $(tests) httpd
clean:
rm seastar $(tests) *.o
seastar: main.o reactor.o
$(link)
test-reactor: test-reactor.o reactor.o
httpd: httpd.o reactor.o
fileiotest: fileiotest.o reactor.o
virtiotest: virtiotest.o virtio.o reactor.o net.o ip.o
l3_test: l3_test.o virtio.o reactor.o net.o ip.o
-include *.d