summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
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."