summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-26 10:55:52 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-26 10:58:14 -0500
commita5e67d17ea410c580714cf4c8cd86fb48dcbeedd (patch)
tree449416e8095a31ed0a3a89ab18a9db2c1a1dae2c /Makefile
parent204a9e022a539228ee46d1b8846c0919f8056be8 (diff)
src: refactor and fix include paths.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c0bc97f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+# // ============================================================= //
+# // nebuild
+# // Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under BSD-3 license.
+# // ============================================================= //
+
+SUDO=sudo
+GCC=clang++
+GCC_MINGW=x86_64-w64-mingw32-g++
+CXXFLAGS=-I./include -I./vendor
+CXXSTD= -std=c++20
+SRC=$(wildcard src/cli/*.cc) $(wildcard src/lib/*.cc)
+OUT=nebuild
+CP=cp
+
+.PHONY: build-nebuild
+build-nebuild:
+ $(SUDO) $(GCC) $(CXXFLAGS) $(SRC) $(CXXSTD) -o $(OUT)
+ @echo "=> NeBuild built successfully for POSIX."
+
+.PHONY: build-nebuild-windows
+build-nebuild-windows:
+ $(GCC_MINGW) $(CXXFLAGS) $(SRC) -o $(OUT).exe
+ @echo "=> NeBuild built successfully for Windows."
+
+.PHONY: help
+help:
+ @echo "=> NEBUILD HELP:"
+ @echo "=> help: Show this help message."
+ @echo "=> build-nebuild-windows: Build NeBuild for Windows."
+ @echo "=> build-nebuild: Build NeBuild for POSIX."