update makefile.nimf

This commit is contained in:
narimiran
2026-05-22 09:57:47 +02:00
parent 5360d076f3
commit 5a598a4945

View File

@@ -16,6 +16,7 @@ endif
target := ?{"$(binDir)/" & toLowerAscii(c.name)}
ucpu := $(shell sh -c 'uname -m | tr "[:upper:]" "[:lower:]"')
ifeq ($(OS),Windows_NT)
uos := windows
@@ -44,6 +45,7 @@ endif
ifeq ($(uos),netbsd)
myos = netbsd
LDFLAGS += -lm
ucpu = $(shell sh -c 'uname -p')
endif
ifeq ($(uos),darwin)
myos = macosx
@@ -103,9 +105,18 @@ endif
ifeq ($(ucpu),x86_64)
mycpu = amd64
endif
ifeq ($(ucpu),parisc64)
mycpu = hppa
endif
ifeq ($(ucpu),s390x)
mycpu = s390x
endif
ifeq ($(ucpu),sparc)
mycpu = sparc
endif
ifeq ($(ucpu),sparc64)
mycpu = sparc64
endif
ifeq ($(ucpu),sun)
mycpu = sparc
endif
@@ -131,7 +142,7 @@ ifeq ($(ucpu),powerpc)
endif
endif
ifeq ($(ucpu),ppc)
mycpu = ppc
mycpu = powerpc
endif
ifneq (,$(filter $(ucpu), mips mips64))
mycpu = $(shell /bin/sh -c '"$(CC)" -dumpmachine | sed "s/-.*//"')
@@ -163,9 +174,18 @@ endif
ifeq ($(ucpu),aarch64)
mycpu = arm64
endif
ifeq ($(ucpu),arm64)
mycpu = arm64
endif
ifeq ($(ucpu),riscv64)
mycpu = riscv64
endif
ifeq ($(ucpu),e2k)
mycpu = e2k
endif
ifeq ($(ucpu),loongarch64)
mycpu = loongarch64
endif
ifndef mycpu
$(error unknown CPU architecture: $(ucpu) See makefile.nimf)
endif