diff options
author | Couriersud <couriersud@users.noreply.github.com> | 2010-01-16 13:02:03 +0000 |
---|---|---|
committer | Couriersud <couriersud@users.noreply.github.com> | 2010-01-16 13:02:03 +0000 |
commit | feb8630108dc1908247fd5558f65e46d17f91c2b (patch) | |
tree | 89326cc93fb229cada918cd4a8af46543e4d4572 /makefile | |
parent | 98c015372e05f404734573880ee9149a086b07ac (diff) |
Autotest for BIGENDIAN. A bit hacked, though.
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -78,6 +78,7 @@ endif ifeq ($(firstword $(filter FreeBSD,$(UNAME))),FreeBSD) TARGETOS = freebsd endif + ifeq ($(firstword $(filter Darwin,$(UNAME))),Darwin) TARGETOS = macosx endif @@ -93,7 +94,19 @@ PTR64 = 1 endif endif -endif # CROSS_BUILD +# 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 # Windows_NT endif # TARGET_OS @@ -658,3 +671,4 @@ $(OBJ)/%.o: $(SRC)/%.m | $(OSPREBUILD) @echo Objective-C compiling $<... $(CC) $(CDEFS) $(COBJFLAGS) $(CCOMFLAGS) -c $< -o $@ endif + |