mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +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
|
||||
### ==========================================================================
|
||||
|
||||
### 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue