-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
24 lines (15 loc) · 4.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
all : shredder example_client
CC=g++
CFLAGS=-O2 -std=gnu++17 -U_FORTIFY_SOURCE -Wno-maybe-uninitialized -DSEASTAR_SSTRING -Wno-error=unused-result -DSEASTAR_API_LEVEL=2 -DFMT_LOCALE -pthread -I/usr/local/include/bsoncxx/v_noabi -I/usr/local/include/mongocxx/v_noabi -I/usr/local/include/libmongoc-1.0 -I/usr/local/include/libbson-1.0 -L/usr/local/lib -I/mydata/nanoservices/seastar/include -I/mydata/nanoservices/seastar/include/seastar -I/mydata/nanoservices/seastar/build/release/gen/include -I/usr/include/p11-kit-1 -Iv8/ -Iv8/include -Iv8/include/libplatform/ -Iv8/third_party/icu/source/i18n -Iv8/third_party/icu/source/common -I./ -L/usr//usr/lib/x86_64-linux-gnu /mydata/nanoservices/seastar/build/release/libseastar.a /usr/lib/x86_64-linux-gnu/libboost_program_options.so /usr/lib/x86_64-linux-gnu/libboost_thread.so /usr/lib/x86_64-linux-gnu/libcares.so /usr/lib/x86_64-linux-gnu/libcryptopp.so /usr/lib/x86_64-linux-gnu/libfmt.a -ldl -lrt /usr/lib/x86_64-linux-gnu/libboost_filesystem.so /usr/lib/x86_64-linux-gnu/libboost_thread.so /usr/lib/x86_64-linux-gnu/libsctp.so /usr/lib/x86_64-linux-gnu/libnuma.so -latomic -lgnutls -pthread -lgmp -lunistring -lidn2 -latomic -lhogweed -lgmp -lnettle -ltasn1 -lp11-kit -lprotobuf -pthread -lz -lhwloc -lm -ludev -lltdl -lpthread -ldl -lyaml-cpp -llz4 -lmongocxx -lbsoncxx
#CFLAGS=-g -std=gnu++17 -U_FORTIFY_SOURCE -Wno-maybe-uninitialized -DSEASTAR_SSTRING -Wno-error=unused-result -DSEASTAR_API_LEVEL=2 -DFMT_LOCALE -pthread -I/usr/local/include/bsoncxx/v_noabi -I/usr/local/include/mongocxx/v_noabi -I/usr/local/include/libmongoc-1.0 -I/usr/local/include/libbson-1.0 -L/usr/local/lib -I/mydata/nanoservices/seastar/include -I/mydata/nanoservices/seastar/include/seastar -I/mydata/nanoservices/seastar/build/release/gen/include -I/usr/include/p11-kit-1 -Iv8/ -Iv8/include -Iv8/include/libplatform/ -Iv8/third_party/icu/source/i18n -Iv8/third_party/icu/source/common -I./ -L/usr//usr/lib/x86_64-linux-gnu /mydata/nanoservices/seastar/build/release/libseastar.a /usr/lib/x86_64-linux-gnu/libboost_program_options.so /usr/lib/x86_64-linux-gnu/libboost_thread.so /usr/lib/x86_64-linux-gnu/libcares.so /usr/lib/x86_64-linux-gnu/libcryptopp.so /usr/lib/x86_64-linux-gnu/libfmt.a -ldl -lrt /usr/lib/x86_64-linux-gnu/libboost_filesystem.so /usr/lib/x86_64-linux-gnu/libboost_thread.so /usr/lib/x86_64-linux-gnu/libsctp.so /usr/lib/x86_64-linux-gnu/libnuma.so -latomic -lgnutls -pthread -lgmp -lunistring -lidn2 -latomic -lhogweed -lgmp -lnettle -ltasn1 -lp11-kit -lprotobuf -pthread -lz -lhwloc -lm -ludev -lltdl -lpthread -ldl -lyaml-cpp -llz4 -lmongocxx -lbsoncxx
#CFLAGS=-g -std=gnu++17 -U_FORTIFY_SOURCE -Wno-maybe-uninitialized -DSEASTAR_SSTRING -Wno-error=unused-result -DSEASTAR_API_LEVEL=2 -DFMT_LOCALE -pthread -I/usr/local/include/bsoncxx/v_noabi -I/usr/local/include/mongocxx/v_noabi -I/usr/local/include/libmongoc-1.0 -I/usr/local/include/libbson-1.0 -L/usr/local/lib -I/mydata/nanoservices/seastar/include -I/mydata/nanoservices/seastar/include/seastar -I/mydata/nanoservices/seastar/build/debug/gen/include -I/usr/include/p11-kit-1 -Iv8/ -Iv8/include -Iv8/include/libplatform/ -Iv8/third_party/icu/source/i18n -Iv8/third_party/icu/source/common -I./ -L/usr//usr/lib/x86_64-linux-gnu /mydata/nanoservices/seastar/build/debug/libseastar.a /usr/lib/x86_64-linux-gnu/libboost_program_options.so /usr/lib/x86_64-linux-gnu/libboost_thread.so /usr/lib/x86_64-linux-gnu/libcares.so /usr/lib/x86_64-linux-gnu/libcryptopp.so /usr/lib/x86_64-linux-gnu/libfmt.a -ldl -lrt /usr/lib/x86_64-linux-gnu/libboost_filesystem.so /usr/lib/x86_64-linux-gnu/libboost_thread.so /usr/lib/x86_64-linux-gnu/libsctp.so /usr/lib/x86_64-linux-gnu/libnuma.so -lubsan -fsanitize=address -static-libasan -latomic -lgnutls -pthread -lgmp -lunistring -lidn2 -latomic -lhogweed -lgmp -lnettle -ltasn1 -lp11-kit -lprotobuf -pthread -lz -lhwloc -lm -ludev -lltdl -lpthread -ldl -lyaml-cpp -llz4 -lmongocxx -lbsoncxx
DEPS= include/connection_handler.hh include/net_server.hh include/redis_protocol_parser.hh include/reply_builder.hh include/scheduler.hh include/db.hh include/req_server.hh include/seastarkv.hh
%.o: %.cc $(DEPS)
$(CC) -c $< $(CFLAGS) -o $@
shredder : main.o connection_handler.o net_server.o req_server.o db.o scheduler.o
$(CC) -o $@ $^ $(CFLAGS) -Lv8/x64.release/obj/ -Wl,--start-group -lv8_monolith -Wl,--end-group -ldl -lrt -pthread
example_client : example_client.c
gcc -o example_client example_client.c -lhiredis
.PHONY: clean
clean:
rm -f *.o shredder example_client shredder.d