summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2015-01-25 22:01:16 +0100
committer couriersud <couriersud@arcor.de>2015-01-25 22:01:16 +0100
commit36c9bba47db88ab3e42e422d26a35de3536d1d76 (patch)
treedde7e916ec9b25871414394a1c89d76e3bc881a3 /makefile
parentda8810b1bcf8ffc65e13d3c8812466485622d83e (diff)
Solaris 11 build support. [Couriersud]
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/makefile b/makefile
index 99eaa8c1757..430014db251 100644
--- a/makefile
+++ b/makefile
@@ -98,6 +98,10 @@ endif
ifeq ($(firstword $(filter Haiku,$(UNAME))),Haiku)
TARGETOS = haiku
endif
+ifeq ($(firstword $(filter SunOS,$(UNAME))),SunOS)
+TARGETOS = solaris
+SDL_LIBVER = sdl
+endif
ifndef TARGETOS
$(error Unable to detect TARGETOS from uname -a: $(UNAME))
@@ -114,6 +118,11 @@ endif
ifeq ($(firstword $(filter ppc64,$(UNAME))),ppc64)
PTR64 = 1
endif
+ifeq ($(TARGETOS), solaris)
+ifeq ($(firstword $(filter amd64,$(shell /usr/bin/isainfo -k))),amd64)
+PTR64 = 1
+endif
+endif
endif
# Autodetect BIGENDIAN