blob: d77ff68dcfaf0b8a8acff9317b4fd5cf513b534c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
|