-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTuprules.tup
51 lines (42 loc) · 1.23 KB
/
Tuprules.tup
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
47
48
49
50
51
TOP = $(TUP_CWD)
CFLAGS = -std=c++17
CFLAGS += -Wall
CFLAGS += -Werror
CFLAGS += -Wno-unknown-pragmas
CFLAGS += -Wfatal-errors
CFLAGS += -pedantic-errors
CFLAGS += -Wextra
#CFLAGS += -Wcast-align
CFLAGS += -g
CFLAGS += -O0
CFLAGS += -I$(TOP)/include
CFLAGS += -isystem/usr/include/eigen3
CFLAGS += -fopenmp
CFLAGS += -fPIC
#CFLAGS += -DNOPAR
APP_CFLAGS += -I$(TOP)/libs/swss
PY_CFLAGS = -shared -Wno-nested-anon-types -Wno-unused-result -Wsign-compare -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
TEST_CFLAGS = -I$(TOP)/src
APP_LDFLAGS = -lboost_system
APP_LDFLAGS += -lboost_thread
APP_LDFLAGS += -lboost_coroutine
APP_LDFLAGS += -lboost_context
APP_LDFLAGS += -lssl
APP_LDFLAGS += -lcrypto
PY_LDFLAGS = -L/usr/lib -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
TEST_LDFLAGS = -lgtest_main -lgtest
ifdef COVERAGE
COV_CFLAGS = -fprofile-arcs
COV_CFLAGS += -ftest-coverage
COV_CFLAGS += -fprofile-instr-generate -fcoverage-mapping
COV_LDFLAGS = -lgcov
COV_OUT = %B.gcno
COV_RUNOUT = %B.gcda %B.profraw
endif
COMPILER = clang++ -Qunused-arguments
ifdef USE_GCC
COMPILER = g++
endif
PYTHON = condarun aniceday python3 -B
!python = |> $(PYTHON) %f |>
.gitignore