From: Joseph R. Prostko Date: Mon, 30 Jul 2012 00:13:27 +0000 (+0000) Subject: Added Haiku-specific changes to Makefile X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=b61ec33f2277d2ac699b56f6560786e68e85c2de Added Haiku-specific changes to Makefile First change: If Haiku is host platform, change installation prefix to /boot/common/bin Second change: Only link in pthreads if Haiku isn't host platform. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/Makefile b/src/Makefile index dea8db04..3fd601ff 100644 --- a/src/Makefile +++ b/src/Makefile @@ -20,11 +20,18 @@ ### Section 1. General Configuration ### ========================================================================== +### Establish the operating system name +UNAME = $(shell uname) + ### Executable name EXE = stockfish ### Installation dir definitions PREFIX = /usr/local +# Haiku has a non-standard filesystem layout +ifeq ($(UNAME),Haiku) + PREFIX=/boot/common +endif BINDIR = $(PREFIX)/bin ### Built-in benchmark for pgo-builds @@ -229,7 +236,10 @@ LDFLAGS = $(EXTRALDFLAGS) ### On mingw use Windows threads, otherwise POSIX ifneq ($(comp),mingw) - LDFLAGS += -lpthread + # Haiku has pthreads in its libroot, so only link it in on other platforms + ifneq ($(UNAME),Haiku) + LDFLAGS += -lpthread + endif endif ifeq ($(os),osx)