blob: 3539526d860b83b9190ae92473508ecb5d0a6225 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
ifeq ($(SYSTEM),)
SYSTEM := $(shell uname | cut -f 1 -d_)
endif
TRUESYSTEM := $(shell uname)
MACHINE := $(shell uname -m)
DISTRIB := $(shell cat /etc/issue | cut -f 1 -d\ | head -1)
CC = clang
CXX = clang++
LD = clang++
AS = clang -c
AR = ar rcs
BINEXT = bin
CPPFLAGS += -fno-strict-aliasing
ifeq ($(SYSTEM),Darwin)
CPPFLAGS += -fPIC
LDFLAGS += -fPIC
ARCH_FLAGS =
STRIP = strip -x
endif
ifeq ($(SYSTEM),Linux)
CPPFLAGS += -fPIC
LDFLAGS += -fPIC -rdynamic
ARCH_FLAGS =
ASFLAGS =
STRIP = strip --strip-unneeded
endif
CXXFLAGS += -Wno-deprecated -std=c++11
|