-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 715 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (19 loc) · 715 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
CXX = g++
CXXFLAGS = -std=c++20 -Wall -Wextra -pedantic
OPTFLAGS = -O3 -march=native -mtune=native
IFLAGS = -I ./include
all: test_kat
lib:
$(CXX) $(CXXFLAGS) $(OPTFLAGS) $(IFLAGS) -I . -fPIC --shared wrapper/isap.cpp -o wrapper/libisap.so
clean:
find . -name '*.out' -o -name '*.o' -o -name '*.so' -o -name '*.gch' | xargs rm -rf
format:
find . -name '*.cpp' -o -name '*.hpp' | xargs clang-format -i --style=Mozilla
test_kat:
bash test_kat.sh
bench/a.out: bench/main.cpp include/*.hpp
# make sure you've google-benchmark globally installed;
# see https://github.com/google/benchmark/tree/0ce66c0#installation
$(CXX) $(CXXFLAGS) $(OPTFLAGS) $(IFLAGS) $< -lbenchmark -o $@
benchmark: bench/a.out
./$<