summaryrefslogtreecommitdiffhomepage
path: root/makefile
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-10-09 07:25:04 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-10-09 07:25:04 +0200
commit35bf67c51b620b96827b75b0548f56d08415bb90 (patch)
tree2c57462a5fc2c981c1159c367df5c943c3c827ed /makefile
parent518a6da50bfb86e938b2bbf850e3740fa824e832 (diff)
IMP: Add Windows version of BTB. Also separate vendor libs from include
directory. Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/makefile b/makefile
index 43b8cbb..c789bf4 100644
--- a/makefile
+++ b/makefile
@@ -1,13 +1,17 @@
.PHONY: build-btb-core
build-btb-core:
- sudo g++ -I./inc $(wildcard src/*.cxx) -std=c++20 -fPIC -shared -o libbtb.so
+ sudo g++ -I./inc I./vendor $(wildcard src/*.cxx) -std=c++20 -fPIC -shared -o libbtb.so
sudo cp libbtb.so /usr/local/lib
.PHONY: build-btb
build-btb:
- sudo g++ -I./inc $(wildcard cli/*.cxx) $(wildcard src/*.cxx) -std=c++20 -L/usr/local -lbtb -o btb
+ sudo g++ -I./inc I./vendor $(wildcard cli/*.cxx) $(wildcard src/*.cxx) -std=c++20 -L/usr/local -lbtb -o btb
sudo cp btb /usr/local/bin
+.PHONY: build-btb-windows
+build-btb-windows:
+ x86_64-w64-mingw32-g++.exe -I./inc -I./vendor $(wildcard cli/*.cxx) $(wildcard src/*.cxx) -std=c++20 -o btb.exe
+
.PHONY: help
help:
@echo "=> build-btb-core"