Update Makefile

This commit is contained in:
dermagen 2024-08-08 00:20:24 -04:00 committed by GitHub
parent d18b4f78bc
commit e0ea89d06f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,14 +25,17 @@ ifeq ($(OS),Windows_NT)
endif
endif
else
UNAME_P := $(shell uname -p)
ifeq ($(UNAME_P),x86_64)
UNAME := $(shell uname -p)
ifeq ($(UNAME),unknown)
UNAME := $(shell uname -m)
endif
ifeq ($(UNAME),x86_64)
ARCH = AMD64
endif
ifneq ($(filter %86,$(UNAME_P)),)
ifneq ($(filter %86,$(UNAME)),)
ARCH = IA32
endif
ifneq ($(filter arm%,$(UNAME_P)),)
ifneq ($(filter arm%,$(UNAME)),)
ARCH = ARM
endif
endif