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