3f69873c99
Versioned for OS not in (Windows, Android), and create a .dll.a implib on Windows
19 lines
466 B
Makefile
19 lines
466 B
Makefile
include $(SRC_PATH)build/arch.mk
|
|
SHAREDLIB_DIR = $(PREFIX)/lib
|
|
SHAREDLIBSUFFIX = so
|
|
SHAREDLIBSUFFIXVER=$(SHAREDLIBSUFFIX).$(SHAREDLIBVERSION)
|
|
SHLDFLAGS = -Wl,-soname,$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER)
|
|
CFLAGS += -Wall -fno-strict-aliasing -fPIC -MMD -MP
|
|
LDFLAGS += -lpthread
|
|
ifeq ($(ASM_ARCH), x86)
|
|
ifeq ($(ENABLE64BIT), Yes)
|
|
ASMFLAGS += -f elf64
|
|
else
|
|
ASMFLAGS += -f elf
|
|
endif
|
|
endif
|
|
ifeq ($(ASM_ARCH), arm)
|
|
ASMFLAGS += -march=armv7-a -mfpu=neon
|
|
endif
|
|
|