-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.config
47 lines (40 loc) · 940 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
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Global configuration for makefiles
#
DIR_PROCESS = lib/Process
DIR_GRAPH = lib/Graph
DIR_CLIQUEFINDER = lib/CliqueFinder
DIR_PROGRESSMONITOR = lib/ProgressMonitor
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
# Linux flags
CC = g++
CXXFLAGS += -std=c++11 -Wall
CXXFLAGS += -O3 -DNDEBUG
# turn on for crash debugging, get symbols with <prog> 2>&1 | c++filt
#CXXFLAGS += -g -rdynamic
CXXOPENMP = -fopenmp
LDFLAGS +=
LIBS += -lrt
else ifeq ($(UNAME), Darwin)
# OS X flags
CC = g++
CXXFLAGS += -std=c++11 -Wall
CXXFLAGS += -O3 -DNDEBUG -g
CXXOPENMP = -fopenmp
CLANG := $(shell g++ -v 2>&1 | grep clang | cut -d " " -f 2)
ifeq ($(CLANG), LLVM)
CXXOPENMP =
CXXFLAGS += -DNOMP
endif
LDFLAGS +=
LIBS +=
else ifeq ($(shell uname -o), Cygwin)
# Cygwin flags
CC = g++
CXXFLAGS += -Wall -D__STDC_LIMIT_MACROS
CXXFLAGS += -O3 -DNDEBUG
CXXOPENMP = -fopenmp
LDFLAGS +=
LIBS +=
endif