Update Makefile

This commit is contained in:
twinaphex 2014-10-23 10:00:02 +02:00
parent 1b27f5abaf
commit 6986db7cf8

View File

@ -48,8 +48,9 @@ ifneq ($(arch),ppc)
ENDIANNESS_DEFINES = -DLSB_FIRST -DLOCAL_LE=1
endif
CFLAGS += -DHAVE_ASPRINTF
OSXVER = `sw_vers -productVersion | cut -c 4`
ifneq ($(OSXVER),9)
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
ifeq ($(OSX_LT_MAVERICKS),"YES")
fpic += -mmacosx-version-min=10.5
endif
else ifeq ($(platform), qnx)
@ -67,10 +68,16 @@ else ifeq ($(platform), ios)
SHARED := -dynamiclib
ENDIANNESS_DEFINES = -DLSB_FIRST -DLOCAL_LE=1
CFLAGS += -DHAVE_ASPRINTF -DIOS
ifeq ($(IOSSDK),)
IOSSDK := $(shell xcrun -sdk iphoneos -show-sdk-path)
endif
CC = clang -arch armv7 -isysroot $(IOSSDK)
CFLAGS += -DIOS
OSXVER = `sw_vers -productVersion | cut -c 4`
ifneq ($(OSXVER),9)
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
ifeq ($(OSX_LT_MAVERICKS),"YES")
CC += -miphoneos-version-min=5.0
CFLAGS += -miphoneos-version-min=5.0
endif