mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
Fix build on FreeBSD/powerpc64
FreeBSD uses powerpc64 name for what Linux calls ppc64.
This commit is contained in:
parent
8ebaec9f82
commit
9b030d87dc
18
makefile
18
makefile
@ -322,6 +322,9 @@ endif
|
|||||||
ifeq ($(firstword $(filter ppc64,$(UNAME))),ppc64)
|
ifeq ($(firstword $(filter ppc64,$(UNAME))),ppc64)
|
||||||
ARCHITECTURE := _x64
|
ARCHITECTURE := _x64
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(firstword $(filter powerpc64,$(UNAME))),powerpc64)
|
||||||
|
ARCHITECTURE := _x64
|
||||||
|
endif
|
||||||
ifeq ($(firstword $(filter ppc64le,$(UNAME))),ppc64le)
|
ifeq ($(firstword $(filter ppc64le,$(UNAME))),ppc64le)
|
||||||
ARCHITECTURE := _x64
|
ARCHITECTURE := _x64
|
||||||
endif
|
endif
|
||||||
@ -402,6 +405,13 @@ ifndef FORCE_DRC_C_BACKEND
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# powerpc has inline assembly support but no DRC
|
||||||
|
ifeq ($(findstring powerpc,$(UNAME)),powerpc)
|
||||||
|
ifndef FORCE_DRC_C_BACKEND
|
||||||
|
FORCE_DRC_C_BACKEND := 1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# ARM / ARM64
|
# ARM / ARM64
|
||||||
ifeq ($(findstring arm,$(UNAME)),arm)
|
ifeq ($(findstring arm,$(UNAME)),arm)
|
||||||
ifndef FORCE_DRC_C_BACKEND
|
ifndef FORCE_DRC_C_BACKEND
|
||||||
@ -427,6 +437,14 @@ ifneq (,$(findstring s390x,$(UNAME)))
|
|||||||
BIGENDIAN := 1
|
BIGENDIAN := 1
|
||||||
endif
|
endif
|
||||||
endif # BIGENDIAN
|
endif # BIGENDIAN
|
||||||
|
# FreeBSD
|
||||||
|
ifneq (,$(findstring powerpc,$(UNAME)))
|
||||||
|
ifneq (,$(findstring powerpc64le,$(UNAME)))
|
||||||
|
BIGENDIAN := 0
|
||||||
|
else
|
||||||
|
BIGENDIAN := 1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef PYTHON_EXECUTABLE
|
ifndef PYTHON_EXECUTABLE
|
||||||
PYTHON := python
|
PYTHON := python
|
||||||
|
Loading…
Reference in New Issue
Block a user