2014-10-22 09:18:53 +02:00
|
|
|
include $(SRC_PATH)build/arch.mk
|
2014-02-19 02:54:27 +01:00
|
|
|
SHAREDLIBSUFFIX = so
|
2014-11-13 14:18:33 +01:00
|
|
|
SHAREDLIBSUFFIXVER=$(SHAREDLIBSUFFIX).$(SHAREDLIBVERSION)
|
|
|
|
SHLDFLAGS = -Wl,-soname,$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER)
|
2014-05-12 11:06:16 +02:00
|
|
|
CFLAGS += -Wall -fno-strict-aliasing -fPIC -MMD -MP
|
2013-12-16 08:31:00 +01:00
|
|
|
LDFLAGS += -lpthread
|
2015-06-26 12:55:15 +02:00
|
|
|
AR_OPTS = crD $@
|
2014-03-01 01:03:13 +01:00
|
|
|
ifeq ($(ASM_ARCH), x86)
|
2015-04-20 10:47:41 +02:00
|
|
|
ifeq ($(ARCH), x86_64)
|
2014-01-03 07:49:45 +01:00
|
|
|
ASMFLAGS += -f elf64
|
2014-01-05 13:12:47 +01:00
|
|
|
else
|
2014-07-24 23:50:09 +02:00
|
|
|
ASMFLAGS += -f elf
|
2014-01-03 07:49:45 +01:00
|
|
|
endif
|
2014-03-01 01:03:13 +01:00
|
|
|
endif
|
2014-02-26 14:00:35 +01:00
|
|
|
ifeq ($(ASM_ARCH), arm)
|
|
|
|
ASMFLAGS += -march=armv7-a -mfpu=neon
|
|
|
|
endif
|
2013-12-10 11:57:32 +01:00
|
|
|
|
2015-05-13 09:44:28 +02:00
|
|
|
ifeq ($(CXX), clang++)
|
|
|
|
CXXFLAGS += -Wc++11-compat-reserved-user-defined-literal
|
|
|
|
endif
|
|
|
|
|