Skip to content

Commit

Permalink
Added Haiku-specific changes to Makefile
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jprostko authored and mcostalba committed Jul 30, 2012
1 parent 1f7b5d9 commit b61ec33
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Makefile
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b61ec33

Please sign in to comment.