Multi-architecture build with make ARCH=x86.

This commit is contained in:
2025-08-25 21:14:51 -07:00
parent b322939812
commit a342b3eb3b

View File

@@ -7,8 +7,11 @@ FRAMEWORKS = -framework Cocoa -framework IOKit -framework ServiceManagement
MACOS_VERSION = 13.0 MACOS_VERSION = 13.0
EXEC = Caffeine EXEC = Caffeine
ifeq ($(ARCH),X86)
TARGET = x86_64-apple-macos$(MACOS_VERSION)
else
TARGET = arm64-apple-macos$(MACOS_VERSION) TARGET = arm64-apple-macos$(MACOS_VERSION)
# TARGET = x86_64-apple-macos$(MACOS_VERSION) endif
default: $(EXEC) $(EXEC).app default: $(EXEC) $(EXEC).app