2014-10-22 09:18:53 +02:00
|
|
|
include $(SRC_PATH)build/arch.mk
|
2014-11-13 14:18:33 +01:00
|
|
|
SHAREDLIB_DIR = $(PREFIX)/lib
|
2014-02-19 02:54:27 +01:00
|
|
|
SHAREDLIBSUFFIX = dylib
|
2014-11-13 14:18:33 +01:00
|
|
|
SHAREDLIBSUFFIXVER=$(SHAREDLIBVERSION).$(SHAREDLIBSUFFIX)
|
|
|
|
SHLDFLAGS = -dynamiclib -twolevel_namespace -undefined dynamic_lookup \
|
|
|
|
-fno-common -headerpad_max_install_names -install_name \
|
|
|
|
$(SHAREDLIB_DIR)/$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER)
|
2014-02-24 11:05:21 +01:00
|
|
|
SHARED = -dynamiclib
|
2014-05-12 11:06:16 +02:00
|
|
|
CFLAGS += -Wall -fPIC -MMD -MP
|
2013-12-16 08:31:00 +01:00
|
|
|
LDFLAGS += -lpthread
|
2014-02-26 13:47:22 +01:00
|
|
|
ifeq ($(ASM_ARCH), x86)
|
2014-03-15 11:47:57 +01:00
|
|
|
ASMFLAGS += -DPREFIX
|
2014-01-03 07:49:45 +01:00
|
|
|
ifeq ($(ENABLE64BIT), Yes)
|
|
|
|
ASMFLAGS += -f macho64
|
|
|
|
else
|
|
|
|
ASMFLAGS += -f macho
|
2014-02-19 20:14:06 +01:00
|
|
|
LDFLAGS += -read_only_relocs suppress
|
2014-01-03 07:49:45 +01:00
|
|
|
endif
|
2014-02-26 13:47:22 +01:00
|
|
|
endif
|
2014-01-03 07:49:45 +01:00
|
|
|
|