diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-22 10:22:16 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-22 10:22:16 +0200 |
| commit | e0b3869075eb6dd4d2d515f80056e2eeb1128fae (patch) | |
| tree | 5158781eb6c8513d69c703e1847e1dd84094c42f /GNUmakefile | |
| parent | 7927f01e875ef76185535d209c14230fe9be183d (diff) | |
feat(btb)!: Introducing libBTB, better API.
also:
- The Codebase has been improved.
- Error codes are now string messages.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'GNUmakefile')
| -rw-r--r-- | GNUmakefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..f3c888f --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,23 @@ +SUDO=sudo +GCC=g++ +GCC_MINGW=x86_64-w64-mingw32-g++ +CXXFLAGS=-I./ -I./vendor +CXXSTD= -std=c++20 +SRC=$(wildcard cli/*.cc) $(wildcard src/*.cc) +OUT=btb +CP=cp + +.PHONY: build-btb +build-btb: + $(SUDO) $(GCC) $(CXXFLAGS) $(SRC) $(CXXSTD) -o $(OUT) + $(SUDO) $(CP) $(OUT) /usr/local/bin + +.PHONY: build-btb-windows +build-btb-windows: + $(GCC_MINGW) $(CXXFLAGS) $(SRC) -o $(OUT).exe + +.PHONY: help +help: + @echo "=> help: Show this help message." + @echo "=> build-btb-windows: Build BTB for Windows." + @echo "=> build-btb: Build BTB for POSIX." |
