1include $(SRC_PATH)build/arch.mk 2SHAREDLIB_DIR = $(PREFIX)/lib 3SHAREDLIBSUFFIX = dylib 4SHAREDLIBSUFFIXFULLVER=$(FULL_VERSION).$(SHAREDLIBSUFFIX) 5SHAREDLIBSUFFIXMAJORVER=$(SHAREDLIB_MAJORVERSION).$(SHAREDLIBSUFFIX) 6CURRENT_VERSION := 2.2.0 7COMPATIBILITY_VERSION := 2.2.0 8SHLDFLAGS = -dynamiclib -twolevel_namespace -undefined dynamic_lookup \ 9 -fno-common -headerpad_max_install_names -install_name \ 10 $(SHAREDLIB_DIR)/$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXMAJORVER) 11SHARED = -dynamiclib 12SHARED += -current_version $(CURRENT_VERSION) -compatibility_version $(COMPATIBILITY_VERSION) 13CFLAGS += -Wall -fPIC -MMD -MP 14ifeq ($(ARCH), arm64) 15CFLAGS += -arch arm64 16LDFLAGS += -arch arm64 17endif 18ifeq ($(USE_STACK_PROTECTOR), Yes) 19CFLAGS += -fstack-protector-all 20endif 21ifeq ($(ASM_ARCH), x86) 22ASMFLAGS += -DPREFIX 23ifeq ($(ARCH), x86_64) 24ASMFLAGS += -f macho64 25else 26ASMFLAGS += -f macho 27LDFLAGS += -read_only_relocs suppress 28endif 29endif 30 31