noidb/Makefile
2024-04-24 22:15:50 -04:00

10 lines
436 B
Makefile

COMPILER = g++
CFLAGS = -g
MODE = release
app: /opt/seastar/build/$(MODE)/libseastar.a app.cc
$(COMPILER) app.cc $(shell pkg-config --libs --cflags --static /opt/seastar/build/$(MODE)/seastar.pc) $(CFLAGS) -o app
/opt/seastar/build/$(MODE)/libseastar.a:
cd /opt/seastar && ./configure.py --mode="$(MODE)" --disable-dpdk --disable-hwloc --cflags="$(CFLAGS)" --compiler="$(COMPILER)"
ninja -C /opt/seastar/build/$(MODE) libseastar.a