-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.config
33 lines (27 loc) · 1010 Bytes
/
Makefile.config
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
# Set LLVM_PATH here or in the environment
#export CLANG++=clang++-mp-9.0
#export CLANG=clang-mp-9.0
#export LLVM_CONFIG=/llvm-config
#export LLVM_PATH=/Users/lagunaperalt1/projects/applications/llvm/install-llvm-9.0.1
#export LLVM_PATH=/opt/local
export LLVM_PATH=/collab/usr/global/tools/fpchecker/llvm-12.0.0-install
# C++ compiler
CXX = $(LLVM_PATH)/bin/clang++
#CXX = clang++-mp-12
# llvm-config location
LLVM_CONFIG = $(LLVM_PATH)/bin/llvm-config
#LLVM_CONFIG = llvm-config-mp-12
APPLE_LDFLAGS =-Wl,-flat_namespace -Wl,-undefined -Wl,suppress
# Passed to compiler
SRC_DIR ?= $(PWD)
COMMON_FLAGS = -Wall -O3 -g -std=c++11
LDFLAGS += $(shell $(LLVM_CONFIG) --ldflags) $(APPLE_LDFLAGS)
CXXFLAGS += $(COMMON_FLAGS) $(shell $(LLVM_CONFIG) --cxxflags) -fPIC -DFPC_DEBUG
CPPFLAGS += $(shell $(LLVM_CONFIG) --cppflags) -I$(SRC_DIR)
ifeq ($(shell uname),Darwin)
SHARED_LIB_OPT = -bundle -undefined dynamic_lookup
else
SHARED_LIB_OPT = -shared -Wl, -O1
endif
# Installation path
prefix = ./lib