Files
scylladb/Makefile
Avi Kivity ebd10bf349 Add a thread pool to augment kernel support for aio
Some operations cannot be done either non-blockingly or asynchronously, so
add a thread pool to execute them in.

Currently the thread pool has just one thread.
2014-08-24 10:42:10 +03:00

38 lines
702 B
Makefile

mode = release
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
CXXFLAGS = -std=gnu++1y -g -Wall -Werror $(opt) -MD -MT $@ -MP -flto $(sanitize) -fvisibility=hidden $(libs)
CXXFLAGS += -pthread
tests = test-reactor fileiotest
all: seastar $(tests) httpd
clean:
rm seastar $(tests) *.o
seastar: main.o reactor.o
$(CXX) $(CXXFLAGS) -o $@ $^
test-reactor: test-reactor.o reactor.o
$(CXX) $(CXXFLAGS) -o $@ $^
httpd: httpd.o reactor.o
$(CXX) $(CXXFLAGS) -o $@ $^
fileiotest: fileiotest.o reactor.o
$(CXX) $(CXXFLAGS) -o $@ $^
-include *.d