From a5e67d17ea410c580714cf4c8cd86fb48dcbeedd Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 26 Nov 2025 10:55:52 -0500 Subject: src: refactor and fix include paths. Signed-off-by: Amlal El Mahrouss --- GNUmakefile | 30 ------------------------------ Makefile | 30 ++++++++++++++++++++++++++++++ compile_flags.txt | 2 +- 3 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 GNUmakefile create mode 100644 Makefile diff --git a/GNUmakefile b/GNUmakefile deleted file mode 100644 index c0bc97f..0000000 --- a/GNUmakefile +++ /dev/null @@ -1,30 +0,0 @@ -# // ============================================================= // -# // 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." 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." diff --git a/compile_flags.txt b/compile_flags.txt index 460f642..09ae967 100644 --- a/compile_flags.txt +++ b/compile_flags.txt @@ -1,4 +1,4 @@ -std=c++20 --Idev/ +-Iinclude/ -Ivendor -xc++ \ No newline at end of file -- cgit v1.2.3