lib/Makefile: Fix detection of Darwin
.
This commit is contained in:
parent
f665291e6c
commit
024216ef73
@ -55,10 +55,11 @@ FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
|
|||||||
|
|
||||||
SRCFILES := $(sort $(wildcard *.c))
|
SRCFILES := $(sort $(wildcard *.c))
|
||||||
|
|
||||||
|
include ../Makefile.inc
|
||||||
|
|
||||||
# OS X linker doesn't support -soname, and use different extension
|
# OS X linker doesn't support -soname, and use different extension
|
||||||
# see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
|
# see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
|
||||||
ifeq ($(OS), Darwin)
|
ifeq ($(TARGET_OS), Darwin)
|
||||||
SHARED_EXT = dylib
|
SHARED_EXT = dylib
|
||||||
SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT)
|
SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT)
|
||||||
SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
|
SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
|
||||||
@ -70,8 +71,6 @@ else
|
|||||||
SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
|
SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include ../Makefile.inc
|
|
||||||
|
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
default: lib-release
|
default: lib-release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user