-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
19 lines (13 loc) · 1019 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
BINARIES := hll
all: $(BINARIES)
CFLAGS := $(CFLAGS) -lz -lm -pthread -Ofast -funroll-loops -fipa-bit-cp -ftree-loop-vectorize -ftree-slp-vectorize -ftracer -fsplit-loops -funswitch-loops -march=native -flto -fopenmp -D_GLIBCXX_PARALLEL -DNDEBUG
clean:
rm -f *.o $(BINARIES)
tags:
etags *.h *.c *.cc
%.o: %.cpp
g++ -c $(CFLAGS) $< -o $@ -lz -lm -pthread -Ofast -funroll-loops -fipa-bit-cp -ftree-loop-vectorize -ftree-slp-vectorize -ftracer -fsplit-loops -funswitch-loops -march=native -flto -fopenmp -D_GLIBCXX_PARALLEL -DNDEBUG
%.o: %.cpp
gcc -c $(CFLAGS) $< -o $@ -lz -lm -pthread -Ofast -funroll-loops -fipa-bit-cp -ftree-loop-vectorize -ftree-slp-vectorize -ftracer -fsplit-loops -funswitch-loops -march=native -flto -fopenmp -D_GLIBCXX_PARALLEL -DNDEBUG
hll: main.o HyperLogLog.o
g++ $(CFLAGS) $^ -o $@ -lz -lm -pthread -Ofast -funroll-loops -fipa-bit-cp -ftree-loop-vectorize -ftree-slp-vectorize -ftracer -fsplit-loops -funswitch-loops -march=native -flto -fopenmp -D_GLIBCXX_PARALLEL -DNDEBUG