Fixed makefiles for GNU/kFreeBSD, GNU/hurd
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@826 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
aab20bdd87
commit
4ff2a48e5a
1 changed files with 16 additions and 3 deletions
21
src/Makefile
21
src/Makefile
|
@ -13,21 +13,34 @@ ifeq ($(OS), Darwin)
|
|||
SHARED_LIB_VERSIONED := libloki.$(VERSION).dylib
|
||||
override LDFLAGS += -dynamiclib -single_module -install_name $(SHARED_LIB_VERSIONED) -fPIC
|
||||
LDLIBS := -lpthread
|
||||
RESULT_DIR := ../lib/
|
||||
else
|
||||
ifeq ($(OS), Linux)
|
||||
SHARED_LIB_BASE := libloki.so
|
||||
SHARED_LIB_VERSIONED := libloki.so.$(VERSION)
|
||||
override LDFLAGS += --shared -Wl,-soname=$(SHARED_LIB_VERSIONED) -fPIC
|
||||
LDLIBS := -lpthread
|
||||
RESULT_DIR := ../lib/
|
||||
else
|
||||
ifeq ($(OS), GNU/kFreeBSD)
|
||||
SHARED_LIB_BASE := libloki.so
|
||||
SHARED_LIB_VERSIONED := libloki.so.$(VERSION)
|
||||
override LDFLAGS += --shared -Wl,-soname=$(SHARED_LIB_VERSIONED) -fPIC
|
||||
LDLIBS := -lpthread
|
||||
else
|
||||
ifeq ($(OS), GNU)
|
||||
SHARED_LIB_BASE := libloki.so
|
||||
SHARED_LIB_VERSIONED := libloki.so.$(VERSION)
|
||||
override LDFLAGS += --shared -Wl,-soname=$(SHARED_LIB_VERSIONED) -fPIC
|
||||
LDLIBS := -lpthread
|
||||
else
|
||||
SHARED_LIB_VERSIONED := libloki.dll
|
||||
override LDFLAGS += --shared
|
||||
LDLIBS :=
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
RESULT_DIR := ../lib/
|
||||
endif
|
||||
endif
|
||||
|
||||
.PHONY: all build-static build-shared clean distclean
|
||||
all: build-static build-shared
|
||||
|
|
Loading…
Reference in a new issue