forked from IsaacKhor/zstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (40 loc) · 1.66 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.DEFAULT_GOAL := debug
.PHONY: setup setup-debug release debug paper clean
setup:
rm -rf build* || true
meson setup --native-file meson.ini build-rel --buildtype=release -Db_sanitize=none
meson setup --native-file meson.ini build-dbg --buildtype=debug
# cd build-dbg && meson compile
cd build-rel && meson compile
ln -s build-rel build
debug:
meson setup --native-file meson.ini build-dbg --buildtype=debug
meson compile -C build-dbg
release:
meson setup --native-file meson.ini build-rel --buildtype=release -Db_sanitize=none
meson compile -C build-rel
clean:
# meson -C build-rel clean
# meson -C build-dbg clean
cd build-rel; meson compile --clean
cd build-dbg; meson compile --clean
install-boost:
sudo apt-get update -y
sudo apt-get install -y build-essential g++ autotools-dev libicu-dev libbz2-dev python-dev-is-python3
# mkdir lib
wget -O boost_1_86_0.tar.bz2 https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.bz2
tar --bzip2 -xf boost_1_86_0.tar.bz2
cd boost_1_86_0 && ./bootstrap.sh --prefix=/usr/local/
cd boost_1_86_0 && ./b2
cd boost_1_86_0 && sudo ./b2 install
cat /usr/local/include/boost/version.hpp | grep "define BOOST_LIB_VERSION"
sudo ldconfig
# remember to add /etc/ld.so.conf.d/boost.conf with /usr/local/lib in it
install-deps:
sudo apt install -y meson nvme-cli net-tools
sudo apt install -y clang-18 lld-18 cmake
sudo apt install -y pkg-config uuid-dev libfmt-dev libarchive-dev python3-pyelftools libssl-dev libisal-dev libfuse3-dev libaio-dev liburing-dev
install-python:
sudo apt install -y python3-pip
sudo mv /usr/lib/python3.12/EXTERNALLY-MANAGED /usr/lib/python3.12/EXTERNALLY-MANAGED.old
pip3 install meson pyelftools