|
|
@ -23,6 +23,13 @@ ifeq ($(UNAME_S),Darwin) |
|
|
|
else |
|
|
|
else |
|
|
|
LIB_SUF=so
|
|
|
|
LIB_SUF=so
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
ifeq ($(UNAME_S),OpenBSD) |
|
|
|
|
|
|
|
OS=openbsd
|
|
|
|
|
|
|
|
CXX=clang++
|
|
|
|
|
|
|
|
CFLAGS+=-I/usr/local/include
|
|
|
|
|
|
|
|
LDFLAGS+=-L/usr/local/lib
|
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ARCH?=$(shell uname -m)
|
|
|
|
ARCH?=$(shell uname -m)
|
|
|
|
ifneq ($(findstring $(ARCH),x86_64/amd64),) |
|
|
|
ifneq ($(findstring $(ARCH),x86_64/amd64),) |
|
|
|
CPU=x86-64
|
|
|
|
CPU=x86-64
|
|
|
@ -51,7 +58,7 @@ ifeq ($(ARCH),aarch64) |
|
|
|
CPU=aarch64
|
|
|
|
CPU=aarch64
|
|
|
|
BIT=64
|
|
|
|
BIT=64
|
|
|
|
endif |
|
|
|
endif |
|
|
|
ifeq ($(findstring $(OS),mac/mingw64),) |
|
|
|
ifeq ($(findstring $(OS),mac/mingw64/openbsd),) |
|
|
|
LDFLAGS+=-lrt
|
|
|
|
LDFLAGS+=-lrt
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|