mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Autotest for BIGENDIAN. A bit hacked, though.
This commit is contained in:
parent
98c015372e
commit
feb8630108
1 changed files with 15 additions and 1 deletions
14
makefile
14
makefile
|
@ -78,6 +78,7 @@ endif
|
||||||
ifeq ($(firstword $(filter FreeBSD,$(UNAME))),FreeBSD)
|
ifeq ($(firstword $(filter FreeBSD,$(UNAME))),FreeBSD)
|
||||||
TARGETOS = freebsd
|
TARGETOS = freebsd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(firstword $(filter Darwin,$(UNAME))),Darwin)
|
ifeq ($(firstword $(filter Darwin,$(UNAME))),Darwin)
|
||||||
TARGETOS = macosx
|
TARGETOS = macosx
|
||||||
endif
|
endif
|
||||||
|
@ -93,6 +94,18 @@ PTR64 = 1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Autodetect BIGENDIAN
|
||||||
|
# MacOSX
|
||||||
|
ifndef BIGENDIAN
|
||||||
|
ifneq (,$(findstring Power,$(UNAME)))
|
||||||
|
BIGENDIAN=1
|
||||||
|
endif
|
||||||
|
# Linux
|
||||||
|
ifneq (,$(findstring ppc,$(UNAME)))
|
||||||
|
BIGENDIAN=1
|
||||||
|
endif
|
||||||
|
endif # BIGENDIAN
|
||||||
|
|
||||||
endif # CROSS_BUILD
|
endif # CROSS_BUILD
|
||||||
endif # Windows_NT
|
endif # Windows_NT
|
||||||
|
|
||||||
|
@ -658,3 +671,4 @@ $(OBJ)/%.o: $(SRC)/%.m | $(OSPREBUILD)
|
||||||
@echo Objective-C compiling $<...
|
@echo Objective-C compiling $<...
|
||||||
$(CC) $(CDEFS) $(COBJFLAGS) $(CCOMFLAGS) -c $< -o $@
|
$(CC) $(CDEFS) $(COBJFLAGS) $(CCOMFLAGS) -c $< -o $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue