Skip to content

Commit

Permalink
Makefile: Link with libbsd only on non-BSD platforms.
Browse files Browse the repository at this point in the history
BSD platforms are not supported yet, though.
  • Loading branch information
przemoc committed Jan 8, 2016
1 parent f256eda commit 58955dd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Expand Up @@ -19,12 +19,21 @@
#
PROJ_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
METASTORE_VER := $(shell "$(PROJ_DIR)"/version.sh)
UNAME_S := $(shell uname -s)

CC = gcc
CFLAGS += -g -Wall -pedantic -std=c99 -D_FILE_OFFSET_BITS=64 -O2
CFLAGS += -DMETASTORE_VER="\"$(METASTORE_VER)\""
LDFLAGS +=

ifeq ($(findstring BSD,$(UNAME_S)),)
ifneq (DragonFly,$(UNAME_S))
ifneq (Darwin,$(UNAME_S))
LIBS += -lbsd
endif
endif
endif

INCLUDES =
INSTALL = install
INSTALL_PROGRAM = ${INSTALL} -c
Expand Down

0 comments on commit 58955dd

Please sign in to comment.