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
19
src/Makefile
19
src/Makefile
|
@ -13,21 +13,34 @@ ifeq ($(OS), Darwin)
|
||||||
SHARED_LIB_VERSIONED := libloki.$(VERSION).dylib
|
SHARED_LIB_VERSIONED := libloki.$(VERSION).dylib
|
||||||
override LDFLAGS += -dynamiclib -single_module -install_name $(SHARED_LIB_VERSIONED) -fPIC
|
override LDFLAGS += -dynamiclib -single_module -install_name $(SHARED_LIB_VERSIONED) -fPIC
|
||||||
LDLIBS := -lpthread
|
LDLIBS := -lpthread
|
||||||
RESULT_DIR := ../lib/
|
|
||||||
else
|
else
|
||||||
ifeq ($(OS), Linux)
|
ifeq ($(OS), Linux)
|
||||||
SHARED_LIB_BASE := libloki.so
|
SHARED_LIB_BASE := libloki.so
|
||||||
SHARED_LIB_VERSIONED := libloki.so.$(VERSION)
|
SHARED_LIB_VERSIONED := libloki.so.$(VERSION)
|
||||||
override LDFLAGS += --shared -Wl,-soname=$(SHARED_LIB_VERSIONED) -fPIC
|
override LDFLAGS += --shared -Wl,-soname=$(SHARED_LIB_VERSIONED) -fPIC
|
||||||
LDLIBS := -lpthread
|
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
|
else
|
||||||
SHARED_LIB_VERSIONED := libloki.dll
|
SHARED_LIB_VERSIONED := libloki.dll
|
||||||
override LDFLAGS += --shared
|
override LDFLAGS += --shared
|
||||||
LDLIBS :=
|
LDLIBS :=
|
||||||
RESULT_DIR := ../lib/
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
RESULT_DIR := ../lib/
|
||||||
|
|
||||||
.PHONY: all build-static build-shared clean distclean
|
.PHONY: all build-static build-shared clean distclean
|
||||||
all: build-static build-shared
|
all: build-static build-shared
|
||||||
|
|
Loading…
Reference in a new issue