make sure to use makefile.shared on Mac
This commit is contained in:
parent
048cbc55b0
commit
3995f971d7
12
makefile
12
makefile
@ -13,14 +13,18 @@ silent=@
|
||||
silent_stdout= > /dev/null
|
||||
endif
|
||||
|
||||
PLATFORM := $(shell uname | sed -e 's/_.*//')
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifeq ($(PLATFORM), Darwin)
|
||||
$(error Can't build static library on Mac, please use makefile.shared)
|
||||
endif
|
||||
endif
|
||||
|
||||
# ranlib tools
|
||||
ifndef RANLIB
|
||||
ifeq ($(PLATFORM), Darwin)
|
||||
RANLIB:=$(PREFIX)ranlib -c
|
||||
else
|
||||
RANLIB:=$(PREFIX)ranlib
|
||||
endif
|
||||
endif
|
||||
INSTALL_CMD = install
|
||||
|
||||
#Output filenames for various targets.
|
||||
|
@ -7,6 +7,8 @@
|
||||
#
|
||||
# (GNU make only)
|
||||
|
||||
PLATFORM := $(shell uname | sed -e 's/_.*//')
|
||||
|
||||
ifndef LT
|
||||
ifeq ($(PLATFORM), Darwin)
|
||||
LT:=glibtool
|
||||
|
@ -7,8 +7,6 @@ VERSION=1.17
|
||||
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
||||
VERSION_LT=0:117
|
||||
|
||||
PLATFORM := $(shell uname | sed -e 's/_.*//')
|
||||
|
||||
# Compiler and Linker Names
|
||||
ifndef PREFIX
|
||||
PREFIX:=
|
||||
|
Loading…
Reference in New Issue
Block a user