-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (22 loc) · 795 Bytes
/
Makefile
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
CPPC=g++
CPPFLAGS=-Wall -Wextra -Weffc++ -pipe -Ofast --std=c++11 -march=native -Wl,-O1 -Wl,-z,relro -Wl,-z,now -flto -DNDEBUG
OMP=-fopenmp
.PHONY: all clean
all: gen pesma-limit4
%.o: %.cpp %.h
$(CPPC) $(CPPFLAGS) -c $< -o $@
common.o: common.cpp common.h
$(CPPC) $(CPPFLAGS) $(OMP) -c $< -o $@
flatinvmap.o: flatinvmap.cpp flatinvmap.h bloom_filter.h
$(CPPC) $(CPPFLAGS) -c $< -o $@
gen: gen.cpp common.o
$(CPPC) $(CPPFLAGS) $(OMP) $^ -o $@
agent4.o: agent4.cpp agent4.h flatinvmap.h
$(CPPC) $(CPPFLAGS) -c $< -o $@
pesma-limit4.o: pesma-limit4.cpp agent4.h common.h bloom_filter.h
$(CPPC) $(CPPFLAGS) $(OMP) -c $< -o $@
pesma-limit4: pesma-limit4.o agent4.o common.o flatinvmap.o bloom_filter.o
$(CPPC) $(CPPFLAGS) $(OMP) $^ -o $@
clean:
$(RM) gen pesma-limit4
$(RM) *.o