-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile.config
More file actions
30 lines (24 loc) · 881 Bytes
/
Makefile.config
File metadata and controls
30 lines (24 loc) · 881 Bytes
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
# Set LLVM_PATH here or in the environment
#export LLVM_PATH=/opt/local
#export LLVM_PATH=/collab/usr/global/tools/fpchecker/llvm-12.0.0-install
export LLVM_PATH=/opt/anaconda3/envs/llvm19
# 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