mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
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 <mcostalba@gmail.com>
This commit is contained in:
parent
1f7b5d9a79
commit
b61ec33f22
1 changed files with 11 additions and 1 deletions
12
src/Makefile
12
src/Makefile
|
@ -20,11 +20,18 @@
|
||||||
### Section 1. General Configuration
|
### Section 1. General Configuration
|
||||||
### ==========================================================================
|
### ==========================================================================
|
||||||
|
|
||||||
|
### Establish the operating system name
|
||||||
|
UNAME = $(shell uname)
|
||||||
|
|
||||||
### Executable name
|
### Executable name
|
||||||
EXE = stockfish
|
EXE = stockfish
|
||||||
|
|
||||||
### Installation dir definitions
|
### Installation dir definitions
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
# Haiku has a non-standard filesystem layout
|
||||||
|
ifeq ($(UNAME),Haiku)
|
||||||
|
PREFIX=/boot/common
|
||||||
|
endif
|
||||||
BINDIR = $(PREFIX)/bin
|
BINDIR = $(PREFIX)/bin
|
||||||
|
|
||||||
### Built-in benchmark for pgo-builds
|
### Built-in benchmark for pgo-builds
|
||||||
|
@ -229,7 +236,10 @@ LDFLAGS = $(EXTRALDFLAGS)
|
||||||
|
|
||||||
### On mingw use Windows threads, otherwise POSIX
|
### On mingw use Windows threads, otherwise POSIX
|
||||||
ifneq ($(comp),mingw)
|
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
|
endif
|
||||||
|
|
||||||
ifeq ($(os),osx)
|
ifeq ($(os),osx)
|
||||||
|
|
Loading…
Add table
Reference in a new issue