openh264/build/platform-darwin.mk

21 lines
584 B
Makefile
Raw Normal View History

include $(SRC_PATH)build/arch.mk
SHAREDLIB_DIR = $(PREFIX)/lib
2014-02-19 02:54:27 +01:00
SHAREDLIBSUFFIX = dylib
SHAREDLIBSUFFIXVER=$(SHAREDLIBVERSION).$(SHAREDLIBSUFFIX)
SHLDFLAGS = -dynamiclib -twolevel_namespace -undefined dynamic_lookup \
-fno-common -headerpad_max_install_names -install_name \
$(SHAREDLIB_DIR)/$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER)
SHARED = -dynamiclib
CFLAGS += -Wall -fPIC -MMD -MP
LDFLAGS += -lpthread
ifeq ($(ASM_ARCH), x86)
ASMFLAGS += -DPREFIX
ifeq ($(ARCH), x86_64)
2014-01-03 07:49:45 +01:00
ASMFLAGS += -f macho64
else
ASMFLAGS += -f macho
LDFLAGS += -read_only_relocs suppress
2014-01-03 07:49:45 +01:00
endif
endif
2014-01-03 07:49:45 +01:00