summaryrefslogtreecommitdiff
path: root/build/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'build/Makefile')
-rw-r--r--build/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/build/Makefile b/build/Makefile
new file mode 100644
index 0000000..d77ff68
--- /dev/null
+++ b/build/Makefile
@@ -0,0 +1,45 @@
+# Main orchestrator Makefile for GlaMaC
+# This file coordinates the modular build system
+
+# Include common configuration first
+include common.mk
+
+# Include build modules
+include native.mk
+include cross-compile.mk
+include dependencies.mk
+
+# Help system
+help:
+ @echo "GlaMaC Build System"
+ @echo ""
+ @echo "Build targets:"
+ @echo " all - Build for current platform"
+ @echo " glamac - Build main application only"
+ @echo " glautils - Build utilities only"
+ @echo " clean - Clean build files"
+ @echo " rebuild - Clean and rebuild"
+ifeq ($(PLATFORM),linux)
+ @echo ""
+ @echo "Cross-compilation (Linux → Windows):"
+ @echo " win - Build glamac for Windows"
+ @echo " win-all - Build everything for Windows"
+ @echo " setup-cross - Setup cross-compilation"
+endif
+ @echo ""
+ @echo "Dependencies:"
+ @echo " deps - Install SDL3 dependencies"
+ @echo " clean-deps - Remove SDL3 dependencies"
+ @echo ""
+ @echo "Glass catalog conversion:"
+ @echo " convert-catalogs - Convert Excel files to JSON"
+ @echo ""
+ @echo "Quick start:"
+ifeq ($(PLATFORM),linux)
+ @echo " make deps && make all # Native build"
+ @echo " make setup-cross && make win # Windows build"
+else
+ @echo " Install SDL3, then: make all"
+endif
+
+.PHONY: help \ No newline at end of file
Back to https://optics-design.com