build: implement platform-agnostic build system

- Split Makefile into gmake.mk (Linux/Windows) and bmake.mk (BSD/macOS)
- Added config.mk for shared variables.
- Added build.sh and build.bat dispatchers.
- Retains old build behavior with dependency tracking.
This commit is contained in:
2026-01-11 17:55:47 +01:00
parent 888e6d5f72
commit bf5863fcb1
6 changed files with 107 additions and 74 deletions
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
if [ "$OS" = "linux" ]; then
MK_FILE="gmake.mk"
else
MK_FILE="bmake.mk"
fi
make -f "$MK_FILE" "$@"